summaryrefslogtreecommitdiffstats
path: root/spec
diff options
context:
space:
mode:
authorPradeep Kilambi <pkilambi@redhat.com>2016-12-09 11:31:11 -0500
committerPradeep Kilambi <pkilambi@redhat.com>2016-12-09 14:18:50 -0500
commitbb317aac01c4eced7cf1cd104948d49947f494bd (patch)
treebf083bf78980fb13f678caca7c0d81e2d43b0190 /spec
parent9fcf8ac9ffc54e9377dd7aaa137401da2c717c89 (diff)
Disable legacy ceilometer api by default
Ceilometer api is deprectaed in Ocata. Lets disable by default. This can still be enabled by setting enable_legacy_ceilometer_api param. Change-Id: Iffb8c2cfed53d8b29e777c35cee44921194239e9
Diffstat (limited to 'spec')
-rw-r--r--spec/classes/tripleo_profile_base_ceilometer_api_spec.rb16
1 files changed, 14 insertions, 2 deletions
diff --git a/spec/classes/tripleo_profile_base_ceilometer_api_spec.rb b/spec/classes/tripleo_profile_base_ceilometer_api_spec.rb
index 935e9e8..2887d32 100644
--- a/spec/classes/tripleo_profile_base_ceilometer_api_spec.rb
+++ b/spec/classes/tripleo_profile_base_ceilometer_api_spec.rb
@@ -32,9 +32,10 @@ describe 'tripleo::profile::base::ceilometer::api' do
end
end
- context 'with step 4' do
+ context 'with step 4 and enable_legacy_api' do
let(:params) { {
- :step => 4,
+ :step => 4,
+ :enable_legacy_api => true,
} }
it 'should trigger complete configuration' do
@@ -42,6 +43,17 @@ describe 'tripleo::profile::base::ceilometer::api' do
is_expected.to contain_class('ceilometer::wsgi::apache')
end
end
+
+ context 'with step 4 and default enable_legacy_api' do
+ let(:params) { {
+ :step => 4,
+ } }
+
+ it 'should do nothing' do
+ is_expected.to_not contain_class('ceilometer::api')
+ is_expected.to_not contain_class('ceilometer::wsgi::apache')
+ end
+ end
end