Skip to content
This repository was archived by the owner on Apr 10, 2025. It is now read-only.

Commit 6b0cd0c

Browse files
committed
Finish checking in system-test changes for htaccess overrides of disallow.
1 parent 44a09a7 commit 6b0cd0c

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

pagespeed/apache/system_test.sh

+6-1
Original file line numberDiff line numberDiff line change
@@ -1023,7 +1023,6 @@ start_test Fetch gzipped, make sure that we have cache compressed at gzip 9.
10231023
URL="$PRIMARY_SERVER/mod_pagespeed_test/invalid.css"
10241024
fetch_until -gzip $URL "wc -c" 27
10251025

1026-
10271026
if [ "$SECONDARY_HOSTNAME" != "" ]; then
10281027
start_test Measurement proxy mode
10291028
# Wrong password --- 403.
@@ -1055,6 +1054,12 @@ if [ "$SECONDARY_HOSTNAME" != "" ]; then
10551054
check_from "$OUT" fgrep -q "psmob-map-button"
10561055
fi
10571056

1057+
start_test Make sure Disallow/Allow overrides work in htaccess hierarchies
1058+
DISALLOWED=$($WGET_DUMP "$TEST_ROOT"/htaccess/purple.css)
1059+
check_from "$DISALLOWED" fgrep -q MediumPurple
1060+
fetch_until "$TEST_ROOT"/htaccess/override/purple.css \
1061+
'fgrep -c background:#9370db' 1
1062+
10581063
# Cleanup
10591064
rm -rf $OUTDIR
10601065

0 commit comments

Comments
 (0)