Files
cookbook-openstack-block-st…/spec/api-redhat_spec.rb
John Dewey 297c8b1c51 Renamed keystone_registration recipe
Renamed keystone_registration to identity_registration, and added
identity_registration tests.  Added registration tests to simply
test the args being passed to the `openstack_identity_register` LWRP.
The identity LWRP should be tested at a deeper level than the consumers.

Testing args passed to a DSL (&block) is a bit tricky. The tests
are not ideal, but give us the necessary coverage to catch common
errors.

Fixes: Bug 1182574
Change-Id: I4794e555133852cfbacd407dc726c6b65ecdef65
2013-05-21 22:17:54 -07:00

22 lines
623 B
Ruby

require "spec_helper"
describe "openstack-block-storage::api" do
describe "redhat" do
before do
block_storage_stubs
@chef_run = ::ChefSpec::ChefRunner.new ::REDHAT_OPTS
@chef_run.converge "openstack-block-storage::api"
end
it "installs cinder api packages" do
expect(@chef_run).to upgrade_package "openstack-cinder"
expect(@chef_run).to upgrade_package "python-cinderclient"
expect(@chef_run).to upgrade_package "MySQL-python"
end
it "starts cinder api on boot" do
expect(@chef_run).to set_service_to_start_on_boot "openstack-cinder-api"
end
end
end