Files
puppet-nova/spec/acceptance/class_spec.rb
Spencer Krum 9b7e920bfc Fix beaker tests
- This patch drops the support of CentOS-6.x on Kilo.

Change-Id: I30b764a52ccc57fe5f48ec16ccdc9a968a1a6f38
2015-03-20 19:33:44 +01:00

39 lines
1.0 KiB
Ruby

require 'spec_helper_acceptance'
describe 'nova class' do
context 'default parameters' do
it 'should work with no errors' do
pp= <<-EOS
include epel # Get our epel on
class { 'nova':
database_connection => 'mysql://nova:a_big_secret@127.0.0.1/nova?charset=utf8',
rabbit_userid => 'nova',
rabbit_password => 'an_even_bigger_secret',
image_service => 'nova.image.glance.GlanceImageService',
glance_api_servers => 'localhost:9292',
verbose => false,
rabbit_host => '127.0.0.1',
}
class { 'nova::compute':
enabled => true,
vnc_enabled => true,
}
class { 'nova::compute::libvirt':
migration_support => true,
vncserver_listen => '0.0.0.0',
}
EOS
# Run it twice and test for idempotency
apply_manifest(pp, :catch_failures => true)
apply_manifest(pp, :catch_changes => true)
end
end
end