From b63f23a56cb57e61da99edaa2e5cd3309d58134d Mon Sep 17 00:00:00 2001 From: Adam Turner <9087854+AA-Turner@users.noreply.github.com> Date: Tue, 12 Nov 2024 23:01:57 +0000 Subject: [PATCH] Add tests for the 'deprecations' redirect (#526) --- tests/docs-redirects/specs/top-level-directories.hurl | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/tests/docs-redirects/specs/top-level-directories.hurl b/tests/docs-redirects/specs/top-level-directories.hurl index 7ebd4f3f..8b7a94a5 100644 --- a/tests/docs-redirects/specs/top-level-directories.hurl +++ b/tests/docs-redirects/specs/top-level-directories.hurl @@ -10,6 +10,11 @@ HTTP 301 [Asserts] header "Location" == "https://localhost/3/c-api" +GET {{host}}/deprecations +HTTP 301 +[Asserts] +header "Location" == "https://localhost/3/deprecations" + GET {{host}}/distutils HTTP 301 [Asserts] @@ -85,6 +90,11 @@ HTTP 301 [Asserts] header "Location" == "https://localhost/3/c-api/spam" +GET {{host}}/deprecations/spam +HTTP 301 +[Asserts] +header "Location" == "https://localhost/3/deprecations/spam" + GET {{host}}/distutils/spam HTTP 301 [Asserts]