From 3f7df2bc81620849e33141a33398f6c6d42bb1e1 Mon Sep 17 00:00:00 2001 From: Michael Hoennig Date: Fri, 20 Dec 2024 16:54:42 +0100 Subject: [PATCH] remove authentication from ScenarioTests --- .../java/net/hostsharing/hsadminng/hs/scenarios/UseCase.java | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/test/java/net/hostsharing/hsadminng/hs/scenarios/UseCase.java b/src/test/java/net/hostsharing/hsadminng/hs/scenarios/UseCase.java index fc8000c7..01c5dede 100644 --- a/src/test/java/net/hostsharing/hsadminng/hs/scenarios/UseCase.java +++ b/src/test/java/net/hostsharing/hsadminng/hs/scenarios/UseCase.java @@ -160,7 +160,6 @@ public abstract class UseCase> { .GET() .uri(new URI("http://localhost:" + testSuite.port + uriPath)) .header("current-subject", ScenarioTest.RUN_AS_USER) - .header("Authorization", "test") // FIXME: encode current-subject .timeout(seconds(10)) .build(); final var response = client.send(request, BodyHandlers.ofString()); @@ -176,7 +175,6 @@ public abstract class UseCase> { .uri(new URI("http://localhost:" + testSuite.port + uriPath)) .header("Content-Type", "application/json") .header("current-subject", ScenarioTest.RUN_AS_USER) - .header("Authorization", "test") // FIXME: encode current-subject .timeout(seconds(10)) .build(); final var response = client.send(request, BodyHandlers.ofString()); @@ -192,7 +190,6 @@ public abstract class UseCase> { .uri(new URI("http://localhost:" + testSuite.port + uriPath)) .header("Content-Type", "application/json") .header("current-subject", ScenarioTest.RUN_AS_USER) - .header("Authorization", "test") // FIXME: encode current-subject .timeout(seconds(10)) .build(); final var response = client.send(request, BodyHandlers.ofString()); @@ -207,7 +204,6 @@ public abstract class UseCase> { .uri(new URI("http://localhost:" + testSuite.port + uriPath)) .header("Content-Type", "application/json") .header("current-subject", ScenarioTest.RUN_AS_USER) - .header("Authorization", "test") // FIXME: encode current-subject .timeout(seconds(10)) .build(); final var response = client.send(request, BodyHandlers.ofString());