summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorTim Rozet <trozet@redhat.com>2016-10-10 17:11:20 -0400
committerTim Rozet <trozet@redhat.com>2016-11-11 10:43:32 -0500
commite8b6d6debe2b056b404fc353f54b67364b58c59d (patch)
tree759d2a9c2794c6cbc223c251e30520c3d573a4c5 /tests
parent4e2424a3802fc541a9b21ad53981b4725ed70320 (diff)
Migrate to stable/newton
os-odl_l2_nofeature is now deprecated since new netvirt only supports odl_l3. JIRA: APEX-299 Change-Id: I3557ecb85fa4cd11bba96aa9410e56a8e8cceb00 Signed-off-by: Tim Rozet <trozet@redhat.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/test_apex_network_environment.py22
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',