
This commit allows for two additional tempest parameters to be forwarded from the openstack::provision class: * version_to_test * resize_available It also adds some initial and much needed unit tests. Change-Id: I0c352e6f44dc90e055b47db508455972aae2765a
28 lines
491 B
Ruby
28 lines
491 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,
|
|
:version_to_test => 'stable/grizzly'
|
|
}
|
|
end
|
|
|
|
it { should contain_class('tempest').with(
|
|
:resize_available => true,
|
|
:version_to_test => 'stable/grizzly'
|
|
) }
|
|
|
|
end
|
|
|
|
end
|