Files
puppet-openstack/spec/classes/openstack_provision_spec.rb
Maru Newby 52d9710d26 Revert provisioning of shared networks.
* As currently defined, the public network is configured to
   support floating ip assignment, and the private network should
   be private to the tenant.  In neither case should the network
   be configured as shared.

Change-Id: I51f7cd75cfd2b8a5a1aadad45b98dd010c0f1935
2013-08-05 12:06:41 -07:00

42 lines
985 B
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'
)
should contain_quantum_network('private').with(
'ensure' => 'present',
'tenant_name' => 'demo'
)
end
end
end