Skip to content

(CAT-270) Adjusting tests for pdk integration testing #62

(CAT-270) Adjusting tests for pdk integration testing

(CAT-270) Adjusting tests for pdk integration testing #62

Triggered via pull request October 25, 2023 11:03
Status Failure
Total duration 1m 45s
Artifacts

ci.yml

on: pull_request
Spec  /  Setup Test Matrix
30s
Spec / Setup Test Matrix
Matrix: Spec / spec
Acceptance  /  Setup Test Matrix
Acceptance / Setup Test Matrix
Matrix: Acceptance / acceptance
Waiting for pending jobs
Fit to window
Zoom out
Zoom in

Annotations

4 errors and 2 warnings
Spec / Spec tests (Puppet: ~> 8.0, Ruby Ver: 3.2): spec/classes/motd_spec.rb#L202
motd On Windows when neither template or source are specified is expected to contain Registry_value[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\policies\system\legalnoticetext] with ensure => "present", type => "string" and data =~ /windows\s10\sx64\n\nFQDN:\s*foo.example.com\s\((172\.16\.254\.254|10\.109\.1\.2)\)\nProcessor:\s*Intel(R)\sXeon(R)\sPlatinum\s8272CL\sCPU\s@\s2.60GHz\nKernel:\s*windows\nMemory\sSize:\s*14.34\sGiB/ Failure/Error: expect(subject).to contain_Registry_value('HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\policies\system\legalnoticetext').with( ensure: 'present', type: 'string', # 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: # "windows 10 x64\n\nFQDN: foo.example.com (172.16.254.254)\nProcessor: Intel(R) Xeon(R) Platinum 8272CL CPU @ 2.60GHz\nKernel: windows\nMemory Size: 14.34 GiB\n", data: %r{windows\s10\sx64\n\nFQDN:\s*foo.example.com\s\((172\.16\.254\.254|10\.109\.1\.2)\)\nProcessor:\s*Intel(R)\sXeon(R)\sPlatinum\s8272CL\sCPU\s@\s2.60GHz\nKernel:\s*windows\nMemory\sSize:\s*14.34\sGiB}, # rubocop:disable Layout/LineLength ) expected that the catalogue would contain Registry_value[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\policies\system\legalnoticetext] with data set to /windows\s10\sx64\n\nFQDN:\s*foo.example.com\s\((172\.16\.254\.254|10\.109\.1\.2)\)\nProcessor:\s*Intel(R)\sXeon(R)\sPlatinum\s8272CL\sCPU\s@\s2.60GHz\nKernel:\s*windows\nMemory\sSize:\s*14.34\sGiB/ but it is set to "windows 10 x64\n\nFQDN: foo.example.com (10.138.1.5)\nProcessor: Intel(R) Xeon(R) Platinum 8272CL CPU @ 2.60GHz\nKernel: windows\nMemory Size: 14.34 GiB\n" Diff: @@ -1,6 +1,11 @@ -(?-mix:windows\s10\sx64\n\nFQDN:\s*foo.example.com\s\((172\.16\.254\.254|10\.109\.1\.2)\)\nProcessor:\s*Intel(R)\sXeon(R)\sPlatinum\s8272CL\sCPU\s@\s2.60GHz\nKernel:\s*windows\nMemory\sSize:\s*14.34\sGiB) +windows 10 x64 + +FQDN: foo.example.com (10.138.1.5) +Processor: Intel(R) Xeon(R) Platinum 8272CL CPU @ 2.60GHz +Kernel: windows +Memory Size: 14.34 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#L202
motd On Windows when neither template or source are specified is expected to contain Registry_value[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\policies\system\legalnoticetext] with ensure => "present", type => "string" and data =~ /windows\s10\sx64\n\nFQDN:\s*foo.example.com\s\((172\.16\.254\.254|10\.109\.1\.2)\)\nProcessor:\s*Intel(R)\sXeon(R)\sPlatinum\s8272CL\sCPU\s@\s2.60GHz\nKernel:\s*windows\nMemory\sSize:\s*14.34\sGiB/ Failure/Error: expect(subject).to contain_Registry_value('HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\policies\system\legalnoticetext').with( ensure: 'present', type: 'string', # 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: # "windows 10 x64\n\nFQDN: foo.example.com (172.16.254.254)\nProcessor: Intel(R) Xeon(R) Platinum 8272CL CPU @ 2.60GHz\nKernel: windows\nMemory Size: 14.34 GiB\n", data: %r{windows\s10\sx64\n\nFQDN:\s*foo.example.com\s\((172\.16\.254\.254|10\.109\.1\.2)\)\nProcessor:\s*Intel(R)\sXeon(R)\sPlatinum\s8272CL\sCPU\s@\s2.60GHz\nKernel:\s*windows\nMemory\sSize:\s*14.34\sGiB}, # rubocop:disable Layout/LineLength ) expected that the catalogue would contain Registry_value[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\policies\system\legalnoticetext] with data set to /windows\s10\sx64\n\nFQDN:\s*foo.example.com\s\((172\.16\.254\.254|10\.109\.1\.2)\)\nProcessor:\s*Intel(R)\sXeon(R)\sPlatinum\s8272CL\sCPU\s@\s2.60GHz\nKernel:\s*windows\nMemory\sSize:\s*14.34\sGiB/ but it is set to "windows 10 x64\n\nFQDN: foo.example.com (10.138.1.5)\nProcessor: Intel(R) Xeon(R) Platinum 8272CL CPU @ 2.60GHz\nKernel: windows\nMemory Size: 14.34 GiB\n" Diff: @@ -1,6 +1,11 @@ -(?-mix:windows\s10\sx64\n\nFQDN:\s*foo.example.com\s\((172\.16\.254\.254|10\.109\.1\.2)\)\nProcessor:\s*Intel(R)\sXeon(R)\sPlatinum\s8272CL\sCPU\s@\s2.60GHz\nKernel:\s*windows\nMemory\sSize:\s*14.34\sGiB) +windows 10 x64 + +FQDN: foo.example.com (10.138.1.5) +Processor: Intel(R) Xeon(R) Platinum 8272CL CPU @ 2.60GHz +Kernel: windows +Memory Size: 14.34 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