Files
cookbook-openstack-orchestr…/spec/api-redhat_spec.rb
Lance Albertson 8343638fc1 CentOS 8 support
- ChefSpec updates

Depends-On: https://review.opendev.org/c/openstack/cookbook-openstack-identity/+/815147
Depends-On: https://review.opendev.org/c/openstack/cookbook-openstack-compute/+/815173
Change-Id: I17fc8fafd977c8412f8e9519642ccbcd427c2949
Signed-off-by: Lance Albertson <lance@osuosl.org>
2021-10-24 12:03:51 -07:00

27 lines
766 B
Ruby

require_relative 'spec_helper'
describe 'openstack-orchestration::api' do
ALL_RHEL.each do |p|
context "redhat #{p[:version]}" do
let(:runner) { ChefSpec::SoloRunner.new(p) }
let(:node) { runner.node }
cached(:chef_run) { runner.converge(described_recipe) }
include_context 'orchestration_stubs'
include_examples 'expect runs openstack orchestration common recipe'
it 'installs heat api packages' do
expect(chef_run).to upgrade_package 'openstack-heat-api'
end
it 'enables heat api on boot' do
expect(chef_run).to enable_service('openstack-heat-api')
end
it 'starts heat api on boot' do
expect(chef_run).to start_service('openstack-heat-api')
end
end
end
end