CentOS: Use dnf to install packages
dnf replaced yum and yum command is no longer available by default. Change-Id: I91e97082864dfd4fb159e41b8719fc2c25ba9cb2
This commit is contained in:
parent
04b78bbe35
commit
8359663751
@ -22,8 +22,8 @@ describe 'openstack_extras::repo::*' do
|
||||
expect(command('apt-get install -y python-openstackclient').exit_code).to be_zero
|
||||
expect(command('apt-cache policy python-openstackclient | grep -A 1 \*\*\*').stdout).to match(/#{release}/)
|
||||
elsif os[:family] == 'RedHat'
|
||||
expect(command('yum install -y python-openstackclient').exit_code).to be_zero
|
||||
expect(command('yum list python-openstackclient | grep -A 1 "Installed Packages"').stdout).to match(/@rdo-release/)
|
||||
expect(command('dnf install -y python-openstackclient').exit_code).to be_zero
|
||||
expect(command('dnf list python-openstackclient | grep -A 1 "Installed Packages"').stdout).to match(/@rdo-release/)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user