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

Change-Id: I0fff21c49f31ee4e6cabdf7edff1e1160b326e65
This commit is contained in:
ZhongShengping 2017-05-23 14:19:27 +08:00
parent 1d7f3d7b05
commit 524db15a0a
1 changed files with 6 additions and 2 deletions

View File

@ -20,8 +20,12 @@ describe 'glance::policy' do
:key => 'context_is_admin',
:value => 'foo:bar'
})
is_expected.to contain_glance_api_config('oslo_policy/policy_file').with_value('/etc/glance/policy.json')
is_expected.to contain_glance_registry_config('oslo_policy/policy_file').with_value('/etc/glance/policy.json')
is_expected.to contain_oslo__policy('glance_api_config').with(
:policy_file => '/etc/glance/policy.json',
)
is_expected.to contain_oslo__policy('glance_registry_config').with(
:policy_file => '/etc/glance/policy.json',
)
end
end