fuel-library/tests/noop/spec/hosts/astute/enable_compute_spec.rb
Dmitry Ilyin 4c39102720 Improve Noop tests
* Many fixes and improvements

Related blueprint: deployment-dryrun

Change-Id: I7cdb4ea455866480a773b803f4dddd66f0fd56d1
Fuel-CI: disable
2015-04-21 17:08:22 +03:00

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