Files
cookbook-openstack-integrat…/spec/setup-redhat_spec.rb
Lance Albertson 25839992da CentOS 8 support
- Update packages for EL8
- Update ChefSpec

Depends-On: https://review.opendev.org/c/openstack/openstack-chef/+/814234
Depends-On: https://review.opendev.org/c/openstack/cookbook-openstack-ops-database/+/815139
Depends-On: https://review.opendev.org/c/openstack/cookbook-openstack-ops-messaging/+/815137
Change-Id: Icf3119067dd4dd45291c0565d97b3fcc89ca3cac
Signed-off-by: Lance Albertson <lance@osuosl.org>
2021-10-24 12:25:54 -07:00

27 lines
908 B
Ruby

require_relative 'spec_helper'
describe 'openstack-integration-test::setup' do
ALL_RHEL.each do |p|
context "redhat #{p[:version]}" do
let(:runner) { ChefSpec::SoloRunner.new(p) }
let(:node) { runner.node }
cached(:chef_run) do
runner.converge(described_recipe)
end
include_context 'tempest-stubs'
case p
when REDHAT_7
it 'installs tempest dependencies' do
expect(chef_run).to upgrade_package %w(curl git libffi-devel libxml2-devel libxslt-devel python-ddt python-devel python-gabbi python-testrepository python-testscenarios)
end
when REDHAT_8
it 'installs tempest dependencies' do
expect(chef_run).to upgrade_package %w(curl git libffi-devel libxml2-devel libxslt-devel python3-ddt python3-gabbi python3-testrepository python3-testscenarios python36-devel)
end
end
end
end
end