Failures: |
|
1) LegacyFacter::Util::DirectoryLoader does nothing bad when dir doesn't exist |
Failure/Error: allow(FileTest).to receive(:exists?).with(my_loader.directories[0]).and_return(false) |
FileTest does not implement: exists? |
# ./spec/custom_facts/util/directory_loader_spec.rb:19:in `block (2 levels) in <top (required)>' |
|
2) LegacyFacter::Util::Parser LegacyFacter::Util::Parser::YamlParser#parse_results when yaml contains Date formatted fields loads date |
Failure/Error: expect(yaml_parser.parse_results).to eq(expected_result) |
|
expected: {"testsfact"=>{"date"=>#<Date: 2020-04-28 ((2458968j,0s,0n),+0s,2299161j)>}} |
got: {"testsfact"=>{"date"=>"2020-04-28"}} |
|
(compared using ==) |
|
Diff: |
@@ -1 +1 @@ |
-"testsfact" => {"date"=>#<Date: 2020-04-28 ((2458968j,0s,0n),+0s,2299161j)>}, |
+"testsfact" => {"date"=>"2020-04-28"}, |
|
# ./spec/custom_facts/util/parser_spec.rb:359:in `block (5 levels) in <top (required)>' |
|
3) Facter::Util::Linux::SocketParser#retrieve_interfaces when Ifaddr.addr.getnameinfo throws SocketError does not retrieve mac for ens160 |
Failure/Error: mac if !mac.nil? && mac != '00:00:00:00:00:00' && mac =~ /^([0-9A-Fa-f]{2}[:-]){5,19}([0-9A-Fa-f]{2})$/ |
the Facter::Log class does not implement the instance method: =~ |
# ./lib/facter/util/linux/socket_parser.rb:39:in `search_for_mac' |
# ./lib/facter/util/linux/socket_parser.rb:32:in `mac' |
# ./lib/facter/util/linux/socket_parser.rb:25:in `populate_interface_info' |
# ./lib/facter/util/linux/socket_parser.rb:13:in `block in retrieve_interfaces' |
# ./lib/facter/util/linux/socket_parser.rb:12:in `each' |
# ./lib/facter/util/linux/socket_parser.rb:12:in `retrieve_interfaces' |
# ./spec/facter/util/linux/socket_parser_spec.rb:210:in `block (4 levels) in <top (required)>' |
|
4) Facter::Util::Linux::SocketParser#retrieve_interfaces when Ifaddr.addr.inspect_sockaddr throws SocketError does not retrieve mac for ens160 |
Failure/Error: mac if !mac.nil? && mac != '00:00:00:00:00:00' && mac =~ /^([0-9A-Fa-f]{2}[:-]){5,19}([0-9A-Fa-f]{2})$/ |
the Facter::Log class does not implement the instance method: =~ |
# ./lib/facter/util/linux/socket_parser.rb:39:in `search_for_mac' |
# ./lib/facter/util/linux/socket_parser.rb:32:in `mac' |
# ./lib/facter/util/linux/socket_parser.rb:25:in `populate_interface_info' |
# ./lib/facter/util/linux/socket_parser.rb:13:in `block in retrieve_interfaces' |
# ./lib/facter/util/linux/socket_parser.rb:12:in `each' |
# ./lib/facter/util/linux/socket_parser.rb:12:in `retrieve_interfaces' |
# ./spec/facter/util/linux/socket_parser_spec.rb:248:in `block (4 levels) in <top (required)>' |
|
Finished in 3.35 seconds (files took 1.43 seconds to load) |
3596 examples, 4 failures |
|
Failed examples: |
|
rspec ./spec/custom_facts/util/directory_loader_spec.rb:16 # LegacyFacter::Util::DirectoryLoader does nothing bad when dir doesn't exist |
rspec ./spec/custom_facts/util/parser_spec.rb:356 # LegacyFacter::Util::Parser LegacyFacter::Util::Parser::YamlParser#parse_results when yaml contains Date formatted fields loads date |
rspec ./spec/facter/util/linux/socket_parser_spec.rb:201 # Facter::Util::Linux::SocketParser#retrieve_interfaces when Ifaddr.addr.getnameinfo throws SocketError does not retrieve mac for ens160 |
rspec ./spec/facter/util/linux/socket_parser_spec.rb:239 # Facter::Util::Linux::SocketParser#retrieve_interfaces when Ifaddr.addr.inspect_sockaddr throws SocketError does not retrieve mac for ens160
|