Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Filipe Laíns
aurweb
Commits
8a2f13f8
Commit
8a2f13f8
authored
Aug 12, 2018
by
Lukas Fleischer
Browse files
t2500: add test for disown notifications
Signed-off-by:
Lukas Fleischer
<
lfleischer@archlinux.org
>
parent
0ae1ca15
Changes
1
Hide whitespace changes
Inline
Side-by-side
test/t2500-notify.sh
View file @
8a2f13f8
...
...
@@ -175,6 +175,25 @@ test_expect_success 'Test subject and body of adopt notifications.' '
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.'
'
>sendmail.out &&
"$NOTIFY" comaintainer-add 1 1001 &&
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment