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
24 lines
591 B
Ruby
24 lines
591 B
Ruby
require "spec_helper"
|
|
|
|
describe "openstack-compute::nova-common" do
|
|
describe "redhat" do
|
|
before do
|
|
nova_common_stubs
|
|
@chef_run = ::ChefSpec::ChefRunner.new ::REDHAT_OPTS
|
|
@chef_run.converge "openstack-compute::nova-common"
|
|
end
|
|
|
|
it "runs epel recipe" do
|
|
expect(@chef_run).to include_recipe "yum::epel"
|
|
end
|
|
|
|
it "installs nova common packages" do
|
|
expect(@chef_run).to upgrade_package "openstack-nova-common"
|
|
end
|
|
|
|
it "installs memcache python packages" do
|
|
expect(@chef_run).to install_package "python-memcached"
|
|
end
|
|
end
|
|
end
|