From 044a654c5e9d004935fdcc1abf755bc0e49151bd Mon Sep 17 00:00:00 2001 From: Bryce Kwon Date: Sat, 7 Nov 2026 13:11:28 -1000 Subject: Test enable-plain-email=0 where it changes output No test set it, though it switches the patch to a format of cgit's own and drops the address from the feed and the trailer idents. --- tests/t0111-atom.sh | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'tests/t0111-atom.sh') diff --git a/tests/t0111-atom.sh b/tests/t0111-atom.sh index 6d3e2c6..568fea4 100755 --- a/tests/t0111-atom.sh +++ b/tests/t0111-atom.sh @@ -57,6 +57,14 @@ test_expect_success 'a path with pathspec magic is refused' ' grep "^Status: 200" tmp ' +test_expect_success 'enable-plain-email=0 leaves the address out of the feed' ' + cgitrc_copy plainrc enable-plain-email=0 && + cgit_ok plainrc "url=foo/atom" >tmp && + grep "A U Thor" tmp && + ! grep "" tmp && + ! grep "author@example.com" tmp +' + test_expect_success 'the feed link encodes the repository and the branch' ' cgitrc_copy feedrc && CGIT_CONFIG="$PWD/feedrc" HTTP_HOST=example.org QUERY_STRING="url=foo%2Bbar/log/&h=1%2B2" cgit >tmp && -- cgit 2.12.1