From 40a0967ac76a4788ccc0273ef829842a4eab82d1 Mon Sep 17 00:00:00 2001 From: ZhongShengping Date: Tue, 23 May 2017 15:01:27 +0800 Subject: [PATCH] oslo policy: check puppet resource instead of actual config in spec Change-Id: If00ed6d398e0c5835bc75427a7b561b64b624520 --- spec/classes/heat_policy_spec.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/spec/classes/heat_policy_spec.rb b/spec/classes/heat_policy_spec.rb index 6cf34b5c..136216ab 100644 --- a/spec/classes/heat_policy_spec.rb +++ b/spec/classes/heat_policy_spec.rb @@ -20,7 +20,9 @@ describe 'heat::policy' do :key => 'context_is_admin', :value => 'foo:bar' }) - is_expected.to contain_heat_config('oslo_policy/policy_file').with_value('/etc/heat/policy.json') + is_expected.to contain_oslo__policy('heat_config').with( + :policy_file => '/etc/heat/policy.json', + ) end end