aboutsummaryrefslogtreecommitdiffstats
path: root/spec/classes/tripleo_profile_base_aodh_api_spec.rb
diff options
context:
space:
mode:
authorJuan Antonio Osorio Robles <jaosorior@redhat.com>2017-06-21 15:43:25 +0300
committerJuan Antonio Osorio Robles <jaosorior@redhat.com>2017-06-27 14:38:45 +0300
commitad14f23c112922399b96601806da34ad045cbf22 (patch)
treee0e4cca7e4a3c857679c207bbfea29bd455b7456 /spec/classes/tripleo_profile_base_aodh_api_spec.rb
parent3fcafacc1e3de1c3fad756135889f2f4a3c4fbe2 (diff)
Always start httpd at the same time
Puppet wipes out whatever is not in it's resource catalog each run for httpd. This causes httpd to restart if in the next step there are reasources added that were not there earlier. This patch, thus changes the instances of httpd to start at the same time: On step 3 for the bootstrap node, and on step 4 for every other node. Closes-Bug: #1699502 Change-Id: I3d29728c1ab7bd5b78100f89e00e5fa082f97b0c Co-Authored-By: Alex Schultz <aschultz@redhat.com>
Diffstat (limited to 'spec/classes/tripleo_profile_base_aodh_api_spec.rb')
-rw-r--r--spec/classes/tripleo_profile_base_aodh_api_spec.rb25
1 files changed, 24 insertions, 1 deletions
diff --git a/spec/classes/tripleo_profile_base_aodh_api_spec.rb b/spec/classes/tripleo_profile_base_aodh_api_spec.rb
index a82cf49..27bd735 100644
--- a/spec/classes/tripleo_profile_base_aodh_api_spec.rb
+++ b/spec/classes/tripleo_profile_base_aodh_api_spec.rb
@@ -33,12 +33,35 @@ describe 'tripleo::profile::base::aodh::api' do
end
end
- context 'with step 3' do
+ context 'with step 3 and not bootstrap' do
let(:params) { {
:step => 3,
} }
it 'should trigger complete configuration' do
+ is_expected.not_to contain_class('aodh::api')
+ is_expected.not_to contain_class('aodh::wsgi::apache')
+ end
+ end
+
+ context 'with step 3 and bootstrap' do
+ let(:params) { {
+ :step => 3,
+ :bootstrap_node => 'node.example.com'
+ } }
+
+ it 'should trigger complete configuration' do
+ is_expected.to contain_class('aodh::api')
+ is_expected.to contain_class('aodh::wsgi::apache')
+ end
+ end
+
+ context 'with step 4' do
+ let(:params) { {
+ :step => 4,
+ } }
+
+ it 'should trigger complete configuration' do
is_expected.to contain_class('aodh::api')
is_expected.to contain_class('aodh::wsgi::apache')
end