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>
This commit is contained in:
Lukas Fleischer 2018-05-20 16:45:00 +02:00
parent 16795eaf46
commit b70f048bc3
3 changed files with 16 additions and 8 deletions

View file

@ -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 &&