diff test/test_cgi.py @ 8590:db48c0bb4f1c

test: fix tokenless test use proper origin. The test I was using to test for Origin matching TRACKER_WEB was actually passing because it matched HTTP_HOST. Fix it so the test is correct.
author John Rouillard <rouilj@ieee.org>
date Mon, 20 Apr 2026 22:21:08 -0400
parents 4b2e885ecc07
children 501eb8088ea3
line wrap: on
line diff
--- a/test/test_cgi.py	Mon Apr 20 21:27:52 2026 -0400
+++ b/test/test_cgi.py	Mon Apr 20 22:21:08 2026 -0400
@@ -1086,7 +1086,7 @@
             {
                 # Case 2: POST should succeed with base origin.
                 "Request_Method": "POST",
-                "HTTP_Origin": "https://whoami.com",
+                "HTTP_Origin": "http://tracker.example",
                 "HTTP_Sec_Fetch_Site": None,
                 "HTTP_Host": "whoami.com",
                 "Result": ('Redirecting to '

Roundup Issue Tracker: http://roundup-tracker.org/