2015-04-27 17:07:35 -04:00
|
|
|
require 'spec_helper_acceptance'
|
|
|
|
|
|
|
|
describe 'basic heat' do
|
|
|
|
|
|
|
|
context 'default parameters' do
|
|
|
|
|
|
|
|
it 'should work with no errors' do
|
|
|
|
pp= <<-EOS
|
2015-11-18 17:56:19 +01:00
|
|
|
include ::openstack_integration
|
|
|
|
include ::openstack_integration::repos
|
|
|
|
include ::openstack_integration::rabbitmq
|
|
|
|
include ::openstack_integration::mysql
|
|
|
|
include ::openstack_integration::keystone
|
2018-03-14 17:32:33 +08:00
|
|
|
include ::openstack_integration::heat
|
2015-04-27 17:07:35 -04:00
|
|
|
EOS
|
|
|
|
|
|
|
|
|
|
|
|
# Run it twice and test for idempotency
|
|
|
|
apply_manifest(pp, :catch_failures => true)
|
|
|
|
apply_manifest(pp, :catch_changes => true)
|
|
|
|
end
|
|
|
|
|
|
|
|
describe port(8000) do
|
2016-11-08 11:08:43 +02:00
|
|
|
it { is_expected.to be_listening }
|
2015-04-27 17:07:35 -04:00
|
|
|
end
|
|
|
|
|
|
|
|
describe port(8004) do
|
2016-11-08 11:08:43 +02:00
|
|
|
it { is_expected.to be_listening }
|
2015-04-27 17:07:35 -04:00
|
|
|
end
|
|
|
|
|
2016-01-15 12:15:20 -05:00
|
|
|
describe cron do
|
|
|
|
it { is_expected.to have_entry('1 0 * * * heat-manage purge_deleted -g days 1 >>/var/log/heat/heat-purge_deleted.log 2>&1').with_user('heat') }
|
|
|
|
end
|
2015-04-27 17:07:35 -04:00
|
|
|
end
|
|
|
|
end
|