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
26 lines
665 B
Ruby
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
|