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

Change-Id: Ic72db18a8dc8b0c7448436290decb1c975047de2
This commit is contained in:
ZhongShengping 2017-05-23 15:28:12 +08:00
parent 1430f8d6ef
commit f92817c91d
1 changed files with 3 additions and 1 deletions

View File

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