From 2072d119109b2d293273ef79488d00b2fe4fa875 Mon Sep 17 00:00:00 2001 From: Ryan Johnson Date: Tue, 16 Mar 2021 16:10:20 -0700 Subject: [PATCH] fix integration tests to reflect latest changes (#3259) --- testing/integration/headless/map_301.py | 2 +- testing/integration/headless/test_cdn.py | 6 +++--- testing/integration/headless/test_endpoints.py | 1 - 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/testing/integration/headless/map_301.py b/testing/integration/headless/map_301.py index 6771a6754167..1c5abf7ee3d9 100644 --- a/testing/integration/headless/map_301.py +++ b/testing/integration/headless/map_301.py @@ -1039,7 +1039,7 @@ url_test("/en-US/Security/", "/en-US/docs/Security"), url_test("/en-US/Security/CSP/", "/en-US/docs/Security/CSP"), # Add trailing slash for the home page. - url_test("/en-US", "/en-US/"), + url_test("/en-US", "/en-US/", status_code=302), # Some special cases for "/docs". url_test("/docs", "/docs/Web"), url_test("/docs/", "/docs/Web"), diff --git a/testing/integration/headless/test_cdn.py b/testing/integration/headless/test_cdn.py index 06bbbe764ff4..06bee9beec29 100644 --- a/testing/integration/headless/test_cdn.py +++ b/testing/integration/headless/test_cdn.py @@ -139,7 +139,6 @@ def assert_cached( ("/healthz", 204, None), ("/readiness", 204, None), ("/api/v1/whoami", 200, None), - ("/api/v1/search/en-US?q=css", 200, None), ("/csp-violation-capture", 405, None), ("/en-US/profile", 302, "/en-US/users/signin?next=/en-US/profile"), ("/en-US/profile/edit", 302, "/en-US/users/signin?next=/en-US/profile/edit"), @@ -207,8 +206,9 @@ def test_not_cached(base_url, is_behind_cdn, slug, status, expected_location): ("/en-US/search/xml", 200, None), ("/en-US/search.json?q=yada", 301, "/api/v1/search?q=yada"), ("/en-US/search?q=css", 200, None), - ("/en-US/search/?q=css", 301, "/en-US/search?q=css"), - ("/en-US/search/?q=html", 301, "/en-US/search?q=html"), + ("/en-US/search/?q=css", 302, "/en-US/search?q=css"), + ("/en-US/search/?q=html", 302, "/en-US/search?q=html"), + ("/api/v1/search?q=css", 200, None), ("/en-US/Firefox", 302, "/en-US/docs/Mozilla/Firefox"), ("/en-US/docs/Web/HTML", 200, None), ], diff --git a/testing/integration/headless/test_endpoints.py b/testing/integration/headless/test_endpoints.py index 8f2269f557c6..1df4031a898e 100644 --- a/testing/integration/headless/test_endpoints.py +++ b/testing/integration/headless/test_endpoints.py @@ -136,7 +136,6 @@ def test_api_basic(base_url, uri, expected_keys): "/profile", "/profiles/sheppy", "/users/signin", - "/promote", "/account", ], )