Skip to content

Commit ac45f87

Browse files
committed
Update augeas test to detect provider failure
Apparently, when a provider can't be found, the agent still exits 0. This uses --detailed-exitcodes so we can accurately test success (2) or failure (4).
1 parent 5accc98 commit ac45f87

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packaging/acceptance/tests/augeas_validation.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
]
3333
}
3434
EOF
35-
assert_equal(on(agent, "puppet apply -e \"#{file}\"").exit_code, 0, 'Puppet apply of the augeas resource returned a non-zero exit code')
35+
on(agent, "puppet apply -e \"#{file}\" --detailed-exitcodes", acceptable_exit_codes: [2])
3636
end
3737
end
3838
end

0 commit comments

Comments
 (0)