Remove policy json file

Remove the policy.json template, as they contain no templated variables.
This would allow use of the policy.json files provided via the package,
and decrease the need to sync them with upstream

Change-Id: I4b76b948b6a08502f15c5289f5c0503d24382006
Implements: blueprint remove-policy-templates
This commit is contained in:
Mark Vanderwiel
2014-04-17 13:18:30 -05:00
parent 0a2d3e6174
commit e5beee63c1
9 changed files with 4 additions and 76 deletions

View File

@@ -113,22 +113,3 @@ def expect_creates_cinder_conf(service, user, group, action = :restart) # ruboco
end
end
end
def expect_creates_policy_json(service, user, group, action = :restart) # rubocop:disable MethodLength
describe 'policy.json' do
let(:file) { chef_run.template('/etc/cinder/policy.json') }
it 'has proper owner' do
expect(file.owner).to eq(user)
expect(file.group).to eq(group)
end
it 'has proper modes' do
expect(sprintf('%o', file.mode)).to eq '644'
end
it 'notifies service restart' do
expect(file).to notify(service).to(action)
end
end
end