Add support for specifying a WHITELIST
This commit is contained in:
parent
8aa4c42932
commit
a77777987d
3 changed files with 51 additions and 7 deletions
|
@ -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"
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue