Expect python3 client package in CentOS8

In CentOS, we expect to have python3 client package in 8.x while we
expect to have python2 in 7.x .
Fix unit tests to expect the correct version according to os major
version.

Change-Id: Ib30f166bcda403fdf26fe05ed0a63a546974c442
This commit is contained in:
Takashi Kajinami 2020-03-31 16:02:57 +09:00
parent 8ffd2a765b
commit ffe4c942c0

View File

@ -63,7 +63,15 @@ describe 'barbican::client' do
when 'Debian'
{ :client_package_name => 'python3-barbicanclient' }
when 'RedHat'
{ :client_package_name => 'python-barbicanclient' }
if facts[:operatingsystem] == 'Fedora'
{ :client_package_name => 'python3-barbicanclient' }
else
if facts[:operatingsystemmajrelease] > '7'
{ :client_package_name => 'python3-barbicanclient' }
else
{ :client_package_name => 'python-barbicanclient' }
end
end
end
end