Files
puppet-openstack/spec/classes/openstack_provision_spec.rb
Dan Bode 862d123e56 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
2013-07-29 22:22:32 -07:00

44 lines
1.0 KiB
Ruby

require 'spec_helper'
describe 'openstack::provision' do
let :facts do
{
:osfamily => 'Debian'
}
end
describe 'should be possible to override resize_available' do
let :params do
{
:configure_tempest => true,
:resize_available => true,
:change_password_available => true,
:version_to_test => 'stable/grizzly'
}
end
it { should contain_class('tempest').with(
:resize_available => true,
:change_password_available => true,
: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