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:
Takashi Kajinami 2023-05-25 12:01:46 +09:00
parent 04b78bbe35
commit 8359663751

View File

@ -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