
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: I0b524e354b095f2642fd38a2f88536d15bcdf855
21 lines
473 B
Ruby
21 lines
473 B
Ruby
require 'spec_helper'
|
|
|
|
describe 'nova::client' do
|
|
|
|
context 'with default parameters' do
|
|
it {
|
|
is_expected.to contain_package('python-novaclient').with(
|
|
:ensure => 'present',
|
|
:tag => ['openstack', 'nova-support-package']
|
|
)
|
|
}
|
|
end
|
|
|
|
context 'with ensure parameter provided' do
|
|
let :params do
|
|
{ :ensure => '2012.1-2' }
|
|
end
|
|
it { is_expected.to contain_package('python-novaclient').with_ensure('2012.1-2') }
|
|
end
|
|
end
|