From 70d6c6909c2d41f700384e8a85697ea0c507fed6 Mon Sep 17 00:00:00 2001 From: Nathan Ward <nward@searchlight.nz> Date: Mon, 8 Feb 2021 16:01:18 +1300 Subject: [PATCH] Add commented out warning thing --- spec/spec_helper_local.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/spec/spec_helper_local.rb b/spec/spec_helper_local.rb index d4b462b..bac495b 100644 --- a/spec/spec_helper_local.rb +++ b/spec/spec_helper_local.rb @@ -40,11 +40,15 @@ end # Set up a default freeradius instance, so we can test other classes which # require freeradius to exist first +# +# function warning() allows us to test for warnings being raised, by +# translating it to a notify - though this is not yet working shared_context 'freeradius_default' do let(:pre_condition) do [ redhat_params_class, 'class { freeradius: }', + # 'function warning($message) { notify { "warning_test: ${message}": } }' ] end end -- GitLab