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
28 lines
669 B
Ruby
28 lines
669 B
Ruby
require "spec_helper"
|
|
|
|
describe "openstack-compute::scheduler" do
|
|
describe "ubuntu" do
|
|
before do
|
|
nova_common_stubs
|
|
@chef_run = ::ChefSpec::ChefRunner.new ::UBUNTU_OPTS
|
|
@chef_run.converge "openstack-compute::scheduler"
|
|
end
|
|
|
|
expect_runs_nova_common_recipe
|
|
|
|
expect_creates_nova_lock_dir
|
|
|
|
it "installs nova scheduler packages" do
|
|
expect(@chef_run).to upgrade_package "nova-scheduler"
|
|
end
|
|
|
|
it "starts nova scheduler" do
|
|
expect(@chef_run).to start_service "nova-scheduler"
|
|
end
|
|
|
|
it "starts nova scheduler on boot" do
|
|
expect(@chef_run).to set_service_to_start_on_boot "nova-scheduler"
|
|
end
|
|
end
|
|
end
|