fc4a0fd510
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: I0d18ec6ffe6b54c85773a6dabb0ed7b6f59a12f4
36 lines
847 B
Ruby
36 lines
847 B
Ruby
require 'spec_helper'
|
|
|
|
describe 'ceilometer::client' do
|
|
|
|
shared_examples_for 'ceilometer client' do
|
|
|
|
it { is_expected.to contain_class('ceilometer::deps') }
|
|
it { is_expected.to contain_class('ceilometer::params') }
|
|
|
|
it 'installs ceilometer client package' do
|
|
is_expected.to contain_package('python-ceilometerclient').with(
|
|
:ensure => 'present',
|
|
:name => platform_params[:client_package_name],
|
|
: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
|
|
|
|
let :platform_params do
|
|
{ :client_package_name => 'python-ceilometerclient' }
|
|
end
|
|
|
|
it_behaves_like 'ceilometer client'
|
|
end
|
|
end
|
|
|
|
end
|