openstacksdk/openstack/tests/unit
Monty Taylor 5d7e149c1a
Properly munch for resource sub-dicts
In the shade layer, we expect object notation to work for sub-dicts.
When we're using underlying resource objects and translating them to
munch then putting them through normalize (Which is temporary during
transition) we're losing the munchified sub-dicts.

Update to_dict in openstack/resource to be able to provide munches
instead of dicts so that the recursive transform is complete.

Add a test for server that makes sure we're getting what we need.

A followup patch that should come that sets original_names to false in
the to_munch call, which will need an update to the normalize function
to deal with new incoming name.

Change-Id: I3df806fe0db7ddf8d93546d64780fc979f38e78f
2018-12-19 20:05:01 +00:00
..
baremetal Change approach to detailed listings of baremetal resources 2018-11-23 09:14:37 +01:00
block_storage Merge "implement block-storage backup resource" 2018-11-29 09:25:17 +00:00
block_store/v2 Use discovery instead of config to create proxies 2018-10-06 07:44:29 -05:00
cloud Properly munch for resource sub-dicts 2018-12-19 20:05:01 +00:00
clustering Remove all the deprecated stuff 2018-10-15 13:21:57 -05:00
compute Merge "Add host aggregate missing functions" 2018-12-10 22:31:41 +00:00
config Merge "Support remote vendor profiles" 2018-12-05 13:54:03 +00:00
database Use discovery instead of config to create proxies 2018-10-06 07:44:29 -05:00
fixtures Fix neutron endpoint mangling 2018-11-09 10:27:21 -06:00
identity Merge "Refactor tag support" 2018-12-10 18:03:59 +00:00
image Refactor tag support 2018-11-30 08:27:40 +00:00
instance_ha Use discovery instead of config to create proxies 2018-10-06 07:44:29 -05:00
key_manager Use discovery instead of config to create proxies 2018-10-06 07:44:29 -05:00
load_balancer Add support for octavia's resuorces quota 2018-12-01 15:16:13 +08:00
message Use discovery instead of config to create proxies 2018-10-06 07:44:29 -05:00
network Merge "Refactor tag support" 2018-12-10 18:03:59 +00:00
object_store Use discovery instead of config to create proxies 2018-10-06 07:44:29 -05:00
orchestration Use discovery instead of config to create proxies 2018-10-06 07:44:29 -05:00
workflow Use discovery instead of config to create proxies 2018-10-06 07:44:29 -05:00
__init__.py Make way for the functional tests 2015-03-31 17:07:47 -05:00
base.py Add support for per-service rate limits 2018-10-22 08:51:16 -05:00
fakes.py Make way for the functional tests 2015-03-31 17:07:47 -05:00
test__adapter.py Move task_manager and adapter up a level from cloud 2017-11-15 11:56:28 -06:00
test_connection.py Fix neutron endpoint mangling 2018-11-09 10:27:21 -06:00
test_exceptions.py Fix latest flake8 issues 2018-10-29 16:44:05 -05:00
test_format.py Update all test base classes to use base.TestCase 2018-02-16 23:19:41 -06:00
test_microversions.py Throw an error on conflicting microversion config 2018-06-11 11:54:33 -05:00
test_placement_rest.py Add tests to verify behavior on '' in self link 2018-06-18 12:43:44 -05:00
test_proxy.py Remove all the deprecated stuff 2018-10-15 13:21:57 -05:00
test_proxy_base.py Rename Resource get and update to not clash with dict 2018-08-09 07:36:18 -05:00
test_proxy_base2.py Rename BaseProxy to Proxy 2018-02-15 08:54:34 -06:00
test_resource.py Properly munch for resource sub-dicts 2018-12-19 20:05:01 +00:00
test_utils.py Remove all the deprecated stuff 2018-10-15 13:21:57 -05:00