From 84aaf117dd51bb884507ad70f06cd90a8f53d1f9 Mon Sep 17 00:00:00 2001 From: Adam Turner <9087854+aa-turner@users.noreply.github.com> Date: Tue, 12 Nov 2024 21:17:41 +0000 Subject: [PATCH] Add tests for the 'deprecations' redirect --- 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]