
Currently puppet modules does not allow one to manage policy.json. This commit aims to create a common resource for people to manage their policies. Change-Id: I1cd7765cdcbddb7e7ad5d720f1efa382641712f2
26 lines
513 B
Ruby
26 lines
513 B
Ruby
require 'spec_helper'
|
|
|
|
describe 'openstacklib::policy' do
|
|
|
|
let :params do
|
|
{
|
|
:policies => {
|
|
'foo' => {
|
|
'file_path' => '/etc/nova/policy.json',
|
|
'key' => 'context_is_admin',
|
|
'value' => 'foo:bar'
|
|
}
|
|
}
|
|
}
|
|
end
|
|
|
|
it 'configures the proper policy' do
|
|
should contain_openstacklib__policy__base('foo').with(
|
|
:file_path => '/etc/nova/policy.json',
|
|
:key => 'context_is_admin',
|
|
:value => 'foo:bar'
|
|
)
|
|
end
|
|
|
|
end
|