Skip to content

Fix rendering of nested hash inside array #83

Fix rendering of nested hash inside array

Fix rendering of nested hash inside array #83

Triggered via pull request April 17, 2024 15:41
Status Failure
Total duration 1m 34s
Artifacts

ci.yml

on: pull_request
Puppet  /  Static validations
33s
Puppet / Static validations
Matrix: Puppet / unit
Puppet  /  Test suite
0s
Puppet / Test suite
Fit to window
Zoom out
Zoom in

Annotations

6 errors
Puppet / 8 (Ruby 3.2): spec/defines/virtualhost_spec.rb#L115
prosody::virtualhost on os debian-11-x86_64 with deeply nested component options is expected to contain File[/etc/prosody/conf.avail/mockvirtualhost.cfg.lua] with content =~ /^Component "comp1" "muc"$/, content =~ /^ bo = true;$/, content =~ /^ arr = { "one"; "two" };$/ and content =~ /^ str = "string";$/ Failure/Error: is_expected.to contain_file(path_avail). \ with_content(%r{^Component "comp1" "muc"$}). \ with_content(%r{^ bo = true;$}). \ with_content(%r{^ arr = { "one"; "two" };$}). \ with_content(%r{^ str = "string";$}) expected that the catalogue would contain File[/etc/prosody/conf.avail/mockvirtualhost.cfg.lua] with content set to /^ arr = { "one"; "two" };$/ but it is set to "VirtualHost \"mockvirtualhost\"\n enabled = true\n\n\n\n------ Components ------\n-- You can specify components to add hosts that provide special services,\n-- like multi-user conferences, and transports.\n-- For more information on components, see http://prosody.im/doc/components\n\n\nComponent \"comp1\" \"muc\"\n arr = {\n \"one\"; \"two\"\n};\n bo = true;\n str = \"string\";\n" Diff: @@ -1,17 +1,33 @@ -(?-mix:^ arr = { "one"; "two" };$) +VirtualHost "mockvirtualhost" + enabled = true + + + +------ Components ------ +-- You can specify components to add hosts that provide special services, +-- like multi-user conferences, and transports. +-- For more information on components, see http://prosody.im/doc/components + + +Component "comp1" "muc" + arr = { + "one"; "two" +}; + bo = true; + str = "string";
Puppet / 8 (Ruby 3.2): spec/defines/virtualhost_spec.rb#L115
prosody::virtualhost on os ubuntu-20.04-x86_64 with deeply nested component options is expected to contain File[/etc/prosody/conf.avail/mockvirtualhost.cfg.lua] with content =~ /^Component "comp1" "muc"$/, content =~ /^ bo = true;$/, content =~ /^ arr = { "one"; "two" };$/ and content =~ /^ str = "string";$/ Failure/Error: is_expected.to contain_file(path_avail). \ with_content(%r{^Component "comp1" "muc"$}). \ with_content(%r{^ bo = true;$}). \ with_content(%r{^ arr = { "one"; "two" };$}). \ with_content(%r{^ str = "string";$}) expected that the catalogue would contain File[/etc/prosody/conf.avail/mockvirtualhost.cfg.lua] with content set to /^ arr = { "one"; "two" };$/ but it is set to "VirtualHost \"mockvirtualhost\"\n enabled = true\n\n\n\n------ Components ------\n-- You can specify components to add hosts that provide special services,\n-- like multi-user conferences, and transports.\n-- For more information on components, see http://prosody.im/doc/components\n\n\nComponent \"comp1\" \"muc\"\n arr = {\n \"one\"; \"two\"\n};\n bo = true;\n str = \"string\";\n" Diff: @@ -1,17 +1,33 @@ -(?-mix:^ arr = { "one"; "two" };$) +VirtualHost "mockvirtualhost" + enabled = true + + + +------ Components ------ +-- You can specify components to add hosts that provide special services, +-- like multi-user conferences, and transports. +-- For more information on components, see http://prosody.im/doc/components + + +Component "comp1" "muc" + arr = { + "one"; "two" +}; + bo = true; + str = "string";
Puppet / 8 (Ruby 3.2)
Process completed with exit code 1.
Puppet / 7 (Ruby 2.7): spec/defines/virtualhost_spec.rb#L115
prosody::virtualhost on os ubuntu-20.04-x86_64 with deeply nested component options is expected to contain File[/etc/prosody/conf.avail/mockvirtualhost.cfg.lua] with content =~ /^Component "comp1" "muc"$/, content =~ /^ bo = true;$/, content =~ /^ arr = { "one"; "two" };$/ and content =~ /^ str = "string";$/ Failure/Error: is_expected.to contain_file(path_avail). \ with_content(%r{^Component "comp1" "muc"$}). \ with_content(%r{^ bo = true;$}). \ with_content(%r{^ arr = { "one"; "two" };$}). \ with_content(%r{^ str = "string";$}) expected that the catalogue would contain File[/etc/prosody/conf.avail/mockvirtualhost.cfg.lua] with content set to /^ arr = { "one"; "two" };$/ but it is set to "VirtualHost \"mockvirtualhost\"\n enabled = true\n\n\n\n------ Components ------\n-- You can specify components to add hosts that provide special services,\n-- like multi-user conferences, and transports.\n-- For more information on components, see http://prosody.im/doc/components\n\n\nComponent \"comp1\" \"muc\"\n arr = {\n \"one\"; \"two\"\n};\n bo = true;\n str = \"string\";\n" Diff: @@ -1,17 +1,33 @@ -(?-mix:^ arr = { "one"; "two" };$) +VirtualHost "mockvirtualhost" + enabled = true + + + +------ Components ------ +-- You can specify components to add hosts that provide special services, +-- like multi-user conferences, and transports. +-- For more information on components, see http://prosody.im/doc/components + + +Component "comp1" "muc" + arr = { + "one"; "two" +}; + bo = true; + str = "string";
Puppet / 7 (Ruby 2.7): spec/defines/virtualhost_spec.rb#L115
prosody::virtualhost on os debian-11-x86_64 with deeply nested component options is expected to contain File[/etc/prosody/conf.avail/mockvirtualhost.cfg.lua] with content =~ /^Component "comp1" "muc"$/, content =~ /^ bo = true;$/, content =~ /^ arr = { "one"; "two" };$/ and content =~ /^ str = "string";$/ Failure/Error: is_expected.to contain_file(path_avail). \ with_content(%r{^Component "comp1" "muc"$}). \ with_content(%r{^ bo = true;$}). \ with_content(%r{^ arr = { "one"; "two" };$}). \ with_content(%r{^ str = "string";$}) expected that the catalogue would contain File[/etc/prosody/conf.avail/mockvirtualhost.cfg.lua] with content set to /^ arr = { "one"; "two" };$/ but it is set to "VirtualHost \"mockvirtualhost\"\n enabled = true\n\n\n\n------ Components ------\n-- You can specify components to add hosts that provide special services,\n-- like multi-user conferences, and transports.\n-- For more information on components, see http://prosody.im/doc/components\n\n\nComponent \"comp1\" \"muc\"\n arr = {\n \"one\"; \"two\"\n};\n bo = true;\n str = \"string\";\n" Diff: @@ -1,17 +1,33 @@ -(?-mix:^ arr = { "one"; "two" };$) +VirtualHost "mockvirtualhost" + enabled = true + + + +------ Components ------ +-- You can specify components to add hosts that provide special services, +-- like multi-user conferences, and transports. +-- For more information on components, see http://prosody.im/doc/components + + +Component "comp1" "muc" + arr = { + "one"; "two" +}; + bo = true; + str = "string";
Puppet / 7 (Ruby 2.7)
Process completed with exit code 1.