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

Change-Id: I04ba39feb1667a9d308ecbea87072be522124497
This commit is contained in:
ZhongShengping 2017-05-23 09:36:17 +08:00
parent 323fb38a17
commit f851057b7e
1 changed files with 3 additions and 1 deletions

View File

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