mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
t2500: add test for disown notifications
Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
This commit is contained in:
parent
0ae1ca15e9
commit
8a2f13f8c2
1 changed files with 19 additions and 0 deletions
|
@ -175,6 +175,25 @@ test_expect_success 'Test subject and body of adopt notifications.' '
|
||||||
test_cmp actual expected
|
test_cmp actual expected
|
||||||
'
|
'
|
||||||
|
|
||||||
|
test_expect_success 'Test subject and body of disown notifications.' '
|
||||||
|
>sendmail.out &&
|
||||||
|
"$NOTIFY" disown 1 1001 &&
|
||||||
|
grep ^Subject: sendmail.out >actual &&
|
||||||
|
cat <<-EOD >expected &&
|
||||||
|
Subject: AUR Ownership Notification for foobar
|
||||||
|
EOD
|
||||||
|
test_cmp actual expected &&
|
||||||
|
sed -n "/^\$/,\$p" sendmail.out | base64 -d >actual &&
|
||||||
|
echo >>actual &&
|
||||||
|
cat <<-EOD >expected &&
|
||||||
|
The package foobar [1] was disowned by user [2].
|
||||||
|
|
||||||
|
[1] https://aur.archlinux.org/pkgbase/foobar/
|
||||||
|
[2] https://aur.archlinux.org/account/user/
|
||||||
|
EOD
|
||||||
|
test_cmp actual expected
|
||||||
|
'
|
||||||
|
|
||||||
test_expect_success 'Test subject and body of co-maintainer addition notifications.' '
|
test_expect_success 'Test subject and body of co-maintainer addition notifications.' '
|
||||||
>sendmail.out &&
|
>sendmail.out &&
|
||||||
"$NOTIFY" comaintainer-add 1 1001 &&
|
"$NOTIFY" comaintainer-add 1 1001 &&
|
||||||
|
|
Loading…
Add table
Reference in a new issue