[
https://issues.apache.org/jira/browse/AMBARI-26081?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Himanshu Maurya updated AMBARI-26081:
-------------------------------------
Description:
7 Python UTs for TestConfigs are failing with below error:
{code:java}
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' {code}
was:
Due to changes introduced in AMBARI-26062
7 Python UTs for TestConfigs are failing with below error:
{code:java}
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' {code}
> Fix TestConfigs python test case failures in Ambari
> ---------------------------------------------------
>
> Key: AMBARI-26081
> URL: https://issues.apache.org/jira/browse/AMBARI-26081
> Project: Ambari
> Issue Type: Improvement
> Reporter: Himanshu Maurya
> Assignee: Himanshu Maurya
> Priority: Major
> Time Spent: 10m
> Remaining Estimate: 0h
>
> 7 Python UTs for TestConfigs are failing with below error:
> {code:java}
> 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' {code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]