Skip to content

Commit

Permalink
(MAINT) Test fix
Browse files Browse the repository at this point in the history
Annual update of test to account for background changes
  • Loading branch information
david22swan authored May 22, 2024
1 parent b0e6e8f commit 5a4dcb7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/classes/motd_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@
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)\nProcessor: Intel(R) Xeon(R) CPU E5-2667 v3 @ 3.20GHz\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)\)\nProcessor:\s*Intel\(R\)\sXeon\(R\).*\nKernel:\s*Linux\nMemory\sSize:\s*\d+\.\d+\sGiB},
# "RedHat 9.3 x86_64\n\nFQDN: foo.example.com (172.16.254.254 OR 10.109.1.2)\nProcessor: (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",

Check failure on line 49 in spec/classes/motd_spec.rb

View workflow job for this annotation

GitHub Actions / Spec / Spec tests (Puppet: ~> 7.24, Ruby Ver: 2.7)

Layout/LineLength: Line is too long. [248/200] (https://rubystyle.guide#max-line-length)

Check failure on line 49 in spec/classes/motd_spec.rb

View workflow job for this annotation

GitHub Actions / Spec / Spec tests (Puppet: ~> 8.0, Ruby Ver: 3.2)

Layout/LineLength: Line is too long. [248/200] (https://rubystyle.guide#max-line-length)
content: %r{RedHat\s9\.3\sx86_64\n\nFQDN:\s*foo\.example\.com\s\((172\.16\.254\.254|10\.109\.1\.2)\)\nProcessor:\s*(Intel\(R\)\sXeon\(R\)|AMD\sRyzen\s7\sPro).*\nKernel:\s*Linux\nMemory\sSize:\s*\d+\.\d+\sGiB},

Check failure on line 50 in spec/classes/motd_spec.rb

View workflow job for this annotation

GitHub Actions / Spec / Spec tests (Puppet: ~> 7.24, Ruby Ver: 2.7)

Layout/LineLength: Line is too long. [219/200] (https://rubystyle.guide#max-line-length)

Check failure on line 50 in spec/classes/motd_spec.rb

View workflow job for this annotation

GitHub Actions / Spec / Spec tests (Puppet: ~> 8.0, Ruby Ver: 3.2)

Layout/LineLength: Line is too long. [219/200] (https://rubystyle.guide#max-line-length)
owner: 'root', group: 'root', mode: '0644'
)
end
Expand Down

0 comments on commit 5a4dcb7

Please sign in to comment.