Fix broken acceptance tests.
New fact was added that matched a regex breaking the always_apt_update tests. Updated the tests to check for the apt_update exec, not just the string apt_update.
This commit is contained in:
parent
256a63b407
commit
f02f9b8465
1 changed files with 2 additions and 2 deletions
|
@ -15,7 +15,7 @@ describe 'apt class', :unless => UNSUPPORTED_PLATFORMS.include?(fact('osfamily')
|
|||
EOS
|
||||
|
||||
apply_manifest(pp, :catch_failures => true) do |r|
|
||||
expect(r.stdout).to match(/apt_update/)
|
||||
expect(r.stdout).to match(/Exec\[apt_update\]/)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
@ -26,7 +26,7 @@ describe 'apt class', :unless => UNSUPPORTED_PLATFORMS.include?(fact('osfamily')
|
|||
EOS
|
||||
|
||||
apply_manifest(pp, :catch_failures => true) do |r|
|
||||
expect(r.stdout).to_not match(/apt_update/)
|
||||
expect(r.stdout).to_not match(/Exec\[apt_update\]/)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue