Ensure that test networks are shared

This commit ensures that all quantum networks
created for tempest are shared between all tenants.

This change was made to resolve some test failures
caused by tenants created by tempest tests not having
access to any network.

Change-Id: Ide8e2e49ad66987ecd7b1cc62821ee476832bd7a
This commit is contained in:
Dan Bode
2013-07-29 22:21:25 -07:00
parent a5a712685b
commit 862d123e56
2 changed files with 16 additions and 0 deletions

View File

@@ -117,6 +117,7 @@ class openstack::provision(
ensure => present,
router_external => true,
tenant_name => $admin_tenant_name,
shared => true,
}
quantum_subnet { $public_subnet_name:
ensure => 'present',
@@ -127,6 +128,7 @@ class openstack::provision(
quantum_network { $private_network_name:
ensure => present,
tenant_name => $tenant_name,
shared => true,
}
quantum_subnet { $private_subnet_name:
ensure => present,

View File

@@ -24,6 +24,20 @@ describe 'openstack::provision' do
:version_to_test => 'stable/grizzly'
) }
it 'should configure quantum networks' do
should contain_quantum_network('public').with(
'ensure' => 'present',
'router_external' => true,
'tenant_name' => 'admin',
'shared' => true
)
should contain_quantum_network('private').with(
'ensure' => 'present',
'tenant_name' => 'demo',
'shared' => true
)
end
end
end