Beispiel #1
0
 def test_netenv_settings_tenant_network_removed(self):
     ns = copy(self.ns)
     # Test removing TENANT_NETWORK
     ns.enabled_network_list.remove(TENANT_NETWORK)
     ne = NetworkEnvironment(ns, '../build/network-environment.yaml')
     regstr = ne['resource_registry']['OS::TripleO::Network::Tenant']
     assert_equal(regstr.split('/')[-1], 'OS::Heat::None')
Beispiel #2
0
 def test_netenv_settings_external_network_vlans(self):
     # test vlans
     ne = NetworkEnvironment(self.ns_vlans,
                             '../build/network-environment.yaml')
     assert_equal(ne['parameter_defaults']['NeutronExternalNetworkBridge'],
                  '""')
     assert_equal(ne['parameter_defaults']['ExternalNetworkVlanID'], 501)
Beispiel #3
0
 def test_numa_configs(self):
     ne = NetworkEnvironment(self.ns,
                             '../build/network-environment.yaml',
                             compute_pre_config=True,
                             controller_pre_config=True)
     assert_is_instance(ne, dict)
     assert_not_equal(ne, {})
Beispiel #4
0
 def test_netenv_settings_api_network_vlans(self):
     ns = copy(self.ns_vlans)
     ns['networks'][API_NETWORK]['enabled'] = True
     ns = NetworkSettings(ns)
     # test vlans
     ne = NetworkEnvironment(ns, '../build/network-environment.yaml')
     assert_equal(ne['parameter_defaults']['InternalApiNetworkVlanID'], 101)
Beispiel #5
0
 def test_netenv_settings_storage_network_vlans(self):
     # test vlans
     ne = NetworkEnvironment(self.ns_vlans,
                             '../build/network-environment.yaml')
     assert_equal(ne['parameter_defaults']['StorageNetworkVlanID'], 201)
Beispiel #6
0
 def test_netenv_settings_external_network_ipv6(self):
     # Test IPv6
     ne = NetworkEnvironment(self.ns_ipv6,
                             '../build/network-environment.yaml')
     regstr = ne['resource_registry']['OS::TripleO::Network::External']
     assert_equal(regstr.split('/')[-1], 'external_v6.yaml')
Beispiel #7
0
 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']['OS::TripleO::Network::InternalApi']
     assert_equal(regstr.split('/')[-1], 'OS::Heat::None')