1f7d3f17aa
This looses dependency using the new openstackclient tag, which requires only packages actually related to openstack CLI. Depends-on: https://review.opendev.org/899594 Change-Id: I43d58b73daf5f3113f7f5800164443ad8875a4cc
40 lines
1006 B
Ruby
40 lines
1006 B
Ruby
require 'spec_helper'
|
|
|
|
describe 'neutron::client' do
|
|
shared_examples 'neutron client' do
|
|
it { should contain_class('neutron::deps') }
|
|
it { should contain_class('neutron::params') }
|
|
|
|
it 'installs neutron client package' do
|
|
should contain_package('python-neutronclient').with(
|
|
:ensure => 'present',
|
|
:name => platform_params[:client_package],
|
|
:tag => 'openstack',
|
|
)
|
|
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[:os]['family']
|
|
when 'Debian'
|
|
{ :client_package => 'python3-neutronclient' }
|
|
when 'RedHat'
|
|
{ :client_package => 'python3-neutronclient' }
|
|
end
|
|
end
|
|
|
|
it_behaves_like 'neutron client'
|
|
end
|
|
end
|
|
end
|