cookbook-openstack-compute/spec/compute-redhat_spec.rb
John Dewey a1acd590a0 Changed cookbook name to openstack-compute
Changed the cookbook name to openstack-compute, fixed all tests, and
addressed attributes. Also addressed calls to external services,
primarily keystone -> openstack-identity.

All tests pass.

Change-Id: Ic567a33cefd78cc3b2217986d3ff7475bc93f874
2013-05-16 17:59:06 -07:00

29 lines
744 B
Ruby

require "spec_helper"
describe "openstack-compute::compute" do
describe "redhat" do
before do
nova_common_stubs
@chef_run = ::ChefSpec::ChefRunner.new ::REDHAT_OPTS
@chef_run.converge "openstack-compute::compute"
end
it "does not install kvm when virt_type is 'kvm'" do
pending "TODO: how to test this"
end
it "does not install qemu when virt_type is 'qemu'" do
pending "TODO: how to test this"
end
it "installs nova compute packages" do
expect(@chef_run).to upgrade_package "openstack-nova-compute"
end
it "starts nova compute on boot" do
expected = "openstack-nova-compute"
expect(@chef_run).to set_service_to_start_on_boot expected
end
end
end