diff options
author | 2017-03-28 18:22:56 +0000 | |
---|---|---|
committer | 2017-03-28 18:22:56 +0000 | |
commit | c128380c0b3661784528a05b424cc899042f0a14 (patch) | |
tree | e179598d8c4d614772df12168cf6e27625474c99 /spec | |
parent | a526c10ac920abd4b55321764221875c80dd3bb8 (diff) | |
parent | aec471a78d46d839e98026c4cb98acb412a7b424 (diff) |
Merge "Re-run gnocchi and ceilometer upgrade in step 5"
Diffstat (limited to 'spec')
-rw-r--r-- | spec/classes/tripleo_profile_base_ceilometer_collector_spec.rb | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/spec/classes/tripleo_profile_base_ceilometer_collector_spec.rb b/spec/classes/tripleo_profile_base_ceilometer_collector_spec.rb index 23b198a..0f9aad7 100644 --- a/spec/classes/tripleo_profile_base_ceilometer_collector_spec.rb +++ b/spec/classes/tripleo_profile_base_ceilometer_collector_spec.rb @@ -128,6 +128,32 @@ describe 'tripleo::profile::base::ceilometer::collector' do is_expected.to contain_class('ceilometer::dispatcher::gnocchi') end end + + context 'with step 5 on bootstrap node' do + let(:params) { { + :step => 5, + :bootstrap_node => 'node.example.com', + :mongodb_node_ips => ['127.0.0.1',], + :mongodb_replset => 'replicaset' + } } + + it 'should trigger complete configuration' do + is_expected.to contain_exec('ceilometer-db-upgrade') + end + end + + context 'with step 5 not on bootstrap node' do + let(:params) { { + :step => 5, + :bootstrap_node => 'somethingelse.example.com', + :mongodb_node_ips => ['127.0.0.1',], + :mongodb_replset => 'replicaset' + } } + + it 'should trigger complete configuration' do + is_expected.to_not contain_exec('ceilometer-db-upgrade') + end + end end |