Skip to content

Commit

Permalink
fix integration tests to reflect latest changes (#3259)
Browse files Browse the repository at this point in the history
  • Loading branch information
escattone authored Mar 16, 2021
1 parent f72618b commit 2072d11
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion testing/integration/headless/map_301.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"),
Expand Down
6 changes: 3 additions & 3 deletions testing/integration/headless/test_cdn.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"),
Expand Down Expand Up @@ -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),
],
Expand Down
1 change: 0 additions & 1 deletion testing/integration/headless/test_endpoints.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,6 @@ def test_api_basic(base_url, uri, expected_keys):
"/profile",
"/profiles/sheppy",
"/users/signin",
"/promote",
"/account",
],
)
Expand Down

0 comments on commit 2072d11

Please sign in to comment.