Diff options
Diffstat (limited to 'tests/t0206-trailers.sh')
| -rwxr-xr-x | tests/t0206-trailers.sh | 10 |
1 file changed, 10 insertions, 0 deletions
diff --git a/tests/t0206-trailers.sh b/tests/t0206-trailers.sh index 15c3600..70f10bd 100755 --- a/tests/t0206-trailers.sh +++ b/tests/t0206-trailers.sh @@ -78,6 +78,16 @@ test_expect_success 'the escaped value is what the filter sees' ' grep "<tr><th scope=.row.>Link</th><td>Link commit HTTPS://EXAMPLE.COM/?A=1&B=2</td></tr>" tmp ' +# The dump filter is handed the address whatever the setting, so the page is +# drawn without it here. +test_expect_success 'enable-plain-email=0 leaves the addresses off the idents' ' + cgitrc_repo plainrc trailers enable-commit-trailers=1 enable-plain-email=0 && + cgit_ok plainrc "url=trailers/commit/" >tmp && + grep "<tr><th scope=.row.>Signed-off-by</th><td>Mapped Name<br>C O Mitter</td></tr>" tmp && + grep "<tr><th scope=.row.>Acked-by</th><td>Some One (maintainer)</td></tr>" tmp && + ! grep "@example.com" tmp +' + test_expect_success 'a message with no block gets no table' ' plain=$(git -C repos/trailers rev-parse HEAD~1) && cgit_url "trailers/commit/&id=$plain" >tmp && |
