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

Change-Id: I494ed6b2d9c2e0a84380cb1cce7dbec6f0fc0034
This commit is contained in:
ZhongShengping 2017-05-23 14:05:42 +08:00
parent a1c79a54b3
commit 877f6ca1d1
1 changed files with 3 additions and 1 deletions

View File

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