This adds defined anchor points for external modules to hook into the software install, config and service dependency chain. This allows external modules to manage software installation (virtualenv, containers, etc) and service management (pacemaker) without needing rely on resources that may change or be renamed. Change-Id: Idc43b06eab3f7103392da699e2a77bb55ce7344d
32 lines
708 B
Ruby
32 lines
708 B
Ruby
require 'spec_helper'
|
|
|
|
describe 'gnocchi::client' do
|
|
|
|
shared_examples_for 'gnocchi client' do
|
|
|
|
it { is_expected.to contain_class('gnocchi::deps') }
|
|
it { is_expected.to contain_class('gnocchi::params') }
|
|
|
|
it 'installs gnocchi client package' do
|
|
is_expected.to contain_package('python-gnocchiclient').with(
|
|
:ensure => 'present',
|
|
:name => 'python-gnocchiclient',
|
|
:tag => 'openstack',
|
|
)
|
|
end
|
|
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
|
|
|
|
it_behaves_like 'gnocchi client'
|
|
end
|
|
end
|
|
|
|
end
|