Files
cookbook-openstack-compute/spec/scheduler-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

25 lines
655 B
Ruby

require "spec_helper"
describe "openstack-compute::scheduler" do
describe "redhat" do
before do
nova_common_stubs
@chef_run = ::ChefSpec::ChefRunner.new ::REDHAT_OPTS
@chef_run.converge "openstack-compute::scheduler"
end
it "installs nova scheduler packages" do
expect(@chef_run).to upgrade_package "openstack-nova-scheduler"
end
it "starts nova scheduler" do
expect(@chef_run).to start_service "openstack-nova-scheduler"
end
it "starts nova scheduler on boot" do
expected = "openstack-nova-scheduler"
expect(@chef_run).to set_service_to_start_on_boot expected
end
end
end