Skip to content

Commit fae6549

Browse files
authored
Merge pull request #1587 from puppetlabs/pdksync_(maint)-Replace_legacy_facts_in_spec/default_facts.yml
pdksync - (maint) - Replace legacy facts in spec/default_facts.yml
2 parents 19dc488 + 33f9086 commit fae6549

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

spec/default_facts.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
#
33
# Facts specified here will override the values provided by rspec-puppet-facts.
44
---
5-
ipaddress: "172.16.254.254"
6-
ipaddress6: "FE80:0000:0000:0000:AAAA:AAAA:AAAA"
5+
networking:
6+
ip: "172.16.254.254"
7+
ip6: "FE80:0000:0000:0000:AAAA:AAAA:AAAA"
8+
mac: "AA:AA:AA:AA:AA:AA"
79
is_pe: false
8-
macaddress: "AA:AA:AA:AA:AA:AA"

spec/spec_helper.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
next unless File.exist?(f) && File.readable?(f) && File.size?(f)
2626

2727
begin
28-
default_facts.merge!(YAML.safe_load(File.read(f), [], [], true))
28+
default_facts.deep_merge!(YAML.safe_load(File.read(f), [], [], true))
2929
rescue StandardError => e
3030
RSpec.configuration.reporter.message "WARNING: Unable to load #{f}: #{e}"
3131
end

0 commit comments

Comments
 (0)