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: I116de1cfe574115ae51a3a1b87f6a307e6a7c043
This commit is contained in:
parent
673c27435a
commit
d1b9adc10c
|
@ -29,9 +29,17 @@ describe 'murano::client' do
|
|||
when 'Debian'
|
||||
{ :pythonclient_package_name => 'python3-muranoclient' }
|
||||
when 'RedHat'
|
||||
if facts[:operatingsystem] == 'Fedora'
|
||||
{ :pythonclient_package_name => 'python3-muranoclient' }
|
||||
else
|
||||
if facts[:operatingsystemmajrelease] > '7'
|
||||
{ :pythonclient_package_name => 'python3-muranoclient' }
|
||||
else
|
||||
{ :pythonclient_package_name => 'python-muranoclient' }
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
it_behaves_like 'murano client'
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue