Actions
Bug #37613
closedReport renderer tests fail depending on the libyaml version
Difficulty:
Triaged:
Yes
Description
different libyaml versions encode nil
slightly differently:
libyaml-0.1.7 (EL8):
irb(main):001:0> require 'yaml' => true irb(main):002:0> {"lol":nil}.to_yaml => "---\n:lol: \n"
libyaml-0.2.5 (EL9):
irb(main):001:0> require 'yaml' => true irb(main):002:0> {"lol":nil}.to_yaml => "---\n:lol:\n"
Both are valid documents and both are parsed fine back with both libyaml versions.
However, this breaks our tests:
Failure: ReportScopeTest::#report_render#test_0005_render types [test/unit/foreman/renderer/scope/report_test.rb:107] Minitest::Assertion: --- expected +++ actual @@ -7,5 +7,5 @@ Number: 1 Bool: false Empty: '' - Nil: + Nil: "
(if you look closely, the one line is "Nil: " and the other "Nil:")
Actions