Due to recent changes in serialization in fuelclient vmware settings command is broken in master:
======================================================================
ERROR: test_default_action (fuelclient.tests.test_settings.TestVmwareSettings)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/jenkins/workspace/verify-python-fuelclient/.tox/py26/lib/python2.6/site-packages/mock.py", line 1190, in patched
return func(*args, **keywargs)
File "/home/jenkins/workspace/verify-python-fuelclient/fuelclient/tests/test_settings.py", line 131, in test_default_action
test_url='/api/v1/clusters/1/vmware_attributes/default')
File "/home/jenkins/workspace/verify-python-fuelclient/fuelclient/tests/test_settings.py", line 65, in check_default_action
self.execute_wo_auth(test_command)
File "/home/jenkins/workspace/verify-python-fuelclient/fuelclient/tests/base.py", line 79, in execute_wo_auth
return self.execute(command)
File "/home/jenkins/workspace/verify-python-fuelclient/fuelclient/tests/base.py", line 73, in execute
return main(command)
File "/home/jenkins/workspace/verify-python-fuelclient/fuelclient/cli/error.py", line 98, in wrapper
return func(*args, **kwargs)
File "/home/jenkins/workspace/verify-python-fuelclient/fuelclient/cli/parser.py", line 226, in main
parser.parse()
File "/home/jenkins/workspace/verify-python-fuelclient/fuelclient/cli/parser.py", line 102, in parse
actions[parsed_params.action].action_func(parsed_params)
File "/home/jenkins/workspace/verify-python-fuelclient/fuelclient/cli/actions/base.py", line 63, in action_func
method(params)
File "/home/jenkins/workspace/verify-python-fuelclient/fuelclient/cli/actions/settings.py", line 115, in default
serializer=self.serializer)
File "/home/jenkins/workspace/verify-python-fuelclient/fuelclient/objects/environment.py", line 160, in write_vmware_settings_data
settings_data
File "/home/jenkins/workspace/verify-python-fuelclient/fuelclient/cli/serializers.py", line 96, in write_to_file
file_obj.write(serialized)
AttributeError: 'str' object has no attribute 'write'
======================================================================
ERROR: test_download_action (fuelclient.tests.test_settings.TestVmwareSettings)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/jenkins/workspace/verify-python-fuelclient/.tox/py26/lib/python2.6/site-packages/mock.py", line 1190, in patched
return func(*args, **keywargs)
File "/home/jenkins/workspace/verify-python-fuelclient/fuelclient/tests/test_settings.py", line 138, in test_download_action
test_url='/api/v1/clusters/1/vmware_attributes')
File "/home/jenkins/workspace/verify-python-fuelclient/fuelclient/tests/test_settings.py", line 81, in check_download_action
self.execute_wo_auth(test_command)
File "/home/jenkins/workspace/verify-python-fuelclient/fuelclient/tests/base.py", line 79, in execute_wo_auth
return self.execute(command)
File "/home/jenkins/workspace/verify-python-fuelclient/fuelclient/tests/base.py", line 73, in execute
return main(command)
File "/home/jenkins/workspace/verify-python-fuelclient/fuelclient/cli/error.py", line 98, in wrapper
return func(*args, **kwargs)
File "/home/jenkins/workspace/verify-python-fuelclient/fuelclient/cli/parser.py", line 226, in main
parser.parse()
File "/home/jenkins/workspace/verify-python-fuelclient/fuelclient/cli/parser.py", line 102, in parse
actions[parsed_params.action].action_func(parsed_params)
File "/home/jenkins/workspace/verify-python-fuelclient/fuelclient/cli/actions/base.py", line 63, in action_func
method(params)
File "/home/jenkins/workspace/verify-python-fuelclient/fuelclient/cli/actions/settings.py", line 130, in download
serializer=self.serializer)
File "/home/jenkins/workspace/verify-python-fuelclient/fuelclient/objects/environment.py", line 160, in write_vmware_settings_data
settings_data
File "/home/jenkins/workspace/verify-python-fuelclient/fuelclient/cli/serializers.py", line 96, in write_to_file
file_obj.write(serialized)
AttributeError: 'str' object has no attribute 'write'
Fix proposed to branch: master /review. openstack. org/164117
Review: https:/