Files
puppet-openstack/spec/classes/openstack_provision_spec.rb
2013-08-01 22:44:31 +00: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,
:tempest_repo_revision => 'stable/grizzly'
}
end
it { should contain_class('tempest').with(
:resize_available => true,
:change_password_available => true,
:tempest_repo_revision => '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