Conflicts:
manifests/provision.pp
Cherry-picked from 050fa67b23 in master.
Change-Id: If5e05b54aa8cff01a6b48ee1c3bcb951758fff95
56 lines
1.3 KiB
Ruby
56 lines
1.3 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'
|
|
)
|
|
should contain_quantum_network('private').with(
|
|
'ensure' => 'present',
|
|
'tenant_name' => 'demo'
|
|
)
|
|
end
|
|
|
|
end
|
|
|
|
describe 'should be possible to provision with quantum disabled' do
|
|
let :params do
|
|
{
|
|
:configure_tempest => true,
|
|
:quantum_available => false,
|
|
:tempest_repo_revision => 'stable/grizzly'
|
|
}
|
|
end
|
|
|
|
it { should contain_class('tempest').with(
|
|
:tempest_repo_revision => 'stable/grizzly'
|
|
) }
|
|
end
|
|
|
|
end
|