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

Change-Id: I4e78758b6ccfd05201fa2b6e69bc8664a9dc3dda
This commit is contained in:
ZhongShengping 2017-05-23 15:19:43 +08:00
parent 634c96c234
commit e547bede85
1 changed files with 3 additions and 1 deletions

View File

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