From c7aea35e4172fb9647c18fe7dc248bb7627d55b5 Mon Sep 17 00:00:00 2001 From: Charlie Sharpsteen Date: Tue, 14 Jul 2026 11:11:57 -0500 Subject: [PATCH] Update integration tests to expect Ruby 3.4 output JRuby 10 has landed over in OpenVox Server, which means Ruby language behavior has moved from Ruby 3.1 to Ruby 3.4. This brought in a 3.4 change to how `Hash#inspect` stringifies data: https://bugs.ruby-lang.org/issues/20433 This commit updates the OpenVoxDB integration tests to expect the new `{a => b}` output instead of the older, compact, `{a=>b}` output. Signed-off-by: Charlie Sharpsteen --- test/puppetlabs/puppetdb/integration/reports.clj | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/test/puppetlabs/puppetdb/integration/reports.clj b/test/puppetlabs/puppetdb/integration/reports.clj index 1d97e9ef4..5bff10b6b 100644 --- a/test/puppetlabs/puppetdb/integration/reports.clj +++ b/test/puppetlabs/puppetdb/integration/reports.clj @@ -105,9 +105,9 @@ [ ; for undef and false a wrapper is required or message is interpreted as 'absent' and no change occurs {:name "literal_undef" :code "{ 'wrapper' => [undef] }" - :expected "{\"wrapper\"=>[nil]}"} + :expected "{\"wrapper\" => [nil]}"} {:name "literal_false" :code "{ 'wrapper' => false }" - :expected "{\"wrapper\"=>false}"} + :expected "{\"wrapper\" => false}"} {:name "literal_default" :code "default" :expected "default"} {:name "literal_integer" :code "47" :expected "47"} @@ -126,15 +126,15 @@ {:name "timestamp" :code "Timestamp('2012-10-10')" :expected "2012-10-10T00:00:00.000000000 UTC"} {:name "hash_and_array" :code "{'a' => [1, 2, 3], 'b' => 'hello'}" - :expected "{\"a\"=>[1, 2, 3], \"b\"=>\"hello\"}"} + :expected "{\"a\" => [1, 2, 3], \"b\" => \"hello\"}"} {:name "special_key" :code "{ ['special', 'key'] => 10 }" - :expected "{\"[\\\"special\\\", \\\"key\\\"]\"=>10}"} + :expected "{\"[\\\"special\\\", \\\"key\\\"]\" => 10}"} {:name "hash_with_sensitive_val" :code "{ x => Sensitive(hush) }" - :expected #"\{\"x\"=>\"#\"}"} + :expected #"\{\"x\" => \"#\"}"} {:name "hash_with_sensitive_key" :code "{Sensitive(hush) => 42 }" - :expected #"\{\"#\"=>42\}"} + :expected #"\{\"#\" => 42\}"} {:name "hash_ptype_key" :code "{'__ptype' => 10}" - :expected "{\"reserved key: __ptype\"=>10}"} + :expected "{\"reserved key: __ptype\" => 10}"} {:name "binary_value" :code "Binary(\"hello\", \"%s\")" :expected "aGVsbG8="} {:name "a_type" :code "Integer[0,100]" :expected "Integer[0, 100]"}