cookbook-openstack-compute/spec/api-os-compute-redhat_spec.rb
Andy McCrae 5acd143e9c Cleanup node['cpu']['total'] work-around for fauxhai
The fauxhai fix for the cpu stanza has merged and is available in
fauxhai version 2.1.0 so reverting the workaround patch and ensuring
fauxhai 2.1.0 is used.

- Remove the node.set for ['cpu']['total'] in the spec tests
- Adjust the Gemfile to use fauxhai 2.1.0
- Adjust the Gemfile.lock

Change-Id: I75e1837871b9ad6d02c40ab8a9d5b127a685b66f
Addresses: blueprint fauxhai-cleanup
2014-02-18 11:46:16 +00:00

22 lines
527 B
Ruby

# encoding: UTF-8
require_relative 'spec_helper'
describe 'openstack-compute::api-os-compute' do
before { compute_stubs }
describe 'redhat' do
before do
@chef_run = ::ChefSpec::Runner.new ::REDHAT_OPTS
@chef_run.converge 'openstack-compute::api-os-compute'
end
it 'installs 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
end
end