t0212: test URL redacting in EVENT format
commit16fa3eebc0b92dc2aa5d875c2f1338644e3c5b99
authorJeff Hostetler <jeffhostetler@github.com>
Wed, 22 Nov 2023 19:18:37 +0000 (22 19:18 +0000)
committerJunio C Hamano <gitster@pobox.com>
Thu, 23 Nov 2023 01:30:33 +0000 (23 10:30 +0900)
tree2dca2a6f9f1074e9f3eb35cd86b1ede629b7ca8f
parentc73e7f80d32073b6fafec553d5875e720287e216
t0212: test URL redacting in EVENT format

In the added tests cases, skip testing the `GIT_TRACE2_REDACT=0` case
because we would need to exactly model the full JSON event stream like
we did in the preceding basic tests and I do not think it is worth it.

Furthermore, the Trace2 routines print the same content in normal, perf,
or event format, and in t0210 and t0211 we already tested the basic
functionality, so no need to repeat it here.

In this test, we use the test-helper to unit test each of the event
messages where URLs can appear and confirm that they are redacted in
each event.

Signed-off-by: Jeff Hostetler <jeffhostetler@github.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/helper/test-trace2.c
t/t0212-trace2-event.sh