templates/template.epp:correct formating #218
Annotations
19 errors and 6 warnings
Puppet / 8 (Ruby 3.2):
spec/defines/component/template_spec.rb#L113
rsyslog::component::template on redhat-8-x86_64 list template is expected to contain Concat::Fragment[rsyslog::component::template::mytpl] with content =~ /(?x)\s*template\s+\(name="mytpl"\s+type="list"\s*\)
\s*\{
\s*constant\(\s*value="\{"\s*\)\s*\n
\s*constant\(\s*value="\\"@timestamp\\":\\""\s*\)\s*\n
\s*property\(\s*name="timereported"\s+dateformat="rfc3339"\s*\)\s*\n
\s*constant\(\s*value="\\"\}"\s*\)\s*$
/
Failure/Error:
is_expected.to contain_concat__fragment('rsyslog::component::template::mytpl').with_content(
%r{(?x)\s*template\s+\(name="mytpl"\s+type="list"\s*\)
\s*\{
\s*constant\(\s*value="\{"\s*\)\s*\n
\s*constant\(\s*value="\\"@timestamp\\":\\""\s*\)\s*\n
\s*property\(\s*name="timereported"\s+dateformat="rfc3339"\s*\)\s*\n
\s*constant\(\s*value="\\"\}"\s*\)\s*$
}
)
expected that the catalogue would contain Concat::Fragment[rsyslog::component::template::mytpl] with content set to /(?x)\s*template\s+\(name="mytpl"\s+type="list"\s*\)
\s*\{
\s*constant\(\s*value="\{"\s*\)\s*\n
\s*constant\(\s*value="\\"@timestamp\\":\\""\s*\)\s*\n
\s*property\(\s*name="timereported"\s+dateformat="rfc3339"\s*\)\s*\n
\s*constant\(\s*value="\\"\}"\s*\)\s*$
/ but it is set to "\ntemplate (name=\"mytpl\" type=\"list\"\n)\n{\n constant(value=\"{\")\n constant(value=\"\\\"@timestamp\\\":\\\"\")\n property(name=\"timereported\"dateformat=\"rfc3339\")\n constant(value=\"\\\"}\")\n}\n"
Diff:
@@ -1,8 +1,10 @@
-(?x-mi:\s*template\s+\(name="mytpl"\s+type="list"\s*\)
- \s*\{
- \s*constant\(\s*value="\{"\s*\)\s*\n
- \s*constant\(\s*value="\\"@timestamp\\":\\""\s*\)\s*\n
- \s*property\(\s*name="timereported"\s+dateformat="rfc3339"\s*\)\s*\n
- \s*constant\(\s*value="\\"\}"\s*\)\s*$
- )
+
+template (name="mytpl" type="list"
+)
+{
+ constant(value="{")
+ constant(value="\"@timestamp\":\"")
+ property(name="timereported"dateformat="rfc3339")
+ constant(value="\"}")
+}
|
Puppet / 8 (Ruby 3.2):
spec/defines/component/template_spec.rb#L113
rsyslog::component::template on redhat-9-x86_64 list template is expected to contain Concat::Fragment[rsyslog::component::template::mytpl] with content =~ /(?x)\s*template\s+\(name="mytpl"\s+type="list"\s*\)
\s*\{
\s*constant\(\s*value="\{"\s*\)\s*\n
\s*constant\(\s*value="\\"@timestamp\\":\\""\s*\)\s*\n
\s*property\(\s*name="timereported"\s+dateformat="rfc3339"\s*\)\s*\n
\s*constant\(\s*value="\\"\}"\s*\)\s*$
/
Failure/Error:
is_expected.to contain_concat__fragment('rsyslog::component::template::mytpl').with_content(
%r{(?x)\s*template\s+\(name="mytpl"\s+type="list"\s*\)
\s*\{
\s*constant\(\s*value="\{"\s*\)\s*\n
\s*constant\(\s*value="\\"@timestamp\\":\\""\s*\)\s*\n
\s*property\(\s*name="timereported"\s+dateformat="rfc3339"\s*\)\s*\n
\s*constant\(\s*value="\\"\}"\s*\)\s*$
}
)
expected that the catalogue would contain Concat::Fragment[rsyslog::component::template::mytpl] with content set to /(?x)\s*template\s+\(name="mytpl"\s+type="list"\s*\)
\s*\{
\s*constant\(\s*value="\{"\s*\)\s*\n
\s*constant\(\s*value="\\"@timestamp\\":\\""\s*\)\s*\n
\s*property\(\s*name="timereported"\s+dateformat="rfc3339"\s*\)\s*\n
\s*constant\(\s*value="\\"\}"\s*\)\s*$
/ but it is set to "\ntemplate (name=\"mytpl\" type=\"list\"\n)\n{\n constant(value=\"{\")\n constant(value=\"\\\"@timestamp\\\":\\\"\")\n property(name=\"timereported\"dateformat=\"rfc3339\")\n constant(value=\"\\\"}\")\n}\n"
Diff:
@@ -1,8 +1,10 @@
-(?x-mi:\s*template\s+\(name="mytpl"\s+type="list"\s*\)
- \s*\{
- \s*constant\(\s*value="\{"\s*\)\s*\n
- \s*constant\(\s*value="\\"@timestamp\\":\\""\s*\)\s*\n
- \s*property\(\s*name="timereported"\s+dateformat="rfc3339"\s*\)\s*\n
- \s*constant\(\s*value="\\"\}"\s*\)\s*$
- )
+
+template (name="mytpl" type="list"
+)
+{
+ constant(value="{")
+ constant(value="\"@timestamp\":\"")
+ property(name="timereported"dateformat="rfc3339")
+ constant(value="\"}")
+}
|
Puppet / 8 (Ruby 3.2):
spec/defines/component/template_spec.rb#L113
rsyslog::component::template on centos-9-x86_64 list template is expected to contain Concat::Fragment[rsyslog::component::template::mytpl] with content =~ /(?x)\s*template\s+\(name="mytpl"\s+type="list"\s*\)
\s*\{
\s*constant\(\s*value="\{"\s*\)\s*\n
\s*constant\(\s*value="\\"@timestamp\\":\\""\s*\)\s*\n
\s*property\(\s*name="timereported"\s+dateformat="rfc3339"\s*\)\s*\n
\s*constant\(\s*value="\\"\}"\s*\)\s*$
/
Failure/Error:
is_expected.to contain_concat__fragment('rsyslog::component::template::mytpl').with_content(
%r{(?x)\s*template\s+\(name="mytpl"\s+type="list"\s*\)
\s*\{
\s*constant\(\s*value="\{"\s*\)\s*\n
\s*constant\(\s*value="\\"@timestamp\\":\\""\s*\)\s*\n
\s*property\(\s*name="timereported"\s+dateformat="rfc3339"\s*\)\s*\n
\s*constant\(\s*value="\\"\}"\s*\)\s*$
}
)
expected that the catalogue would contain Concat::Fragment[rsyslog::component::template::mytpl] with content set to /(?x)\s*template\s+\(name="mytpl"\s+type="list"\s*\)
\s*\{
\s*constant\(\s*value="\{"\s*\)\s*\n
\s*constant\(\s*value="\\"@timestamp\\":\\""\s*\)\s*\n
\s*property\(\s*name="timereported"\s+dateformat="rfc3339"\s*\)\s*\n
\s*constant\(\s*value="\\"\}"\s*\)\s*$
/ but it is set to "\ntemplate (name=\"mytpl\" type=\"list\"\n)\n{\n constant(value=\"{\")\n constant(value=\"\\\"@timestamp\\\":\\\"\")\n property(name=\"timereported\"dateformat=\"rfc3339\")\n constant(value=\"\\\"}\")\n}\n"
Diff:
@@ -1,8 +1,10 @@
-(?x-mi:\s*template\s+\(name="mytpl"\s+type="list"\s*\)
- \s*\{
- \s*constant\(\s*value="\{"\s*\)\s*\n
- \s*constant\(\s*value="\\"@timestamp\\":\\""\s*\)\s*\n
- \s*property\(\s*name="timereported"\s+dateformat="rfc3339"\s*\)\s*\n
- \s*constant\(\s*value="\\"\}"\s*\)\s*$
- )
+
+template (name="mytpl" type="list"
+)
+{
+ constant(value="{")
+ constant(value="\"@timestamp\":\"")
+ property(name="timereported"dateformat="rfc3339")
+ constant(value="\"}")
+}
|
Puppet / 8 (Ruby 3.2):
spec/defines/component/template_spec.rb#L113
rsyslog::component::template on oraclelinux-7-x86_64 list template is expected to contain Concat::Fragment[rsyslog::component::template::mytpl] with content =~ /(?x)\s*template\s+\(name="mytpl"\s+type="list"\s*\)
\s*\{
\s*constant\(\s*value="\{"\s*\)\s*\n
\s*constant\(\s*value="\\"@timestamp\\":\\""\s*\)\s*\n
\s*property\(\s*name="timereported"\s+dateformat="rfc3339"\s*\)\s*\n
\s*constant\(\s*value="\\"\}"\s*\)\s*$
/
Failure/Error:
is_expected.to contain_concat__fragment('rsyslog::component::template::mytpl').with_content(
%r{(?x)\s*template\s+\(name="mytpl"\s+type="list"\s*\)
\s*\{
\s*constant\(\s*value="\{"\s*\)\s*\n
\s*constant\(\s*value="\\"@timestamp\\":\\""\s*\)\s*\n
\s*property\(\s*name="timereported"\s+dateformat="rfc3339"\s*\)\s*\n
\s*constant\(\s*value="\\"\}"\s*\)\s*$
}
)
expected that the catalogue would contain Concat::Fragment[rsyslog::component::template::mytpl] with content set to /(?x)\s*template\s+\(name="mytpl"\s+type="list"\s*\)
\s*\{
\s*constant\(\s*value="\{"\s*\)\s*\n
\s*constant\(\s*value="\\"@timestamp\\":\\""\s*\)\s*\n
\s*property\(\s*name="timereported"\s+dateformat="rfc3339"\s*\)\s*\n
\s*constant\(\s*value="\\"\}"\s*\)\s*$
/ but it is set to "\ntemplate (name=\"mytpl\" type=\"list\"\n)\n{\n constant(value=\"{\")\n constant(value=\"\\\"@timestamp\\\":\\\"\")\n property(name=\"timereported\"dateformat=\"rfc3339\")\n constant(value=\"\\\"}\")\n}\n"
Diff:
@@ -1,8 +1,10 @@
-(?x-mi:\s*template\s+\(name="mytpl"\s+type="list"\s*\)
- \s*\{
- \s*constant\(\s*value="\{"\s*\)\s*\n
- \s*constant\(\s*value="\\"@timestamp\\":\\""\s*\)\s*\n
- \s*property\(\s*name="timereported"\s+dateformat="rfc3339"\s*\)\s*\n
- \s*constant\(\s*value="\\"\}"\s*\)\s*$
- )
+
+template (name="mytpl" type="list"
+)
+{
+ constant(value="{")
+ constant(value="\"@timestamp\":\"")
+ property(name="timereported"dateformat="rfc3339")
+ constant(value="\"}")
+}
|
Puppet / 8 (Ruby 3.2):
spec/defines/component/template_spec.rb#L113
rsyslog::component::template on oraclelinux-8-x86_64 list template is expected to contain Concat::Fragment[rsyslog::component::template::mytpl] with content =~ /(?x)\s*template\s+\(name="mytpl"\s+type="list"\s*\)
\s*\{
\s*constant\(\s*value="\{"\s*\)\s*\n
\s*constant\(\s*value="\\"@timestamp\\":\\""\s*\)\s*\n
\s*property\(\s*name="timereported"\s+dateformat="rfc3339"\s*\)\s*\n
\s*constant\(\s*value="\\"\}"\s*\)\s*$
/
Failure/Error:
is_expected.to contain_concat__fragment('rsyslog::component::template::mytpl').with_content(
%r{(?x)\s*template\s+\(name="mytpl"\s+type="list"\s*\)
\s*\{
\s*constant\(\s*value="\{"\s*\)\s*\n
\s*constant\(\s*value="\\"@timestamp\\":\\""\s*\)\s*\n
\s*property\(\s*name="timereported"\s+dateformat="rfc3339"\s*\)\s*\n
\s*constant\(\s*value="\\"\}"\s*\)\s*$
}
)
expected that the catalogue would contain Concat::Fragment[rsyslog::component::template::mytpl] with content set to /(?x)\s*template\s+\(name="mytpl"\s+type="list"\s*\)
\s*\{
\s*constant\(\s*value="\{"\s*\)\s*\n
\s*constant\(\s*value="\\"@timestamp\\":\\""\s*\)\s*\n
\s*property\(\s*name="timereported"\s+dateformat="rfc3339"\s*\)\s*\n
\s*constant\(\s*value="\\"\}"\s*\)\s*$
/ but it is set to "\ntemplate (name=\"mytpl\" type=\"list\"\n)\n{\n constant(value=\"{\")\n constant(value=\"\\\"@timestamp\\\":\\\"\")\n property(name=\"timereported\"dateformat=\"rfc3339\")\n constant(value=\"\\\"}\")\n}\n"
Diff:
@@ -1,8 +1,10 @@
-(?x-mi:\s*template\s+\(name="mytpl"\s+type="list"\s*\)
- \s*\{
- \s*constant\(\s*value="\{"\s*\)\s*\n
- \s*constant\(\s*value="\\"@timestamp\\":\\""\s*\)\s*\n
- \s*property\(\s*name="timereported"\s+dateformat="rfc3339"\s*\)\s*\n
- \s*constant\(\s*value="\\"\}"\s*\)\s*$
- )
+
+template (name="mytpl" type="list"
+)
+{
+ constant(value="{")
+ constant(value="\"@timestamp\":\"")
+ property(name="timereported"dateformat="rfc3339")
+ constant(value="\"}")
+}
|
Puppet / 8 (Ruby 3.2):
spec/defines/component/template_spec.rb#L113
rsyslog::component::template on scientific-7-x86_64 list template is expected to contain Concat::Fragment[rsyslog::component::template::mytpl] with content =~ /(?x)\s*template\s+\(name="mytpl"\s+type="list"\s*\)
\s*\{
\s*constant\(\s*value="\{"\s*\)\s*\n
\s*constant\(\s*value="\\"@timestamp\\":\\""\s*\)\s*\n
\s*property\(\s*name="timereported"\s+dateformat="rfc3339"\s*\)\s*\n
\s*constant\(\s*value="\\"\}"\s*\)\s*$
/
Failure/Error:
is_expected.to contain_concat__fragment('rsyslog::component::template::mytpl').with_content(
%r{(?x)\s*template\s+\(name="mytpl"\s+type="list"\s*\)
\s*\{
\s*constant\(\s*value="\{"\s*\)\s*\n
\s*constant\(\s*value="\\"@timestamp\\":\\""\s*\)\s*\n
\s*property\(\s*name="timereported"\s+dateformat="rfc3339"\s*\)\s*\n
\s*constant\(\s*value="\\"\}"\s*\)\s*$
}
)
expected that the catalogue would contain Concat::Fragment[rsyslog::component::template::mytpl] with content set to /(?x)\s*template\s+\(name="mytpl"\s+type="list"\s*\)
\s*\{
\s*constant\(\s*value="\{"\s*\)\s*\n
\s*constant\(\s*value="\\"@timestamp\\":\\""\s*\)\s*\n
\s*property\(\s*name="timereported"\s+dateformat="rfc3339"\s*\)\s*\n
\s*constant\(\s*value="\\"\}"\s*\)\s*$
/ but it is set to "\ntemplate (name=\"mytpl\" type=\"list\"\n)\n{\n constant(value=\"{\")\n constant(value=\"\\\"@timestamp\\\":\\\"\")\n property(name=\"timereported\"dateformat=\"rfc3339\")\n constant(value=\"\\\"}\")\n}\n"
Diff:
@@ -1,8 +1,10 @@
-(?x-mi:\s*template\s+\(name="mytpl"\s+type="list"\s*\)
- \s*\{
- \s*constant\(\s*value="\{"\s*\)\s*\n
- \s*constant\(\s*value="\\"@timestamp\\":\\""\s*\)\s*\n
- \s*property\(\s*name="timereported"\s+dateformat="rfc3339"\s*\)\s*\n
- \s*constant\(\s*value="\\"\}"\s*\)\s*$
- )
+
+template (name="mytpl" type="list"
+)
+{
+ constant(value="{")
+ constant(value="\"@timestamp\":\"")
+ property(name="timereported"dateformat="rfc3339")
+ constant(value="\"}")
+}
|
Puppet / 8 (Ruby 3.2):
spec/defines/component/template_spec.rb#L113
rsyslog::component::template on ubuntu-18.04-x86_64 list template is expected to contain Concat::Fragment[rsyslog::component::template::mytpl] with content =~ /(?x)\s*template\s+\(name="mytpl"\s+type="list"\s*\)
\s*\{
\s*constant\(\s*value="\{"\s*\)\s*\n
\s*constant\(\s*value="\\"@timestamp\\":\\""\s*\)\s*\n
\s*property\(\s*name="timereported"\s+dateformat="rfc3339"\s*\)\s*\n
\s*constant\(\s*value="\\"\}"\s*\)\s*$
/
Failure/Error:
is_expected.to contain_concat__fragment('rsyslog::component::template::mytpl').with_content(
%r{(?x)\s*template\s+\(name="mytpl"\s+type="list"\s*\)
\s*\{
\s*constant\(\s*value="\{"\s*\)\s*\n
\s*constant\(\s*value="\\"@timestamp\\":\\""\s*\)\s*\n
\s*property\(\s*name="timereported"\s+dateformat="rfc3339"\s*\)\s*\n
\s*constant\(\s*value="\\"\}"\s*\)\s*$
}
)
expected that the catalogue would contain Concat::Fragment[rsyslog::component::template::mytpl] with content set to /(?x)\s*template\s+\(name="mytpl"\s+type="list"\s*\)
\s*\{
\s*constant\(\s*value="\{"\s*\)\s*\n
\s*constant\(\s*value="\\"@timestamp\\":\\""\s*\)\s*\n
\s*property\(\s*name="timereported"\s+dateformat="rfc3339"\s*\)\s*\n
\s*constant\(\s*value="\\"\}"\s*\)\s*$
/ but it is set to "\ntemplate (name=\"mytpl\" type=\"list\"\n)\n{\n constant(value=\"{\")\n constant(value=\"\\\"@timestamp\\\":\\\"\")\n property(name=\"timereported\"dateformat=\"rfc3339\")\n constant(value=\"\\\"}\")\n}\n"
Diff:
@@ -1,8 +1,10 @@
-(?x-mi:\s*template\s+\(name="mytpl"\s+type="list"\s*\)
- \s*\{
- \s*constant\(\s*value="\{"\s*\)\s*\n
- \s*constant\(\s*value="\\"@timestamp\\":\\""\s*\)\s*\n
- \s*property\(\s*name="timereported"\s+dateformat="rfc3339"\s*\)\s*\n
- \s*constant\(\s*value="\\"\}"\s*\)\s*$
- )
+
+template (name="mytpl" type="list"
+)
+{
+ constant(value="{")
+ constant(value="\"@timestamp\":\"")
+ property(name="timereported"dateformat="rfc3339")
+ constant(value="\"}")
+}
|
Puppet / 8 (Ruby 3.2):
spec/defines/component/template_spec.rb#L113
rsyslog::component::template on fedora-38-x86_64 list template is expected to contain Concat::Fragment[rsyslog::component::template::mytpl] with content =~ /(?x)\s*template\s+\(name="mytpl"\s+type="list"\s*\)
\s*\{
\s*constant\(\s*value="\{"\s*\)\s*\n
\s*constant\(\s*value="\\"@timestamp\\":\\""\s*\)\s*\n
\s*property\(\s*name="timereported"\s+dateformat="rfc3339"\s*\)\s*\n
\s*constant\(\s*value="\\"\}"\s*\)\s*$
/
Failure/Error:
is_expected.to contain_concat__fragment('rsyslog::component::template::mytpl').with_content(
%r{(?x)\s*template\s+\(name="mytpl"\s+type="list"\s*\)
\s*\{
\s*constant\(\s*value="\{"\s*\)\s*\n
\s*constant\(\s*value="\\"@timestamp\\":\\""\s*\)\s*\n
\s*property\(\s*name="timereported"\s+dateformat="rfc3339"\s*\)\s*\n
\s*constant\(\s*value="\\"\}"\s*\)\s*$
}
)
expected that the catalogue would contain Concat::Fragment[rsyslog::component::template::mytpl] with content set to /(?x)\s*template\s+\(name="mytpl"\s+type="list"\s*\)
\s*\{
\s*constant\(\s*value="\{"\s*\)\s*\n
\s*constant\(\s*value="\\"@timestamp\\":\\""\s*\)\s*\n
\s*property\(\s*name="timereported"\s+dateformat="rfc3339"\s*\)\s*\n
\s*constant\(\s*value="\\"\}"\s*\)\s*$
/ but it is set to "\ntemplate (name=\"mytpl\" type=\"list\"\n)\n{\n constant(value=\"{\")\n constant(value=\"\\\"@timestamp\\\":\\\"\")\n property(name=\"timereported\"dateformat=\"rfc3339\")\n constant(value=\"\\\"}\")\n}\n"
Diff:
@@ -1,8 +1,10 @@
-(?x-mi:\s*template\s+\(name="mytpl"\s+type="list"\s*\)
- \s*\{
- \s*constant\(\s*value="\{"\s*\)\s*\n
- \s*constant\(\s*value="\\"@timestamp\\":\\""\s*\)\s*\n
- \s*property\(\s*name="timereported"\s+dateformat="rfc3339"\s*\)\s*\n
- \s*constant\(\s*value="\\"\}"\s*\)\s*$
- )
+
+template (name="mytpl" type="list"
+)
+{
+ constant(value="{")
+ constant(value="\"@timestamp\":\"")
+ property(name="timereported"dateformat="rfc3339")
+ constant(value="\"}")
+}
|
Puppet / 8 (Ruby 3.2)
Process completed with exit code 1.
|
Puppet / 7 (Ruby 2.7):
spec/defines/component/template_spec.rb#L113
rsyslog::component::template on redhat-8-x86_64 list template is expected to contain Concat::Fragment[rsyslog::component::template::mytpl] with content =~ /(?x)\s*template\s+\(name="mytpl"\s+type="list"\s*\)
\s*\{
\s*constant\(\s*value="\{"\s*\)\s*\n
\s*constant\(\s*value="\\"@timestamp\\":\\""\s*\)\s*\n
\s*property\(\s*name="timereported"\s+dateformat="rfc3339"\s*\)\s*\n
\s*constant\(\s*value="\\"\}"\s*\)\s*$
/
Failure/Error:
is_expected.to contain_concat__fragment('rsyslog::component::template::mytpl').with_content(
%r{(?x)\s*template\s+\(name="mytpl"\s+type="list"\s*\)
\s*\{
\s*constant\(\s*value="\{"\s*\)\s*\n
\s*constant\(\s*value="\\"@timestamp\\":\\""\s*\)\s*\n
\s*property\(\s*name="timereported"\s+dateformat="rfc3339"\s*\)\s*\n
\s*constant\(\s*value="\\"\}"\s*\)\s*$
}
)
expected that the catalogue would contain Concat::Fragment[rsyslog::component::template::mytpl] with content set to /(?x)\s*template\s+\(name="mytpl"\s+type="list"\s*\)
\s*\{
\s*constant\(\s*value="\{"\s*\)\s*\n
\s*constant\(\s*value="\\"@timestamp\\":\\""\s*\)\s*\n
\s*property\(\s*name="timereported"\s+dateformat="rfc3339"\s*\)\s*\n
\s*constant\(\s*value="\\"\}"\s*\)\s*$
/ but it is set to "\ntemplate (name=\"mytpl\" type=\"list\"\n)\n{\n constant(value=\"{\")\n constant(value=\"\\\"@timestamp\\\":\\\"\")\n property(name=\"timereported\"dateformat=\"rfc3339\")\n constant(value=\"\\\"}\")\n}\n"
Diff:
@@ -1,8 +1,10 @@
-(?x-mi:\s*template\s+\(name="mytpl"\s+type="list"\s*\)
- \s*\{
- \s*constant\(\s*value="\{"\s*\)\s*\n
- \s*constant\(\s*value="\\"@timestamp\\":\\""\s*\)\s*\n
- \s*property\(\s*name="timereported"\s+dateformat="rfc3339"\s*\)\s*\n
- \s*constant\(\s*value="\\"\}"\s*\)\s*$
- )
+
+template (name="mytpl" type="list"
+)
+{
+ constant(value="{")
+ constant(value="\"@timestamp\":\"")
+ property(name="timereported"dateformat="rfc3339")
+ constant(value="\"}")
+}
|
Puppet / 7 (Ruby 2.7):
spec/defines/component/template_spec.rb#L113
rsyslog::component::template on redhat-9-x86_64 list template is expected to contain Concat::Fragment[rsyslog::component::template::mytpl] with content =~ /(?x)\s*template\s+\(name="mytpl"\s+type="list"\s*\)
\s*\{
\s*constant\(\s*value="\{"\s*\)\s*\n
\s*constant\(\s*value="\\"@timestamp\\":\\""\s*\)\s*\n
\s*property\(\s*name="timereported"\s+dateformat="rfc3339"\s*\)\s*\n
\s*constant\(\s*value="\\"\}"\s*\)\s*$
/
Failure/Error:
is_expected.to contain_concat__fragment('rsyslog::component::template::mytpl').with_content(
%r{(?x)\s*template\s+\(name="mytpl"\s+type="list"\s*\)
\s*\{
\s*constant\(\s*value="\{"\s*\)\s*\n
\s*constant\(\s*value="\\"@timestamp\\":\\""\s*\)\s*\n
\s*property\(\s*name="timereported"\s+dateformat="rfc3339"\s*\)\s*\n
\s*constant\(\s*value="\\"\}"\s*\)\s*$
}
)
expected that the catalogue would contain Concat::Fragment[rsyslog::component::template::mytpl] with content set to /(?x)\s*template\s+\(name="mytpl"\s+type="list"\s*\)
\s*\{
\s*constant\(\s*value="\{"\s*\)\s*\n
\s*constant\(\s*value="\\"@timestamp\\":\\""\s*\)\s*\n
\s*property\(\s*name="timereported"\s+dateformat="rfc3339"\s*\)\s*\n
\s*constant\(\s*value="\\"\}"\s*\)\s*$
/ but it is set to "\ntemplate (name=\"mytpl\" type=\"list\"\n)\n{\n constant(value=\"{\")\n constant(value=\"\\\"@timestamp\\\":\\\"\")\n property(name=\"timereported\"dateformat=\"rfc3339\")\n constant(value=\"\\\"}\")\n}\n"
Diff:
@@ -1,8 +1,10 @@
-(?x-mi:\s*template\s+\(name="mytpl"\s+type="list"\s*\)
- \s*\{
- \s*constant\(\s*value="\{"\s*\)\s*\n
- \s*constant\(\s*value="\\"@timestamp\\":\\""\s*\)\s*\n
- \s*property\(\s*name="timereported"\s+dateformat="rfc3339"\s*\)\s*\n
- \s*constant\(\s*value="\\"\}"\s*\)\s*$
- )
+
+template (name="mytpl" type="list"
+)
+{
+ constant(value="{")
+ constant(value="\"@timestamp\":\"")
+ property(name="timereported"dateformat="rfc3339")
+ constant(value="\"}")
+}
|
Puppet / 7 (Ruby 2.7):
spec/defines/component/template_spec.rb#L113
rsyslog::component::template on centos-9-x86_64 list template is expected to contain Concat::Fragment[rsyslog::component::template::mytpl] with content =~ /(?x)\s*template\s+\(name="mytpl"\s+type="list"\s*\)
\s*\{
\s*constant\(\s*value="\{"\s*\)\s*\n
\s*constant\(\s*value="\\"@timestamp\\":\\""\s*\)\s*\n
\s*property\(\s*name="timereported"\s+dateformat="rfc3339"\s*\)\s*\n
\s*constant\(\s*value="\\"\}"\s*\)\s*$
/
Failure/Error:
is_expected.to contain_concat__fragment('rsyslog::component::template::mytpl').with_content(
%r{(?x)\s*template\s+\(name="mytpl"\s+type="list"\s*\)
\s*\{
\s*constant\(\s*value="\{"\s*\)\s*\n
\s*constant\(\s*value="\\"@timestamp\\":\\""\s*\)\s*\n
\s*property\(\s*name="timereported"\s+dateformat="rfc3339"\s*\)\s*\n
\s*constant\(\s*value="\\"\}"\s*\)\s*$
}
)
expected that the catalogue would contain Concat::Fragment[rsyslog::component::template::mytpl] with content set to /(?x)\s*template\s+\(name="mytpl"\s+type="list"\s*\)
\s*\{
\s*constant\(\s*value="\{"\s*\)\s*\n
\s*constant\(\s*value="\\"@timestamp\\":\\""\s*\)\s*\n
\s*property\(\s*name="timereported"\s+dateformat="rfc3339"\s*\)\s*\n
\s*constant\(\s*value="\\"\}"\s*\)\s*$
/ but it is set to "\ntemplate (name=\"mytpl\" type=\"list\"\n)\n{\n constant(value=\"{\")\n constant(value=\"\\\"@timestamp\\\":\\\"\")\n property(name=\"timereported\"dateformat=\"rfc3339\")\n constant(value=\"\\\"}\")\n}\n"
Diff:
@@ -1,8 +1,10 @@
-(?x-mi:\s*template\s+\(name="mytpl"\s+type="list"\s*\)
- \s*\{
- \s*constant\(\s*value="\{"\s*\)\s*\n
- \s*constant\(\s*value="\\"@timestamp\\":\\""\s*\)\s*\n
- \s*property\(\s*name="timereported"\s+dateformat="rfc3339"\s*\)\s*\n
- \s*constant\(\s*value="\\"\}"\s*\)\s*$
- )
+
+template (name="mytpl" type="list"
+)
+{
+ constant(value="{")
+ constant(value="\"@timestamp\":\"")
+ property(name="timereported"dateformat="rfc3339")
+ constant(value="\"}")
+}
|
Puppet / 7 (Ruby 2.7):
spec/defines/component/template_spec.rb#L113
rsyslog::component::template on oraclelinux-7-x86_64 list template is expected to contain Concat::Fragment[rsyslog::component::template::mytpl] with content =~ /(?x)\s*template\s+\(name="mytpl"\s+type="list"\s*\)
\s*\{
\s*constant\(\s*value="\{"\s*\)\s*\n
\s*constant\(\s*value="\\"@timestamp\\":\\""\s*\)\s*\n
\s*property\(\s*name="timereported"\s+dateformat="rfc3339"\s*\)\s*\n
\s*constant\(\s*value="\\"\}"\s*\)\s*$
/
Failure/Error:
is_expected.to contain_concat__fragment('rsyslog::component::template::mytpl').with_content(
%r{(?x)\s*template\s+\(name="mytpl"\s+type="list"\s*\)
\s*\{
\s*constant\(\s*value="\{"\s*\)\s*\n
\s*constant\(\s*value="\\"@timestamp\\":\\""\s*\)\s*\n
\s*property\(\s*name="timereported"\s+dateformat="rfc3339"\s*\)\s*\n
\s*constant\(\s*value="\\"\}"\s*\)\s*$
}
)
expected that the catalogue would contain Concat::Fragment[rsyslog::component::template::mytpl] with content set to /(?x)\s*template\s+\(name="mytpl"\s+type="list"\s*\)
\s*\{
\s*constant\(\s*value="\{"\s*\)\s*\n
\s*constant\(\s*value="\\"@timestamp\\":\\""\s*\)\s*\n
\s*property\(\s*name="timereported"\s+dateformat="rfc3339"\s*\)\s*\n
\s*constant\(\s*value="\\"\}"\s*\)\s*$
/ but it is set to "\ntemplate (name=\"mytpl\" type=\"list\"\n)\n{\n constant(value=\"{\")\n constant(value=\"\\\"@timestamp\\\":\\\"\")\n property(name=\"timereported\"dateformat=\"rfc3339\")\n constant(value=\"\\\"}\")\n}\n"
Diff:
@@ -1,8 +1,10 @@
-(?x-mi:\s*template\s+\(name="mytpl"\s+type="list"\s*\)
- \s*\{
- \s*constant\(\s*value="\{"\s*\)\s*\n
- \s*constant\(\s*value="\\"@timestamp\\":\\""\s*\)\s*\n
- \s*property\(\s*name="timereported"\s+dateformat="rfc3339"\s*\)\s*\n
- \s*constant\(\s*value="\\"\}"\s*\)\s*$
- )
+
+template (name="mytpl" type="list"
+)
+{
+ constant(value="{")
+ constant(value="\"@timestamp\":\"")
+ property(name="timereported"dateformat="rfc3339")
+ constant(value="\"}")
+}
|
Puppet / 7 (Ruby 2.7):
spec/defines/component/template_spec.rb#L113
rsyslog::component::template on oraclelinux-8-x86_64 list template is expected to contain Concat::Fragment[rsyslog::component::template::mytpl] with content =~ /(?x)\s*template\s+\(name="mytpl"\s+type="list"\s*\)
\s*\{
\s*constant\(\s*value="\{"\s*\)\s*\n
\s*constant\(\s*value="\\"@timestamp\\":\\""\s*\)\s*\n
\s*property\(\s*name="timereported"\s+dateformat="rfc3339"\s*\)\s*\n
\s*constant\(\s*value="\\"\}"\s*\)\s*$
/
Failure/Error:
is_expected.to contain_concat__fragment('rsyslog::component::template::mytpl').with_content(
%r{(?x)\s*template\s+\(name="mytpl"\s+type="list"\s*\)
\s*\{
\s*constant\(\s*value="\{"\s*\)\s*\n
\s*constant\(\s*value="\\"@timestamp\\":\\""\s*\)\s*\n
\s*property\(\s*name="timereported"\s+dateformat="rfc3339"\s*\)\s*\n
\s*constant\(\s*value="\\"\}"\s*\)\s*$
}
)
expected that the catalogue would contain Concat::Fragment[rsyslog::component::template::mytpl] with content set to /(?x)\s*template\s+\(name="mytpl"\s+type="list"\s*\)
\s*\{
\s*constant\(\s*value="\{"\s*\)\s*\n
\s*constant\(\s*value="\\"@timestamp\\":\\""\s*\)\s*\n
\s*property\(\s*name="timereported"\s+dateformat="rfc3339"\s*\)\s*\n
\s*constant\(\s*value="\\"\}"\s*\)\s*$
/ but it is set to "\ntemplate (name=\"mytpl\" type=\"list\"\n)\n{\n constant(value=\"{\")\n constant(value=\"\\\"@timestamp\\\":\\\"\")\n property(name=\"timereported\"dateformat=\"rfc3339\")\n constant(value=\"\\\"}\")\n}\n"
Diff:
@@ -1,8 +1,10 @@
-(?x-mi:\s*template\s+\(name="mytpl"\s+type="list"\s*\)
- \s*\{
- \s*constant\(\s*value="\{"\s*\)\s*\n
- \s*constant\(\s*value="\\"@timestamp\\":\\""\s*\)\s*\n
- \s*property\(\s*name="timereported"\s+dateformat="rfc3339"\s*\)\s*\n
- \s*constant\(\s*value="\\"\}"\s*\)\s*$
- )
+
+template (name="mytpl" type="list"
+)
+{
+ constant(value="{")
+ constant(value="\"@timestamp\":\"")
+ property(name="timereported"dateformat="rfc3339")
+ constant(value="\"}")
+}
|
Puppet / 7 (Ruby 2.7):
spec/defines/component/template_spec.rb#L113
rsyslog::component::template on scientific-7-x86_64 list template is expected to contain Concat::Fragment[rsyslog::component::template::mytpl] with content =~ /(?x)\s*template\s+\(name="mytpl"\s+type="list"\s*\)
\s*\{
\s*constant\(\s*value="\{"\s*\)\s*\n
\s*constant\(\s*value="\\"@timestamp\\":\\""\s*\)\s*\n
\s*property\(\s*name="timereported"\s+dateformat="rfc3339"\s*\)\s*\n
\s*constant\(\s*value="\\"\}"\s*\)\s*$
/
Failure/Error:
is_expected.to contain_concat__fragment('rsyslog::component::template::mytpl').with_content(
%r{(?x)\s*template\s+\(name="mytpl"\s+type="list"\s*\)
\s*\{
\s*constant\(\s*value="\{"\s*\)\s*\n
\s*constant\(\s*value="\\"@timestamp\\":\\""\s*\)\s*\n
\s*property\(\s*name="timereported"\s+dateformat="rfc3339"\s*\)\s*\n
\s*constant\(\s*value="\\"\}"\s*\)\s*$
}
)
expected that the catalogue would contain Concat::Fragment[rsyslog::component::template::mytpl] with content set to /(?x)\s*template\s+\(name="mytpl"\s+type="list"\s*\)
\s*\{
\s*constant\(\s*value="\{"\s*\)\s*\n
\s*constant\(\s*value="\\"@timestamp\\":\\""\s*\)\s*\n
\s*property\(\s*name="timereported"\s+dateformat="rfc3339"\s*\)\s*\n
\s*constant\(\s*value="\\"\}"\s*\)\s*$
/ but it is set to "\ntemplate (name=\"mytpl\" type=\"list\"\n)\n{\n constant(value=\"{\")\n constant(value=\"\\\"@timestamp\\\":\\\"\")\n property(name=\"timereported\"dateformat=\"rfc3339\")\n constant(value=\"\\\"}\")\n}\n"
Diff:
@@ -1,8 +1,10 @@
-(?x-mi:\s*template\s+\(name="mytpl"\s+type="list"\s*\)
- \s*\{
- \s*constant\(\s*value="\{"\s*\)\s*\n
- \s*constant\(\s*value="\\"@timestamp\\":\\""\s*\)\s*\n
- \s*property\(\s*name="timereported"\s+dateformat="rfc3339"\s*\)\s*\n
- \s*constant\(\s*value="\\"\}"\s*\)\s*$
- )
+
+template (name="mytpl" type="list"
+)
+{
+ constant(value="{")
+ constant(value="\"@timestamp\":\"")
+ property(name="timereported"dateformat="rfc3339")
+ constant(value="\"}")
+}
|
Puppet / 7 (Ruby 2.7):
spec/defines/component/template_spec.rb#L113
rsyslog::component::template on ubuntu-18.04-x86_64 list template is expected to contain Concat::Fragment[rsyslog::component::template::mytpl] with content =~ /(?x)\s*template\s+\(name="mytpl"\s+type="list"\s*\)
\s*\{
\s*constant\(\s*value="\{"\s*\)\s*\n
\s*constant\(\s*value="\\"@timestamp\\":\\""\s*\)\s*\n
\s*property\(\s*name="timereported"\s+dateformat="rfc3339"\s*\)\s*\n
\s*constant\(\s*value="\\"\}"\s*\)\s*$
/
Failure/Error:
is_expected.to contain_concat__fragment('rsyslog::component::template::mytpl').with_content(
%r{(?x)\s*template\s+\(name="mytpl"\s+type="list"\s*\)
\s*\{
\s*constant\(\s*value="\{"\s*\)\s*\n
\s*constant\(\s*value="\\"@timestamp\\":\\""\s*\)\s*\n
\s*property\(\s*name="timereported"\s+dateformat="rfc3339"\s*\)\s*\n
\s*constant\(\s*value="\\"\}"\s*\)\s*$
}
)
expected that the catalogue would contain Concat::Fragment[rsyslog::component::template::mytpl] with content set to /(?x)\s*template\s+\(name="mytpl"\s+type="list"\s*\)
\s*\{
\s*constant\(\s*value="\{"\s*\)\s*\n
\s*constant\(\s*value="\\"@timestamp\\":\\""\s*\)\s*\n
\s*property\(\s*name="timereported"\s+dateformat="rfc3339"\s*\)\s*\n
\s*constant\(\s*value="\\"\}"\s*\)\s*$
/ but it is set to "\ntemplate (name=\"mytpl\" type=\"list\"\n)\n{\n constant(value=\"{\")\n constant(value=\"\\\"@timestamp\\\":\\\"\")\n property(name=\"timereported\"dateformat=\"rfc3339\")\n constant(value=\"\\\"}\")\n}\n"
Diff:
@@ -1,8 +1,10 @@
-(?x-mi:\s*template\s+\(name="mytpl"\s+type="list"\s*\)
- \s*\{
- \s*constant\(\s*value="\{"\s*\)\s*\n
- \s*constant\(\s*value="\\"@timestamp\\":\\""\s*\)\s*\n
- \s*property\(\s*name="timereported"\s+dateformat="rfc3339"\s*\)\s*\n
- \s*constant\(\s*value="\\"\}"\s*\)\s*$
- )
+
+template (name="mytpl" type="list"
+)
+{
+ constant(value="{")
+ constant(value="\"@timestamp\":\"")
+ property(name="timereported"dateformat="rfc3339")
+ constant(value="\"}")
+}
|
Puppet / 7 (Ruby 2.7):
spec/defines/component/template_spec.rb#L113
rsyslog::component::template on fedora-38-x86_64 list template is expected to contain Concat::Fragment[rsyslog::component::template::mytpl] with content =~ /(?x)\s*template\s+\(name="mytpl"\s+type="list"\s*\)
\s*\{
\s*constant\(\s*value="\{"\s*\)\s*\n
\s*constant\(\s*value="\\"@timestamp\\":\\""\s*\)\s*\n
\s*property\(\s*name="timereported"\s+dateformat="rfc3339"\s*\)\s*\n
\s*constant\(\s*value="\\"\}"\s*\)\s*$
/
Failure/Error:
is_expected.to contain_concat__fragment('rsyslog::component::template::mytpl').with_content(
%r{(?x)\s*template\s+\(name="mytpl"\s+type="list"\s*\)
\s*\{
\s*constant\(\s*value="\{"\s*\)\s*\n
\s*constant\(\s*value="\\"@timestamp\\":\\""\s*\)\s*\n
\s*property\(\s*name="timereported"\s+dateformat="rfc3339"\s*\)\s*\n
\s*constant\(\s*value="\\"\}"\s*\)\s*$
}
)
expected that the catalogue would contain Concat::Fragment[rsyslog::component::template::mytpl] with content set to /(?x)\s*template\s+\(name="mytpl"\s+type="list"\s*\)
\s*\{
\s*constant\(\s*value="\{"\s*\)\s*\n
\s*constant\(\s*value="\\"@timestamp\\":\\""\s*\)\s*\n
\s*property\(\s*name="timereported"\s+dateformat="rfc3339"\s*\)\s*\n
\s*constant\(\s*value="\\"\}"\s*\)\s*$
/ but it is set to "\ntemplate (name=\"mytpl\" type=\"list\"\n)\n{\n constant(value=\"{\")\n constant(value=\"\\\"@timestamp\\\":\\\"\")\n property(name=\"timereported\"dateformat=\"rfc3339\")\n constant(value=\"\\\"}\")\n}\n"
Diff:
@@ -1,8 +1,10 @@
-(?x-mi:\s*template\s+\(name="mytpl"\s+type="list"\s*\)
- \s*\{
- \s*constant\(\s*value="\{"\s*\)\s*\n
- \s*constant\(\s*value="\\"@timestamp\\":\\""\s*\)\s*\n
- \s*property\(\s*name="timereported"\s+dateformat="rfc3339"\s*\)\s*\n
- \s*constant\(\s*value="\\"\}"\s*\)\s*$
- )
+
+template (name="mytpl" type="list"
+)
+{
+ constant(value="{")
+ constant(value="\"@timestamp\":\"")
+ property(name="timereported"dateformat="rfc3339")
+ constant(value="\"}")
+}
|
Puppet / 7 (Ruby 2.7)
Process completed with exit code 1.
|
Puppet / Test suite
Process completed with exit code 1.
|
Puppet / Static validations:
metadata.json#L1
Skipping EOL operating system RedHat 7
|
Puppet / Static validations:
metadata.json#L1
Skipping EOL operating system CentOS 7
|
Puppet / Static validations:
metadata.json#L1
Skipping EOL operating system CentOS 8
|
Puppet / Static validations:
metadata.json#L1
Skipping EOL operating system OracleLinux 7
|
Puppet / Static validations:
metadata.json#L1
Skipping EOL operating system Ubuntu 18.04
|
Puppet / Static validations:
metadata.json#L1
Skipping EOL operating system Fedora 38
|