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

Change-Id: I33e0bf272e7b962f7d9c62bafe00148f5613b94a
This commit is contained in:
ZhongShengping 2017-05-23 15:08:08 +08:00
parent 3fbc3701e3
commit 3b4214d140
1 changed files with 3 additions and 1 deletions

View File

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