Skip to content

Commit eb8a0e1

Browse files
Merge pull request #2888 from justinstoller/fixup-compat-tests
(maint) Update Compat tests for Beaker update
2 parents ca69147 + 98526d7 commit eb8a0e1

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

acceptance/suites/puppet4_tests/puppet4_version_test.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
legacy_agents = agents.reject { |agent| agent == master }
55

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

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

1616
step "Check that the agent on the master runs against the master"

acceptance/suites/puppet5_tests/puppet5_version_test.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
legacy_agents = agents.reject { |agent| agent == master }
55

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

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

1616
step "Check that the agent on the master runs against the master"

0 commit comments

Comments
 (0)