cleaned up the test
This commit is contained in:
@@ -101,19 +101,7 @@ describe "cinder::api" do
|
|||||||
expect(@chef_run).to execute_command cmd
|
expect(@chef_run).to execute_command cmd
|
||||||
end
|
end
|
||||||
|
|
||||||
describe "policy.json" do
|
expect_creates_policy_json "service[cinder-api]"
|
||||||
before do
|
|
||||||
@file = @chef_run.template "/etc/cinder/policy.json"
|
|
||||||
end
|
|
||||||
|
|
||||||
it "has proper owner" do
|
|
||||||
expect(@file).to be_owned_by "cinder", "cinder"
|
|
||||||
end
|
|
||||||
|
|
||||||
it "has proper modes" do
|
|
||||||
expect(sprintf("%o", @file.mode)).to eq "644"
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
describe "api-paste.ini" do
|
describe "api-paste.ini" do
|
||||||
before do
|
before do
|
||||||
|
|||||||
Reference in New Issue
Block a user