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

Change-Id: I36fc2d21e5b026b9774365ec5a369a8bfd78af10
This commit is contained in:
ZhongShengping 2017-05-23 14:02:36 +08:00
parent 89d408fa92
commit 64127659ab
1 changed files with 3 additions and 1 deletions

View File

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