Fix rendering of nested hash inside array #67
Annotations
6 errors and 4 warnings
Puppet 7 (Ruby 2.7):
spec/defines/virtualhost_spec.rb#L115
prosody::virtualhost on os ubuntu-16.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 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-10-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):
spec/defines/virtualhost_spec.rb#L115
prosody::virtualhost on os ubuntu-18.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)
Process completed with exit code 1.
|
Setup Test Matrix
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v2. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
Setup Test Matrix
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|
Puppet 7 (Ruby 2.7)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v2. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
Puppet 7 (Ruby 2.7)
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|