OpenStack Mistral Puppet Module
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

42 lines
1.0 KiB

require 'spec_helper'
describe 'mistral::client' do
shared_examples_for 'mistral client' do
it { is_expected.to contain_class('mistral::deps') }
it { is_expected.to contain_class('mistral::params') }
it 'installs mistral client package' do
is_expected.to contain_package('python-mistralclient').with(
:ensure => 'present',
:name => platform_params[:client_package],
:tag => ['openstack', 'mistral-package']
)
end
it { is_expected.to contain_class('openstacklib::openstackclient') }
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'
{ :client_package => 'python3-mistralclient' }
when 'RedHat'
{ :client_package => 'python3-mistralclient' }
end
end
it_behaves_like 'mistral client'
end
end
end