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

Change-Id: Iccb0067e80e9bbc6a3c0ce2e1b1c0cbd34174b17
This commit is contained in:
ZhongShengping 2017-05-23 15:24:58 +08:00
parent 80f5b3740f
commit a24211e73e
1 changed files with 3 additions and 1 deletions

View File

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