Browse Source

Merge "Expect python3 client/lib package in CentOS8"

tags/16.2.0
Zuul 3 months ago
committed by Gerrit Code Review
parent
commit
e3a8200dcf
6 changed files with 62 additions and 11 deletions
  1. +11
    -3
      spec/classes/ironic_client_spec.rb
  2. +9
    -1
      spec/classes/ironic_drivers_drac_spec.rb
  3. +9
    -1
      spec/classes/ironic_drivers_ilo_spec.rb
  4. +9
    -1
      spec/classes/ironic_drivers_redfish_spec.rb
  5. +13
    -2
      spec/classes/ironic_init_spec.rb
  6. +11
    -3
      spec/classes/ironic_inspector_client_spec.rb

+ 11
- 3
spec/classes/ironic_client_spec.rb View File

@@ -30,7 +30,7 @@ describe 'ironic::client' do
it 'installs ironic client package' do
is_expected.to contain_package('python-ironicclient').with(
:ensure => 'present',
:name => platform_params[:client_package_name],
:name => platform_params[:client_package],
:tag => ['openstack', 'ironic-support-package']
)
end
@@ -49,9 +49,17 @@ describe 'ironic::client' do
let(:platform_params) do
case facts[:osfamily]
when 'Debian'
{ :client_package_name => 'python3-ironicclient' }
{ :client_package => 'python3-ironicclient' }
when 'RedHat'
{ :client_package_name => 'python-ironicclient' }
if facts[:operatingsystem] == 'Fedora'
{ :client_package => 'python3-ironicclient' }
else
if facts[:operatingsystemmajrelease] > '7'
{ :client_package => 'python3-ironicclient' }
else
{ :client_package => 'python-ironicclient' }
end
end
end
end



+ 9
- 1
spec/classes/ironic_drivers_drac_spec.rb View File

@@ -46,7 +46,15 @@ describe 'ironic::drivers::drac' do
when 'Debian'
{ :dracclient_package_name => 'python3-dracclient' }
when 'RedHat'
{ :dracclient_package_name => 'python-dracclient' }
if facts[:operatingsystem] == 'Fedora'
{ :dracclient_package_name => 'python3-dracclient' }
else
if facts[:operatingsystemmajrelease] > '7'
{ :dracclient_package_name => 'python3-dracclient' }
else
{ :dracclient_package_name => 'python-dracclient' }
end
end
end
end



+ 9
- 1
spec/classes/ironic_drivers_ilo_spec.rb View File

@@ -71,7 +71,15 @@ describe 'ironic::drivers::ilo' do
when 'Debian'
{ :proliantutils_package_name => 'python3-proliantutils' }
when 'RedHat'
{ :proliantutils_package_name => 'python-proliantutils' }
if facts[:operatingsystem] == 'Fedora'
{ :proliantutils_package_name => 'python3-proliantutils' }
else
if facts[:operatingsystemmajrelease] > '7'
{ :proliantutils_package_name => 'python3-proliantutils' }
else
{ :proliantutils_package_name => 'python-proliantutils' }
end
end
end
end



+ 9
- 1
spec/classes/ironic_drivers_redfish_spec.rb View File

@@ -65,7 +65,15 @@ describe 'ironic::drivers::redfish' do
when 'Debian'
{ :sushy_package_name => 'python3-sushy' }
when 'RedHat'
{ :sushy_package_name => 'python-sushy' }
if facts[:operatingsystem] == 'Fedora'
{ :sushy_package_name => 'python3-sushy' }
else
if facts[:operatingsystemmajrelease] > '7'
{ :sushy_package_name => 'python3-sushy' }
else
{ :sushy_package_name => 'python-sushy' }
end
end
end
end



+ 13
- 2
spec/classes/ironic_init_spec.rb View File

@@ -281,8 +281,19 @@ describe 'ironic' do
{ :common_package_name => 'ironic-common',
:lib_package_name => 'python3-ironic-lib' }
when 'RedHat'
{ :common_package_name => 'openstack-ironic-common',
:lib_package_name => 'python-ironic-lib' }
if facts[:operatingsystem] == 'Fedora'
{ :common_package_name => 'openstack-ironic-common',
:lib_package_name => 'python3-ironic-lib' }
else
if facts[:operatingsystemmajrelease] > '7'
{ :common_package_name => 'openstack-ironic-common',
:lib_package_name => 'python3-ironic-lib' }
else
{ :common_package_name => 'openstack-ironic-common',
:lib_package_name => 'python-ironic-lib' }
end
end

end
end



+ 11
- 3
spec/classes/ironic_inspector_client_spec.rb View File

@@ -35,7 +35,7 @@ describe 'ironic::inspector::client' do
it 'installs ironic inspector client package' do
is_expected.to contain_package('python-ironic-inspector-client').with(
:ensure => 'present',
:name => platform_params[:ironic_inspector_client_package_name],
:name => platform_params[:inspector_client_package],
:tag => ['openstack', 'ironic-support-package'],
)
end
@@ -54,9 +54,17 @@ describe 'ironic::inspector::client' do
let (:platform_params) do
case facts[:osfamily]
when 'Debian'
{ :ironic_inspector_client_package_name => 'python3-ironic-inspector-client' }
{ :inspector_client_package => 'python3-ironic-inspector-client' }
when 'RedHat'
{ :ironic_inspector_client_package_name => 'python-ironic-inspector-client' }
if facts[:operatingsystem] == 'Fedora'
{ :inspector_client_package => 'python3-ironic-inspector-client' }
else
if facts[:operatingsystemmajrelease] > '7'
{ :inspector_client_package => 'python3-ironic-inspector-client' }
else
{ :inspector_client_package => 'python-ironic-inspector-client' }
end
end
end
end



Loading…
Cancel
Save