From 62b80f66c76910c08e90b7757d4f8f2fe8594794 Mon Sep 17 00:00:00 2001 From: ZhongShengping Date: Tue, 23 May 2017 15:18:08 +0800 Subject: [PATCH] oslo policy: check puppet resource instead of actual config in spec Change-Id: I6cd53642caffc0290ec38d514e6fcaa4eebd9572 --- spec/classes/neutron_policy_spec.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/spec/classes/neutron_policy_spec.rb b/spec/classes/neutron_policy_spec.rb index 9aefa390a..a6c71d0ab 100644 --- a/spec/classes/neutron_policy_spec.rb +++ b/spec/classes/neutron_policy_spec.rb @@ -29,7 +29,9 @@ describe 'neutron::policy' do end it 'set policy_file in neutron.conf' do - is_expected.to contain_neutron_config('oslo_policy/policy_file').with_value(params[:policy_path]) + is_expected.to contain_oslo__policy('neutron_config').with( + :policy_file => '/etc/neutron/policy.json', + ) end end