-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The assert_no_match method in Beaker was long deprecated then eventually removed altogether in voxpupuli/beaker@6282311 This commit updates all instances of assert_no_match in Puppet's Beaker tests with refute_match.
- Loading branch information
1 parent
99ae2cf
commit 0162588
Showing
33 changed files
with
67 additions
and
67 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,7 +31,7 @@ | |
step "IPS: basic ensure we are clean" | ||
apply_manifest_on(agent, 'package {mypkg : ensure=>absent}') | ||
on(agent, "pkg list -v mypkg", :acceptable_exit_codes => [1]) do | ||
assert_no_match( /[email protected]/, result.stdout, "err: #{agent}") | ||
refute_match( /[email protected]/, result.stdout, "err: #{agent}") | ||
end | ||
|
||
step "IPS: basic - it should create" | ||
|
@@ -47,7 +47,7 @@ | |
step "IPS: do not upgrade until latest is mentioned" | ||
send_pkg agent,:pkg => '[email protected]' | ||
apply_manifest_on(agent, 'package {mypkg : ensure=>present}') do | ||
assert_no_match( /ensure: created/, result.stdout, "err: #{agent}") | ||
refute_match( /ensure: created/, result.stdout, "err: #{agent}") | ||
end | ||
|
||
step "IPS: verify it was not upgraded" | ||
|
@@ -74,6 +74,6 @@ | |
step "IPS: ensure removed." | ||
apply_manifest_on(agent, 'package {mypkg : ensure=>absent}') | ||
on(agent, "pkg list -v mypkg", :acceptable_exit_codes => [1]) do | ||
assert_no_match( /[email protected]/, result.stdout, "err: #{agent}") | ||
refute_match( /[email protected]/, result.stdout, "err: #{agent}") | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -62,7 +62,7 @@ | |
setup_fakeroot2 agent | ||
send_pkg2 agent, :pkg => '[email protected]', :pkgdep => '[email protected]' | ||
apply_manifest_on(agent, 'package {mypkg2 : ensure=>"0.0.2"}') do | ||
assert_no_match( /changed/, result.stdout, "err: #{agent}") | ||
refute_match( /changed/, result.stdout, "err: #{agent}") | ||
end | ||
on agent, "pkg list -v mypkg" do | ||
assert_match( /[email protected]/, result.stdout, "err: #{agent}") | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,8 +32,8 @@ | |
|
||
step "IPS: should be idempotent (present)" | ||
apply_manifest_on(agent, 'package {mypkg : ensure=>present}') do | ||
assert_no_match( /created/, result.stdout, "err: #{agent}") | ||
assert_no_match( /changed/, result.stdout, "err: #{agent}") | ||
refute_match( /created/, result.stdout, "err: #{agent}") | ||
refute_match( /changed/, result.stdout, "err: #{agent}") | ||
end | ||
send_pkg agent, :pkg => '[email protected]' | ||
|
||
|
@@ -42,7 +42,7 @@ | |
|
||
step "IPS: ask for latest version again: should be idempotent (latest)" | ||
apply_manifest_on(agent, 'package {mypkg : ensure=>latest}') do | ||
assert_no_match( /created/, result.stdout, "err: #{agent}") | ||
refute_match( /created/, result.stdout, "err: #{agent}") | ||
end | ||
|
||
step "IPS: ask for specific version" | ||
|
@@ -53,14 +53,14 @@ | |
|
||
step "IPS: ask for specific version again: should be idempotent (version)" | ||
apply_manifest_on(agent, 'package {mypkg : ensure=>"0.0.3"}') do | ||
assert_no_match( /created/, result.stdout, "err: #{agent}") | ||
assert_no_match( /changed/, result.stdout, "err: #{agent}") | ||
refute_match( /created/, result.stdout, "err: #{agent}") | ||
refute_match( /changed/, result.stdout, "err: #{agent}") | ||
end | ||
|
||
step "IPS: ensure removed." | ||
apply_manifest_on(agent, 'package {mypkg : ensure=>absent}') | ||
on(agent, "pkg list -v mypkg", :acceptable_exit_codes => [1]) do | ||
assert_no_match( /mypkg/, result.stdout, "err: #{agent}") | ||
refute_match( /mypkg/, result.stdout, "err: #{agent}") | ||
end | ||
|
||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -33,7 +33,7 @@ | |
apply_manifest_on(agent, 'package {mypkg : ensure=>absent}') | ||
|
||
on(agent, "pkg list -v mypkg", :acceptable_exit_codes => [1]) do | ||
assert_no_match( /[email protected]/, result.stdout, "err: #{agent}") | ||
refute_match( /[email protected]/, result.stdout, "err: #{agent}") | ||
end | ||
|
||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.