aboutsummaryrefslogtreecommitdiff
path: root/spec/spec_helper.rb
diff options
context:
space:
mode:
authorAria Li (she/her) <53382941+AriaXLi@users.noreply.github.com>2024-03-20 14:43:48 -0700
committerGitHub <noreply@github.com>2024-03-20 14:43:48 -0700
commite688be6e169ba1502ef6b5261f282077e323c89f (patch)
tree10553d67f5f1c3c2effaa7a85a055417cc3f2663 /spec/spec_helper.rb
parent9bcd52e7fc563b78702f18c417d9ca75d251a62e (diff)
parent66afdf7731119353e0a08bff81aeb1b8bbf0475a (diff)
downloadpuppet-mailalias_core-e688be6e169ba1502ef6b5261f282077e323c89f.tar.gz
puppet-mailalias_core-e688be6e169ba1502ef6b5261f282077e323c89f.tar.bz2
Merge pull request #50 from AriaXLi/PA-6178/update_and_release_mailalias
(PA-6178) Use PDK template 3.0.1, Beaker 5, and newer module release workflow
Diffstat (limited to 'spec/spec_helper.rb')
-rw-r--r--spec/spec_helper.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb
index 9b1fa6f..6820ceb 100644
--- a/spec/spec_helper.rb
+++ b/spec/spec_helper.rb
@@ -25,8 +25,8 @@ default_fact_files.each do |f|
next unless File.exist?(f) && File.readable?(f) && File.size?(f)
begin
- default_facts.merge!(YAML.safe_load(File.read(f), [], [], true))
- rescue => e
+ default_facts.merge!(YAML.safe_load(File.read(f), permitted_classes: [], permitted_symbols: [], aliases: true))
+ rescue StandardError => e
RSpec.configuration.reporter.message "WARNING: Unable to load #{f}: #{e}"
end
end
@@ -46,6 +46,7 @@ RSpec.configure do |c|
end
c.filter_run_excluding(bolt: true) unless ENV['GEM_BOLT']
c.after(:suite) do
+ RSpec::Puppet::Coverage.report!(0)
end
# Filter backtrace noise