From 48f65124c3b45d8119f346ec1946e9d50037034d Mon Sep 17 00:00:00 2001 From: George Adams Date: Tue, 8 Oct 2024 16:06:32 +0100 Subject: [PATCH] fix case sensitive location header --- .../test/kotlin/net/adoptium/api/packages/BinaryPathTest.kt | 2 +- .../kotlin/net/adoptium/api/packages/InstallerPathTest.kt | 4 ++-- .../kotlin/net/adoptium/api/packages/PackageEndpointTest.kt | 6 +++--- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/adoptium-frontend-parent/adoptium-api-v3-frontend/src/test/kotlin/net/adoptium/api/packages/BinaryPathTest.kt b/adoptium-frontend-parent/adoptium-api-v3-frontend/src/test/kotlin/net/adoptium/api/packages/BinaryPathTest.kt index 7365c358d..b7b7e9bbb 100644 --- a/adoptium-frontend-parent/adoptium-api-v3-frontend/src/test/kotlin/net/adoptium/api/packages/BinaryPathTest.kt +++ b/adoptium-frontend-parent/adoptium-api-v3-frontend/src/test/kotlin/net/adoptium/api/packages/BinaryPathTest.kt @@ -37,7 +37,7 @@ class BinaryPathTest : PackageEndpointTest() { performRequest(path) .then() .statusCode(307) - .header("Location", Matchers.startsWith("https://github.com/adoptium/temurin11-binaries/releases/download/")) + .header("location", Matchers.startsWith("https://github.com/adoptium/temurin11-binaries/releases/download/")) } @Test diff --git a/adoptium-frontend-parent/adoptium-api-v3-frontend/src/test/kotlin/net/adoptium/api/packages/InstallerPathTest.kt b/adoptium-frontend-parent/adoptium-api-v3-frontend/src/test/kotlin/net/adoptium/api/packages/InstallerPathTest.kt index 7004790c1..417bdddda 100644 --- a/adoptium-frontend-parent/adoptium-api-v3-frontend/src/test/kotlin/net/adoptium/api/packages/InstallerPathTest.kt +++ b/adoptium-frontend-parent/adoptium-api-v3-frontend/src/test/kotlin/net/adoptium/api/packages/InstallerPathTest.kt @@ -28,7 +28,7 @@ class InstallerPathTest : PackageEndpointTest() { performRequest(path) .then() .statusCode(307) - .header("Location", Matchers.startsWith("https://github.com/adoptium/temurin11-binaries/releases/download/")) + .header("location", Matchers.startsWith("https://github.com/adoptium/temurin11-binaries/releases/download/")) } @Test @@ -37,7 +37,7 @@ class InstallerPathTest : PackageEndpointTest() { performRequest(path) .then() .statusCode(307) - .header("Location", Matchers.startsWith("https://github.com/adoptium/temurin11-binaries/releases/download/")) + .header("location", Matchers.startsWith("https://github.com/adoptium/temurin11-binaries/releases/download/")) } @Test diff --git a/adoptium-frontend-parent/adoptium-api-v3-frontend/src/test/kotlin/net/adoptium/api/packages/PackageEndpointTest.kt b/adoptium-frontend-parent/adoptium-api-v3-frontend/src/test/kotlin/net/adoptium/api/packages/PackageEndpointTest.kt index 54afcbac3..bea82b06b 100644 --- a/adoptium-frontend-parent/adoptium-api-v3-frontend/src/test/kotlin/net/adoptium/api/packages/PackageEndpointTest.kt +++ b/adoptium-frontend-parent/adoptium-api-v3-frontend/src/test/kotlin/net/adoptium/api/packages/PackageEndpointTest.kt @@ -107,7 +107,7 @@ abstract class PackageEndpointTest : FrontendTest() { performRequest(path) .then() .statusCode(307) - .header("Location", Matchers.startsWith(binary.`package`.link)) + .header("location", Matchers.startsWith(binary.`package`.link)) } protected fun requestSignatureExpecting307( @@ -121,7 +121,7 @@ abstract class PackageEndpointTest : FrontendTest() { performRequest(path) .then() .statusCode(307) - .header("Location", Matchers.startsWith(binary.`package`.signature_link)) + .header("location", Matchers.startsWith(binary.`package`.signature_link)) } protected fun requestChecksumExpecting307( @@ -135,6 +135,6 @@ abstract class PackageEndpointTest : FrontendTest() { performRequest(path) .then() .statusCode(307) - .header("Location", Matchers.startsWith(binary.`package`.checksum_link)) + .header("location", Matchers.startsWith(binary.`package`.checksum_link)) } }