(MAINT) Test fix #89
ci.yml
on: pull_request
Spec
/
Setup Test Matrix
29s
Matrix: Spec / spec
Matrix: Acceptance / acceptance
Waiting for pending jobs
Annotations
4 errors and 2 warnings
Spec / Spec tests (Puppet: ~> 8.0, Ruby Ver: 3.2):
spec/classes/motd_spec.rb#L44
motd On Linux when neither template or source are specified is expected to contain File[/etc/motd] with ensure => "file", backup => "false", content =~ /RedHat\s9\.3\sx86_64\n\nFQDN:\s*foo\.example\.com\s\((172\.16\.254\.254|10\.109\.1\.2)\)\n
Processor:\s*(Intel\(R\)\sXeon\(R\)|AMD\sRyzen\s7\sPro).*\nKernel:\s*Linux\nMemory\sSize:\s*\d+\.\d+\sGiB/, owner => "root", group => "root" and mode => "0644"
Failure/Error:
expect(subject).to contain_File('/etc/motd').with(
ensure: 'file', backup: 'false',
# The following Regex checks for the matching content in this comment and allows for two different IP values to be matched after foo.example.com. This is a workaround to ensure that PDK
# integration testing passes while the MOTD unit tests dont break. The string we are looking for is:
# "RedHat 9.3 x86_64\n\nFQDN: foo.example.com (172.16.254.254 OR 10.109.1.2)\n
# Processor: (Intel(R) Xeon(R) CPU E5-2667 v3 @ 3.20GHz OR AMD Ryzen 7 PRO 4750U with Radeon Graphics)\nKernel: Linux\nMemory Size: 1.44 GiB\n",
content: %r{RedHat\s9\.3\sx86_64\n\nFQDN:\s*foo\.example\.com\s\((172\.16\.254\.254|10\.109\.1\.2)\)\n
Processor:\s*(Intel\(R\)\sXeon\(R\)|AMD\sRyzen\s7\sPro).*\nKernel:\s*Linux\nMemory\sSize:\s*\d+\.\d+\sGiB},
owner: 'root', group: 'root', mode: '0644'
)
expected that the catalogue would contain File[/etc/motd] with content set to /RedHat\s9\.3\sx86_64\n\nFQDN:\s*foo\.example\.com\s\((172\.16\.254\.254|10\.109\.1\.2)\)\n
Processor:\s*(Intel\(R\)\sXeon\(R\)|AMD\sRyzen\s7\sPro).*\nKernel:\s*Linux\nMemory\sSize:\s*\d+\.\d+\sGiB/ but it is set to "RedHat 9.3 x86_64\n\nFQDN: foo.example.com (172.16.254.254)\nProcessor: AMD Ryzen 7 PRO 4750U with Radeon Graphics\nKernel: Linux\nMemory Size: 1.45 GiB\n"
Diff:
@@ -1,3 +1,7 @@
-(?-mix:RedHat\s9\.3\sx86_64\n\nFQDN:\s*foo\.example\.com\s\((172\.16\.254\.254|10\.109\.1\.2)\)\n
- Processor:\s*(Intel\(R\)\sXeon\(R\)|AMD\sRyzen\s7\sPro).*\nKernel:\s*Linux\nMemory\sSize:\s*\d+\.\d+\sGiB)
+RedHat 9.3 x86_64
+
+FQDN: foo.example.com (172.16.254.254)
+Processor: AMD Ryzen 7 PRO 4750U with Radeon Graphics
+Kernel: Linux
+Memory Size: 1.45 GiB
|
Spec / Spec tests (Puppet: ~> 8.0, Ruby Ver: 3.2)
Process completed with exit code 1.
|
Spec / Spec tests (Puppet: ~> 7.24, Ruby Ver: 2.7):
spec/classes/motd_spec.rb#L44
motd On Linux when neither template or source are specified is expected to contain File[/etc/motd] with ensure => "file", backup => "false", content =~ /RedHat\s9\.3\sx86_64\n\nFQDN:\s*foo\.example\.com\s\((172\.16\.254\.254|10\.109\.1\.2)\)\n
Processor:\s*(Intel\(R\)\sXeon\(R\)|AMD\sRyzen\s7\sPro).*\nKernel:\s*Linux\nMemory\sSize:\s*\d+\.\d+\sGiB/, owner => "root", group => "root" and mode => "0644"
Failure/Error:
expect(subject).to contain_File('/etc/motd').with(
ensure: 'file', backup: 'false',
# The following Regex checks for the matching content in this comment and allows for two different IP values to be matched after foo.example.com. This is a workaround to ensure that PDK
# integration testing passes while the MOTD unit tests dont break. The string we are looking for is:
# "RedHat 9.3 x86_64\n\nFQDN: foo.example.com (172.16.254.254 OR 10.109.1.2)\n
# Processor: (Intel(R) Xeon(R) CPU E5-2667 v3 @ 3.20GHz OR AMD Ryzen 7 PRO 4750U with Radeon Graphics)\nKernel: Linux\nMemory Size: 1.44 GiB\n",
content: %r{RedHat\s9\.3\sx86_64\n\nFQDN:\s*foo\.example\.com\s\((172\.16\.254\.254|10\.109\.1\.2)\)\n
Processor:\s*(Intel\(R\)\sXeon\(R\)|AMD\sRyzen\s7\sPro).*\nKernel:\s*Linux\nMemory\sSize:\s*\d+\.\d+\sGiB},
owner: 'root', group: 'root', mode: '0644'
)
expected that the catalogue would contain File[/etc/motd] with content set to /RedHat\s9\.3\sx86_64\n\nFQDN:\s*foo\.example\.com\s\((172\.16\.254\.254|10\.109\.1\.2)\)\n
Processor:\s*(Intel\(R\)\sXeon\(R\)|AMD\sRyzen\s7\sPro).*\nKernel:\s*Linux\nMemory\sSize:\s*\d+\.\d+\sGiB/ but it is set to "RedHat 9.3 x86_64\n\nFQDN: foo.example.com (172.16.254.254)\nProcessor: AMD Ryzen 7 PRO 4750U with Radeon Graphics\nKernel: Linux\nMemory Size: 1.45 GiB\n"
Diff:
@@ -1,3 +1,7 @@
-(?-mix:RedHat\s9\.3\sx86_64\n\nFQDN:\s*foo\.example\.com\s\((172\.16\.254\.254|10\.109\.1\.2)\)\n
- Processor:\s*(Intel\(R\)\sXeon\(R\)|AMD\sRyzen\s7\sPro).*\nKernel:\s*Linux\nMemory\sSize:\s*\d+\.\d+\sGiB)
+RedHat 9.3 x86_64
+
+FQDN: foo.example.com (172.16.254.254)
+Processor: AMD Ryzen 7 PRO 4750U with Radeon Graphics
+Kernel: Linux
+Memory Size: 1.45 GiB
|
Spec / Spec tests (Puppet: ~> 7.24, Ruby Ver: 2.7)
Process completed with exit code 1.
|
Spec / Setup Test Matrix
Cannot find image for Windows-10
|
Spec / Setup Test Matrix
Cannot find image for Windows-2012 R2
|