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:
Takashi Kajinami 2020-03-31 22:27:12 +09:00
parent 673c27435a
commit d1b9adc10c
1 changed files with 9 additions and 1 deletions

View File

@ -29,7 +29,15 @@ describe 'murano::client' do
when 'Debian'
{ :pythonclient_package_name => 'python3-muranoclient' }
when 'RedHat'
{ :pythonclient_package_name => 'python-muranoclient' }
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