900a1aa78ef37404a38fbd2f140007aeaf2446b0
The unit test 'tackerclient.tests.unit.osc.v1.test_vnflcm_op_occs. TestListVnfLcmOp.test_take_action_with_filter' is failing with below error message, DEBUG: TypeError: Object of type 'FormatComplexDataColumn' is not JSON serializable Background: In class TestListVnfLcmOp definition, "create_vnflcm_op_occs" function is called and list of fake vnflcm op occs dictionary is store in vnflcm_op_occs_obj. Now this dictionary is used in two unit test cases "test_take_action" and "test_take_action_with_filter". In order to evaluate test results, in "test_take_action" test case, "get_vnflcm_op_occ_data" function is called using "vnflcm_op_occs_obj" which appends the data in dictionary. Later this dictionary "vnflcm_op_occs_obj" is again used in "test_take_action_with_filter". Implementation: This patch creates a separate list of fake vnflcm op occs dictionary for both the test cases. This issue has been impacting below reviews as well, [1] https://review.opendev.org/c/openstack/python-tackerclient/+/636893 [2] https://review.opendev.org/c/openstack/python-tackerclient/+/781314 Co-Authored: Yasufumi Ogawa <yasufum.o@gmail.com> Closes-Bug: #1919350 Change-Id: I0d62f77cf5d1e9ec0b0a7c404abab83f97b708ba
Team and repository tags
NFV Orchestration (Tacker) Client
CLI and Client Library for OpenStack Tacker
Installation
Note: The paths we are using for configuration files in these steps are with reference to Ubuntu Operating System. The paths may vary for other Operating Systems.
The branch_name which is used in commands, specify the branch_name as stable/<branch> for any stable branch installation. For eg: stable/queens, stable/pike. If unspecified the default will be master branch.
Using python install
Clone python-tackerclient repository.
$ cd ~/ $ git clone https://github.com/openstack/python-tackerclient -b <branch_name>
Install python-tackerclient.
$ cd python-tackerclient $ sudo python setup.py install
Using pip
You can also install the latest version by using pip
command:
$ pip install python-tackerclient
Or, if it is needed to install python-tackerclient from
master branch, type
$ pip install git+https://github.com/openstack/python-tackerclient.git
More Information
- Python-tackerclient documentation: https://docs.openstack.org/python-tackerclient/latest/
- Tacker Documentation: https://docs.openstack.org/tacker/latest/
- Tacker Wiki: https://wiki.openstack.org/wiki/Tacker
- Release Notes: https://docs.openstack.org/releasenotes/python-tackerclient
Description
Languages
Python
100%