diff options
author | Tim Rozet <trozet@redhat.com> | 2016-11-11 19:26:47 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2016-11-11 19:26:47 +0000 |
commit | 5f2cc4e6b222d109836abd1172f481f303f46319 (patch) | |
tree | 3cf444cb9e0aead555945195d07b5f61230a90d4 /tests/test_apex_network_environment.py | |
parent | 0333a22450988e3950c0915aa0cebeddf0886952 (diff) | |
parent | e8b6d6debe2b056b404fc353f54b67364b58c59d (diff) |
Merge "Migrate to stable/newton"
Diffstat (limited to 'tests/test_apex_network_environment.py')
-rw-r--r-- | tests/test_apex_network_environment.py | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/tests/test_apex_network_environment.py b/tests/test_apex_network_environment.py index df0f0334..b4d7e717 100644 --- a/tests/test_apex_network_environment.py +++ b/tests/test_apex_network_environment.py @@ -69,7 +69,7 @@ class TestNetworkEnvironment(object): # Test IPv6 ne = NetworkEnvironment(self.ns_ipv6, '../build/network-environment.yaml') - regstr = ne['resource_registry'][next(iter(EXTERNAL_RESOURCES.keys()))] + regstr = ne['resource_registry']['OS::TripleO::Network::External'] assert_equal(regstr.split('/')[-1], 'external_v6.yaml') def test_netenv_settings_external_network_removed(self): @@ -77,8 +77,8 @@ class TestNetworkEnvironment(object): # Test removing EXTERNAL_NETWORK ns.enabled_network_list.remove(EXTERNAL_NETWORK) ne = NetworkEnvironment(ns, '../build/network-environment.yaml') - regstr = ne['resource_registry'][next(iter(EXTERNAL_RESOURCES.keys()))] - assert_equal(regstr.split('/')[-1], 'noop.yaml') + regstr = ne['resource_registry']['OS::TripleO::Network::External'] + assert_equal(regstr.split('/')[-1], 'OS::Heat::None') def test_netenv_settings_tenant_network_vlans(self): # test vlans @@ -102,8 +102,8 @@ class TestNetworkEnvironment(object): # Test removing TENANT_NETWORK ns.enabled_network_list.remove(TENANT_NETWORK) ne = NetworkEnvironment(ns, '../build/network-environment.yaml') - regstr = ne['resource_registry'][next(iter(TENANT_RESOURCES.keys()))] - assert_equal(regstr.split('/')[-1], 'noop.yaml') + regstr = ne['resource_registry']['OS::TripleO::Network::Tenant'] + assert_equal(regstr.split('/')[-1], 'OS::Heat::None') def test_netenv_settings_storage_network_vlans(self): # test vlans @@ -115,7 +115,7 @@ class TestNetworkEnvironment(object): # Test IPv6 ne = NetworkEnvironment(self.ns_ipv6, '../build/network-environment.yaml') - regstr = ne['resource_registry'][next(iter(STORAGE_RESOURCES.keys()))] + regstr = ne['resource_registry']['OS::TripleO::Network::Storage'] assert_equal(regstr.split('/')[-1], 'storage_v6.yaml') def test_netenv_settings_storage_network_removed(self): @@ -123,8 +123,8 @@ class TestNetworkEnvironment(object): # Test removing STORAGE_NETWORK ns.enabled_network_list.remove(STORAGE_NETWORK) ne = NetworkEnvironment(ns, '../build/network-environment.yaml') - regstr = ne['resource_registry'][next(iter(STORAGE_RESOURCES.keys()))] - assert_equal(regstr.split('/')[-1], 'noop.yaml') + regstr = ne['resource_registry']['OS::TripleO::Network::Storage'] + assert_equal(regstr.split('/')[-1], 'OS::Heat::None') def test_netenv_settings_api_network_v4(self): ns = copy(self.ns_vlans) @@ -147,15 +147,15 @@ class TestNetworkEnvironment(object): # Test IPv6 ne = NetworkEnvironment(self.ns_ipv6, '../build/network-environment.yaml') - regstr = ne['resource_registry'][next(iter(API_RESOURCES.keys()))] + regstr = ne['resource_registry']['OS::TripleO::Network::InternalApi'] assert_equal(regstr.split('/')[-1], 'internal_api_v6.yaml') def test_netenv_settings_api_network_removed(self): ns = copy(self.ns) # API_NETWORK is not in the default network settings file ne = NetworkEnvironment(ns, '../build/network-environment.yaml') - regstr = ne['resource_registry'][next(iter(API_RESOURCES.keys()))] - assert_equal(regstr.split('/')[-1], 'noop.yaml') + regstr = ne['resource_registry']['OS::TripleO::Network::InternalApi'] + assert_equal(regstr.split('/')[-1], 'OS::Heat::None') def test_numa_configs(self): ne = NetworkEnvironment(self.ns, '../build/network-environment.yaml', |