@@ -82,7 +82,7 @@ def verify_absent(hosts, pkg)
82
82
step 'Installing a non-existent version of a known package fails' do
83
83
verify_absent agents , 'guid'
84
84
apply_manifest_on ( agents , 'package {"guid": ensure => "1.1"}' ) do |result |
85
- assert_not_match ( /Package\[ guid\] \/ ensure: created/ , "#{ result . host } : #{ result . stdout } " )
85
+ refute_match ( /Package\[ guid\] \/ ensure: created/ , "#{ result . host } : #{ result . stdout } " )
86
86
assert_match ( "Package[guid]/ensure: change from 'purged' to '1.1' failed" , "#{ result . host } : #{ result . stderr } " )
87
87
end
88
88
verify_absent agents , 'guid'
@@ -91,7 +91,7 @@ def verify_absent(hosts, pkg)
91
91
step 'Installing a non-existent package fails' do
92
92
verify_absent agents , 'not_a_package'
93
93
apply_manifest_on ( agents , 'package {"not_a_package": ensure => present}' ) do |result |
94
- assert_not_match ( /Package\[ not_a_package\] \/ ensure: created/ , "#{ result . host } : #{ result . stdout } " )
94
+ refute_match ( /Package\[ not_a_package\] \/ ensure: created/ , "#{ result . host } : #{ result . stdout } " )
95
95
assert_match ( "Package[not_a_package]/ensure: change from 'purged' to 'present' failed" , "#{ result . host } : #{ result . stderr } " )
96
96
end
97
97
verify_absent agents , 'not_a_package'
@@ -100,7 +100,7 @@ def verify_absent(hosts, pkg)
100
100
step 'Removing a non-existent package succeeds' do
101
101
verify_absent agents , 'not_a_package'
102
102
apply_manifest_on ( agents , 'package {"not_a_package": ensure => absent}' ) do |result |
103
- assert_not_match ( /Package\[ not_a_package\] \/ ensure/ , "#{ result . host } : #{ result . stdout } " )
103
+ refute_match ( /Package\[ not_a_package\] \/ ensure/ , "#{ result . host } : #{ result . stdout } " )
104
104
assert_match ( 'Applied catalog' , "#{ result . host } : #{ result . stdout } " )
105
105
end
106
106
verify_absent agents , 'not_a_package'
0 commit comments