22 lines
624 B
Ruby
22 lines
624 B
Ruby
# encoding: UTF-8
|
|
require_relative 'spec_helper'
|
|
|
|
describe 'openstack-orchestration::api-cfn' do
|
|
describe 'redhat' do
|
|
let(:runner) { ChefSpec::SoloRunner.new(REDHAT_OPTS) }
|
|
let(:node) { runner.node }
|
|
let(:chef_run) { runner.converge(described_recipe) }
|
|
|
|
include_context 'orchestration_stubs'
|
|
include_examples 'expect runs openstack orchestration common recipe'
|
|
|
|
it 'installs heat cfn packages' do
|
|
expect(chef_run).to upgrade_package 'openstack-heat-api-cfn'
|
|
end
|
|
|
|
it 'starts heat api-cfn on boot' do
|
|
expect(chef_run).to enable_service('openstack-heat-api-cfn')
|
|
end
|
|
end
|
|
end
|