64d5ba8515
The current REST API tests have a lot of rooms to be improved like: - mocking the whole module of the API wrapper - Use test_data.cinder_data - Use response.json attribute to decode responses as much as possible APIResourceWrapper.to_dict() method of openstack_dashboard.api.base is changed to refer attributes of an object itself instead of self._apiresource. There is a case where APIResourceWrapper class defines its own attributes and such attributes should be used in to_dict() method. If self._apiresouce is referred these attributes are not considered. We need to consume attributes of a class object itself. It helps us write unit tests using sample test data. Change-Id: I5b0c3bb52d97f377c6e5fe2b9a4ace2931114ab0 Partial-Bug: #1752917 |
||
---|---|---|
.. | ||
rest | ||
__init__.py | ||
base.py | ||
cinder.py | ||
glance.py | ||
keystone.py | ||
microversions.py | ||
network.py | ||
neutron.py | ||
nova.py | ||
swift.py |