oslo policy: check puppet resource instead of actual config in spec

Change-Id: I0767568c4a2f6cd61207d500549a2a3770f72c37
This commit is contained in:
ZhongShengping 2017-05-23 14:07:35 +08:00
parent e0a9127f06
commit ef62061b65
1 changed files with 3 additions and 1 deletions

View File

@ -20,7 +20,9 @@ describe 'ec2api::policy' do
:key => 'context_is_admin',
:value => 'foo:bar'
})
is_expected.to contain_ec2api_config('oslo_policy/policy_file').with_value('/etc/ec2api/policy.json')
is_expected.to contain_oslo__policy('ec2api_config').with(
:policy_file => '/etc/ec2api/policy.json',
)
end
end