From f4118699da7ef0d252cfa4a2343a0ae9e50d8174 Mon Sep 17 00:00:00 2001 From: ZhongShengping Date: Tue, 23 May 2017 13:53:52 +0800 Subject: [PATCH] oslo policy: check puppet resource instead of actual config in spec Change-Id: Ie013c8bb5aab0f3b0d3783e4e6b99759d752351b --- spec/classes/cinder_policy_spec.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/spec/classes/cinder_policy_spec.rb b/spec/classes/cinder_policy_spec.rb index 73b90407..8b3a083d 100644 --- a/spec/classes/cinder_policy_spec.rb +++ b/spec/classes/cinder_policy_spec.rb @@ -20,7 +20,9 @@ describe 'cinder::policy' do :key => 'context_is_admin', :value => 'foo:bar' }) - is_expected.to contain_cinder_config('oslo_policy/policy_file').with_value('/etc/cinder/policy.json') + is_expected.to contain_oslo__policy('cinder_config').with( + :policy_file => '/etc/cinder/policy.json', + ) end end