Files
cookbook-openstack-network/spec/l3_agent-redhat_spec.rb
Lance Albertson 75e073a7b0 CentOS 8 support
- Update various packages for EL8
- Use platform family for installing dnsmasq
- ChefSpec updates

Depends-On: https://review.opendev.org/c/openstack/cookbook-openstack-identity/+/815147
Change-Id: Ia566d70348f1245733b5074b3ad6e0bb30c3e405
Signed-off-by: Lance Albertson <lance@osuosl.org>
2021-10-22 16:33:19 -07:00

29 lines
700 B
Ruby

require_relative 'spec_helper'
describe 'openstack-network::l3_agent' 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
node.override['openstack']['compute']['network']['service_type'] = 'neutron'
stub_command('ovs-vsctl br-exists br-ex').and_return(false)
runner.converge(described_recipe)
end
include_context 'neutron-stubs'
pkgs =
%w(
iproute
keepalived
openstack-neutron
radvd
)
it do
expect(chef_run).to upgrade_package(pkgs)
end
end
end
end