5acd143e9c
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
30 lines
685 B
Ruby
30 lines
685 B
Ruby
# encoding: UTF-8
|
|
|
|
require_relative 'spec_helper'
|
|
|
|
describe 'openstack-compute::api-metadata' do
|
|
before { compute_stubs }
|
|
describe 'ubuntu' do
|
|
before do
|
|
@chef_run = ::ChefSpec::Runner.new ::UBUNTU_OPTS
|
|
@chef_run.converge 'openstack-compute::api-metadata'
|
|
end
|
|
|
|
expect_runs_nova_common_recipe
|
|
|
|
expect_creates_nova_lock_dir
|
|
|
|
expect_installs_python_keystone
|
|
|
|
it 'installs metadata api packages' do
|
|
expect(@chef_run).to upgrade_package 'nova-api-metadata'
|
|
end
|
|
|
|
it 'starts metadata api on boot' do
|
|
expect(@chef_run).to enable_service 'nova-api-metadata'
|
|
end
|
|
|
|
expect_creates_api_paste 'service[nova-api-metadata]'
|
|
end
|
|
end
|