Add support for specifying a WHITELIST

This commit is contained in:
Michael Aquilina 2019-08-24 21:33:37 +01:00
parent 8aa4c42932
commit a77777987d
No known key found for this signature in database
GPG key ID: 636066730B056BD1
3 changed files with 51 additions and 7 deletions

View file

@ -33,3 +33,21 @@
assert $state equals 0
assert "$output" same_as "yes"
}
@test 'is_auto_notify_ignored - AUTO_NOTIFY_WHITELIST disallowed' {
AUTO_NOTIFY_WHITELIST="foobar"
run _is_auto_notify_ignored "boom baz"
assert $state equals 0
assert "$output" same_as "yes"
}
@test 'is_auto_notify_ignored - AUTO_NOTIFY_WHITELIST allowed' {
AUTO_NOTIFY_WHITELIST="foobar"
run _is_auto_notify_ignored "foobar baz"
assert $state equals 0
assert "$output" same_as "no"
}