Fix typo in all.pp and add test

Change-Id: I03d560902b356d5eb510d719b9fc9582b07ada88
Signed-off-by: Konrad Scherer <kmscherer@gmail.com>
This commit is contained in:
Konrad Scherer
2013-05-14 11:57:51 -04:00
parent 4ef7844070
commit 336292278c
2 changed files with 8 additions and 1 deletions

View File

@@ -315,7 +315,7 @@ class openstack::all (
} }
if $auto_assign_floating_ip { if $auto_assign_floating_ip {
nova_config { 'DEFUALT/auto_assign_floating_ip': value => 'True' } nova_config { 'DEFAULT/auto_assign_floating_ip': value => 'True' }
} }
class { [ class { [

View File

@@ -82,4 +82,11 @@ describe 'openstack::all' do
end end
end end
end end
context 'when auto assign floating ip is assigned' do
before do
params.merge!(:auto_assign_floating_ip => 'true')
end
it { should contain_nova_config('DEFAULT/auto_assign_floating_ip').with(:value => 'True')}
end
end end