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

Change-Id: I6791feeb04ca0ac5fa4ddf775352184c0dbd71a6
This commit is contained in:
ZhongShengping 2017-05-23 14:57:48 +08:00
parent 348333f4df
commit 106ae55131
1 changed files with 3 additions and 1 deletions

View File

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