26 lines
647 B
Ruby
26 lines
647 B
Ruby
# encoding: UTF-8
|
|
|
|
require_relative 'spec_helper'
|
|
|
|
describe 'openstack-compute::api-os-compute' do
|
|
describe 'redhat' do
|
|
let(:runner) { ChefSpec::Runner.new(REDHAT_OPTS) }
|
|
let(:node) { runner.node }
|
|
let(:chef_run) { runner.converge(described_recipe) }
|
|
|
|
include_context 'compute_stubs'
|
|
|
|
it 'upgrades openstack api packages' do
|
|
expect(chef_run).to upgrade_package 'openstack-nova-api'
|
|
end
|
|
|
|
it 'starts openstack api on boot' do
|
|
expect(chef_run).to enable_service 'openstack-nova-api'
|
|
end
|
|
|
|
it 'starts openstack api now' do
|
|
expect(chef_run).to start_service 'openstack-nova-api'
|
|
end
|
|
end
|
|
end
|