a1acd590a0
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
29 lines
744 B
Ruby
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
|