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: I0d56fa9d9a323017d53062d4779dd916816fd0ef
This commit is contained in:
parent
21d75e6599
commit
eb5e55e5ef
|
@ -34,7 +34,15 @@ describe 'congress::client' do
|
|||
when 'Debian'
|
||||
{ :client_package_name => 'python3-congressclient' }
|
||||
when 'RedHat'
|
||||
{ :client_package_name => 'python-congressclient' }
|
||||
if facts[:operatingsystem] == 'Fedora'
|
||||
{ :client_package_name => 'python3-congressclient' }
|
||||
else
|
||||
if facts[:operatingsystemmajrelease] > '7'
|
||||
{ :client_package_name => 'python3-congressclient' }
|
||||
else
|
||||
{ :client_package_name => 'python-congressclient' }
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue