357efb9c0b
We cleaned up unused code in commit: https://review.openstack.org/#/c/399969/ and accidently added it in https://review.openstack.org/#/c/413237/. That fix for resource ordering was useful for puppet 3, but as now we are running tests against puppet 4, this code becomes useless. This reverts commit 4cf2b7f2f882e5146bd86183fd156438d6409328. Change-Id: I892cbc3b6957f54dae12bd133911df38937e367a
75 lines
2.0 KiB
Ruby
75 lines
2.0 KiB
Ruby
require 'spec_helper_acceptance'
|
|
|
|
describe 'basic aodh' do
|
|
|
|
context 'default parameters' do
|
|
|
|
it 'should work with no errors' do
|
|
pp= <<-EOS
|
|
include ::openstack_integration
|
|
include ::openstack_integration::repos
|
|
include ::openstack_integration::rabbitmq
|
|
include ::openstack_integration::mysql
|
|
include ::openstack_integration::keystone
|
|
|
|
rabbitmq_user { 'aodh':
|
|
admin => true,
|
|
password => 'an_even_bigger_secret',
|
|
provider => 'rabbitmqctl',
|
|
require => Class['rabbitmq'],
|
|
}
|
|
|
|
rabbitmq_user_permissions { 'aodh@/':
|
|
configure_permission => '.*',
|
|
write_permission => '.*',
|
|
read_permission => '.*',
|
|
provider => 'rabbitmqctl',
|
|
require => Class['rabbitmq'],
|
|
}
|
|
|
|
class { '::aodh':
|
|
debug => true,
|
|
default_transport_url => 'rabbit://aodh:an_even_bigger_secret@127.0.0.1:5672',
|
|
database_connection => 'mysql://aodh:a_big_secret@127.0.0.1/aodh?charset=utf8',
|
|
}
|
|
class { '::aodh::db::mysql':
|
|
password => 'a_big_secret',
|
|
}
|
|
class { '::aodh::keystone::auth':
|
|
password => 'a_big_secret',
|
|
}
|
|
class { '::aodh::keystone::authtoken':
|
|
password => 'a_big_secret',
|
|
}
|
|
class { '::aodh::api':
|
|
enabled => true,
|
|
service_name => 'httpd',
|
|
sync_db => true,
|
|
}
|
|
include ::apache
|
|
class { '::aodh::wsgi::apache':
|
|
ssl => false,
|
|
}
|
|
class { '::aodh::auth':
|
|
auth_url => 'http://127.0.0.1:5000/v2.0',
|
|
auth_password => 'a_big_secret',
|
|
}
|
|
class { '::aodh::client': }
|
|
class { '::aodh::notifier': }
|
|
class { '::aodh::listener': }
|
|
class { '::aodh::evaluator': }
|
|
EOS
|
|
|
|
|
|
# Run it twice and test for idempotency
|
|
apply_manifest(pp, :catch_failures => true)
|
|
apply_manifest(pp, :catch_changes => true)
|
|
end
|
|
|
|
describe port(8042) do
|
|
it { is_expected.to be_listening }
|
|
end
|
|
end
|
|
|
|
end
|