Files
cookbook-openstack-compute/spec/conductor_redhat_spec.rb
John Dewey d496d4081f Tests should be using require_relative
The #require_relative statement is relative to the file
containing the the statement. Also, updated spec_helper
constants to follow existing spacing format.

Change-Id: I33c5c158ea34c30baf63bd72819b9d44b8516ca4
2013-06-03 19:47:59 -07:00

26 lines
665 B
Ruby

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