Files
puppet-gnocchi/spec/classes/gnocchi_storage_spec.rb
Takashi Kajinami 271ccb6103 Deprecate parameters under gnocchi::storage
coordination_url[1] and metric_processing_delay[2] under storage
section are both deprecated, so deprecate parameters under
gnocchi::storage and migrate these parameters to appropriate
classes, gnocchi and gnocchi::metricd .

[1] 70b9ca427b
[2] 72fdba704d
Change-Id: I88dff282df4ce477e543dd2fcf5052a9ac472b84
2020-03-20 22:06:53 +09:00

31 lines
624 B
Ruby

require 'spec_helper'
describe 'gnocchi::storage' do
shared_examples_for 'gnocchi-storage' do
# Nothong to test
end
on_supported_os({
:supported_os => OSDefaults.get_supported_os
}).each do |os,facts|
context "on #{os}" do
let (:facts) do
facts.merge!(OSDefaults.get_facts())
end
let(:platform_params) do
case facts[:osfamily]
when 'Debian'
{ :redis_package_name => 'python3-redis' }
when 'RedHat'
{ :redis_package_name => 'python-redis' }
end
end
it_behaves_like 'gnocchi-storage'
end
end
end