fuel-library/tests/noop/spec/hosts/astute/enable_cinder_spec.rb

22 lines
506 B
Ruby

require 'spec_helper'
require 'shared-examples'
manifest = 'astute/enable_cinder.pp'
describe manifest do
shared_examples 'catalog' do
it "should contain cinder-volume service" do
case facts[:operatingsystem]
when 'Ubuntu'
service_name = 'cinder-volume'
when 'CentOS'
service_name = 'openstack-cinder-volume'
else
service_name = 'cinder-volume'
end
should contain_service(service_name)
end
end
test_ubuntu_and_centos manifest
end