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
20 lines
488 B
Ruby
20 lines
488 B
Ruby
require "spec_helper"
|
|
|
|
describe "openstack-compute::api-ec2" do
|
|
describe "redhat" do
|
|
before do
|
|
nova_common_stubs
|
|
@chef_run = ::ChefSpec::ChefRunner.new ::REDHAT_OPTS
|
|
@chef_run.converge "openstack-compute::api-ec2"
|
|
end
|
|
|
|
it "installs ec2 api packages" do
|
|
expect(@chef_run).to upgrade_package "openstack-nova-api"
|
|
end
|
|
|
|
it "starts ec2 api on boot" do
|
|
expect(@chef_run).to set_service_to_start_on_boot "openstack-nova-api"
|
|
end
|
|
end
|
|
end
|