Skip to content

Commit

Permalink
Merge pull request #2888 from justinstoller/fixup-compat-tests
Browse files Browse the repository at this point in the history
(maint) Update Compat tests for Beaker update
  • Loading branch information
justinstoller authored Oct 3, 2024
2 parents ca69147 + 98526d7 commit eb8a0e1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions acceptance/suites/puppet4_tests/puppet4_version_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
legacy_agents = agents.reject { |agent| agent == master }

step "Check that legacy agents have Puppet 4.x installed"
on(legacy_agents, puppet("--version")) do
assert_match(/\A4\./, stdout, "puppet --version does not start with major version 4.")
on(legacy_agents, puppet("--version")) do |result|
assert_match(/\A4\./, result.stdout, "puppet --version does not start with major version 4.")
end

step "Check that Puppet Server has Puppet 6.x installed"
on(master, puppet("--version")) do
assert_match(/\A6/, stdout, "puppet --version does not start with major version 6.x")
on(master, puppet("--version")) do |result|
assert_match(/\A6/, result.stdout, "puppet --version does not start with major version 6.x")
end

step "Check that the agent on the master runs against the master"
Expand Down
8 changes: 4 additions & 4 deletions acceptance/suites/puppet5_tests/puppet5_version_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
legacy_agents = agents.reject { |agent| agent == master }

step "Check that legacy agents have Puppet 5.x installed"
on(legacy_agents, puppet("--version")) do
assert_match(/\A5\./, stdout, "puppet --version does not start with major version 5.")
on(legacy_agents, puppet("--version")) do |result|
assert_match(/\A5\./, result.stdout, "puppet --version does not start with major version 5.")
end

step "Check that Puppet Server has Puppet 8.x installed"
on(master, puppet("--version")) do
assert_match(/\A8/, stdout, "puppet --version does not start with major version 8.x")
on(master, puppet("--version")) do |result|
assert_match(/\A8/, result.stdout, "puppet --version does not start with major version 8.x")
end

step "Check that the agent on the master runs against the master"
Expand Down

0 comments on commit eb8a0e1

Please sign in to comment.