4c39102720
* Many fixes and improvements Related blueprint: deployment-dryrun Change-Id: I7cdb4ea455866480a773b803f4dddd66f0fd56d1 Fuel-CI: disable
24 lines
505 B
Ruby
24 lines
505 B
Ruby
require 'spec_helper'
|
|
require 'shared-examples'
|
|
manifest = 'astute/enable_compute.pp'
|
|
|
|
describe manifest do
|
|
shared_examples 'catalog' do
|
|
|
|
it "should contain nova-compute service" do
|
|
case facts[:operatingsystem]
|
|
when 'Ubuntu'
|
|
service_name = 'nova-compute'
|
|
when 'CentOS'
|
|
service_name = 'openstack-nova-compute'
|
|
else
|
|
service_name = 'nova-compute'
|
|
end
|
|
|
|
should contain_service(service_name)
|
|
end
|
|
|
|
end
|
|
test_ubuntu_and_centos manifest
|
|
end
|