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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user