Details
-
Improvement
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
Description
Due to changes introduced in AMBARI-26062
7 Python UTs for TestConfigs are failing with below error:
Traceback (most recent call last): File "/home/jenkins/jenkins-home/workspace/bari-PreCommit-GitHub-PR_PR-3784/ambari-server/src/test/python/../../main/resources/scripts/configs.py", line 98, in do_request response_body = response.read().decode('utf-8') AttributeError: 'str' object has no attribute 'decode' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/home/jenkins/jenkins-home/workspace/bari-PreCommit-GitHub-PR_PR-3784/ambari-common/src/test/python/mock/mock.py", line 1205, in patched return func(*args, **keywargs) File "/home/jenkins/jenkins-home/workspace/bari-PreCommit-GitHub-PR_PR-3784/ambari-server/src/test/python/TestConfigs.py", line 165, in test_delete_config configs.main() File "/home/jenkins/jenkins-home/workspace/bari-PreCommit-GitHub-PR_PR-3784/ambari-server/src/test/python/../../main/resources/scripts/configs.py", line 372, in main return delete_properties(cluster, config_type, action_args, accessor, version_note) File "/home/jenkins/jenkins-home/workspace/bari-PreCommit-GitHub-PR_PR-3784/ambari-server/src/test/python/../../main/resources/scripts/configs.py", line 260, in delete_properties update_config(cluster, config_type, delete_specific_property(config_name), accessor, version_note) File "/home/jenkins/jenkins-home/workspace/bari-PreCommit-GitHub-PR_PR-3784/ambari-server/src/test/python/../../main/resources/scripts/configs.py", line 143, in update_config properties, attributes = config_updater(cluster, config_type, accessor) File "/home/jenkins/jenkins-home/workspace/bari-PreCommit-GitHub-PR_PR-3784/ambari-server/src/test/python/../../main/resources/scripts/configs.py", line 207, in update properties, attributes = get_current_config(cluster, config_type, accessor) File "/home/jenkins/jenkins-home/workspace/bari-PreCommit-GitHub-PR_PR-3784/ambari-server/src/test/python/../../main/resources/scripts/configs.py", line 135, in get_current_config config_tag = get_config_tag(cluster, config_type, accessor) File "/home/jenkins/jenkins-home/workspace/bari-PreCommit-GitHub-PR_PR-3784/ambari-server/src/test/python/../../main/resources/scripts/configs.py", line 105, in get_config_tag response = accessor(DESIRED_CONFIGS_URL.format(cluster)) File "/home/jenkins/jenkins-home/workspace/bari-PreCommit-GitHub-PR_PR-3784/ambari-server/src/test/python/../../main/resources/scripts/configs.py", line 100, in do_request raise Exception('Problem with accessing api. Reason: {0}'.format(exc)) Exception: Problem with accessing api. Reason: 'str' object has no attribute 'decode'
Attachments
Issue Links
- links to