From af0b26b90d6d5602645e0b53bec98851626ab336 Mon Sep 17 00:00:00 2001 From: Sam Macbeth Date: Fri, 16 Feb 2024 18:38:10 +0100 Subject: [PATCH] Reverse tests to take allowlist rule as regex --- .../tracker_allowlist_matching_tests.json | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/tracker-radar-tests/TR-domain-matching/tracker_allowlist_matching_tests.json b/tracker-radar-tests/TR-domain-matching/tracker_allowlist_matching_tests.json index c087fb5..3a62820 100644 --- a/tracker-radar-tests/TR-domain-matching/tracker_allowlist_matching_tests.json +++ b/tracker-radar-tests/TR-domain-matching/tracker_allowlist_matching_tests.json @@ -152,21 +152,21 @@ "isAllowlisted": true }, { - "description": "should match a wildcard rule with *", + "description": "* alone does not match wildcard", "site": "https://testsite.com", "request": "https://allowlist-tracker-2.com/anything/wildcard.js", - "isAllowlisted": true + "isAllowlisted": false }, { - "description": "wildcard is not regex", + "description": "* works as a regex operator", "site": "https://testsite.com", - "request": "https://allowlist-tracker-2.com/anything/wildcard2.js", - "isAllowlisted": false + "request": "https://allowlist-tracker-2.com/////wildcard.js", + "isAllowlisted": true }, { - "description": ". is treated as a literal", + "description": "Regex .* is treated as a wildcard", "site": "https://testsite.com", - "request": "https://allowlist-tracker-2.com/.23rdsvs/wildcard2.js", + "request": "https://allowlist-tracker-2.com/anything/wildcard2.js", "isAllowlisted": true } ]