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

Change-Id: I0743932758aee9d4b6b36d8dfff179df71672689
This commit is contained in:
ZhongShengping 2017-05-23 15:18:50 +08:00
parent 882cacab52
commit 5e92870e7f
1 changed files with 3 additions and 1 deletions

View File

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