summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorLukas Fleischer <lfleischer@archlinux.org>2018-05-20 16:45:00 +0200
committerLukas Fleischer <lfleischer@archlinux.org>2018-05-20 16:55:58 +0200
commitb70f048bc3ba08b62b9841d185549466f66ef714 (patch)
tree5059fc50324e7f26bb2d8ad24718272e9f1e7414 /test
parent16795eaf467ef479dd0e37cce6f6623a59584e1f (diff)
downloadaur-b70f048bc3ba08b62b9841d185549466f66ef714.tar.gz
aur-b70f048bc3ba08b62b9841d185549466f66ef714.tar.xz
Add package base name in request close notifications
Mention both the package base name and the request type in the subject of request closure notification. Implements FS#41607. Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
Diffstat (limited to 'test')
-rwxr-xr-xtest/t1200-git-serve.sh2
-rwxr-xr-xtest/t2500-notify.sh6
2 files changed, 4 insertions, 4 deletions
diff --git a/test/t1200-git-serve.sh b/test/t1200-git-serve.sh
index 94a5ff61..473065fc 100755
--- a/test/t1200-git-serve.sh
+++ b/test/t1200-git-serve.sh
@@ -376,7 +376,7 @@ test_expect_success "Check whether package requests are closed when disowning."
SSH_ORIGINAL_COMMAND="disown foobar" AUR_USER=user AUR_PRIVILEGED=0 \
"$GIT_SERVE" 2>&1 &&
cat <<-EOD >expected &&
- Subject: [PRQ#1] Request Accepted
+ Subject: [PRQ#1] Orphan Request for foobar Accepted
EOD
grep "^Subject.*PRQ" sendmail.out >sendmail.parts &&
test_cmp sendmail.parts expected &&
diff --git a/test/t2500-notify.sh b/test/t2500-notify.sh
index 46c2753e..b2bad1c8 100755
--- a/test/t2500-notify.sh
+++ b/test/t2500-notify.sh
@@ -304,7 +304,7 @@ test_expect_success 'Test subject and body of request close notifications.' '
"$NOTIFY" request-close 1 1 accepted &&
grep ^Subject: sendmail.out >actual &&
cat <<-EOD >expected &&
- Subject: [PRQ#1] Request Accepted
+ Subject: [PRQ#1] Deletion Request for foobar Accepted
EOD
test_cmp actual expected &&
sed -n "/^\$/,\$p" sendmail.out | base64 -d >actual &&
@@ -322,7 +322,7 @@ test_expect_success 'Test subject and body of request close notifications (auto-
"$NOTIFY" request-close 0 1 accepted &&
grep ^Subject: sendmail.out >actual &&
cat <<-EOD >expected &&
- Subject: [PRQ#1] Request Accepted
+ Subject: [PRQ#1] Deletion Request for foobar Accepted
EOD
test_cmp actual expected &&
sed -n "/^\$/,\$p" sendmail.out | base64 -d >actual &&
@@ -342,7 +342,7 @@ test_expect_success 'Test subject and body of request close notifications with c
"$NOTIFY" request-close 1 1 accepted &&
grep ^Subject: sendmail.out >actual &&
cat <<-EOD >expected &&
- Subject: [PRQ#1] Request Accepted
+ Subject: [PRQ#1] Deletion Request for foobar Accepted
EOD
test_cmp actual expected &&
sed -n "/^\$/,\$p" sendmail.out | base64 -d >actual &&