30 lines
826 B
Ruby
30 lines
826 B
Ruby
require_relative "spec_helper"
|
|
|
|
describe "openstack-orchestration::api-cfn" do
|
|
before { orchestration_stubs }
|
|
describe "redhat" do
|
|
before do
|
|
@chef_run = ::ChefSpec::Runner.new ::REDHAT_OPTS do |n|
|
|
n.set["openstack"]["orchestration"]["syslog"]["use"] = true
|
|
end
|
|
@chef_run.converge "openstack-orchestration::api-cfn"
|
|
end
|
|
|
|
expect_runs_openstack_orchestration_common_recipe
|
|
|
|
expect_runs_openstack_common_logging_recipe
|
|
|
|
it "installs heat client packages" do
|
|
expect(@chef_run).to upgrade_package "python-heatclient"
|
|
end
|
|
|
|
expect_creates_api_paste "service[heat-api-cfn]"
|
|
|
|
expect_creates_policy_json "service[heat-api-cfn]","heat","heat"
|
|
|
|
it "starts heat api-cfn on boot" do
|
|
expect(@chef_run).to enable_service("openstack-heat-api-cfn")
|
|
end
|
|
end
|
|
end
|