From 720051474531025496103898f69e114757efe79b Mon Sep 17 00:00:00 2001 From: Bryce Kwon Date: Mon, 21 Sep 2026 21:58:47 -1000 Subject: Test the hardening pass --- tests/t0004-docs.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tests/t0004-docs.sh') diff --git a/tests/t0004-docs.sh b/tests/t0004-docs.sh index 65c8275..1eca51e 100755 --- a/tests/t0004-docs.sh +++ b/tests/t0004-docs.sh @@ -48,7 +48,8 @@ test_expect_success 'the manual lists its repository settings in order' ' # The policy is spelled out once per server syntax, so nothing but this check # keeps the three copies from drifting apart. test_expect_success 'the server configs agree on one content security policy' ' - for server in apache lighttpd nginx; do + for server in apache lighttpd nginx + do grep "Content-Security-Policy" "$ROOT/custom/servers/$server.conf" | grep "default-src" | sed "s/.*\"\(default-src[^\"]*\)\".*/\1/" || return 1 -- cgit v2.8.0