From 2e22e22a2fe41e42df274c992adaa0ee06567626 Mon Sep 17 00:00:00 2001 From: Radim Kubis Date: Thu, 19 Dec 2024 11:30:53 +0100 Subject: [PATCH] Update(tests/OwnerOnly): Environment variable with dashes --- .../auth/features/ArtifactOwnerOnlyAuthorization.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/test/java/io/apicurio/registry/systemtests/auth/features/ArtifactOwnerOnlyAuthorization.java b/src/test/java/io/apicurio/registry/systemtests/auth/features/ArtifactOwnerOnlyAuthorization.java index c1daa6703..a78d2d747 100644 --- a/src/test/java/io/apicurio/registry/systemtests/auth/features/ArtifactOwnerOnlyAuthorization.java +++ b/src/test/java/io/apicurio/registry/systemtests/auth/features/ArtifactOwnerOnlyAuthorization.java @@ -91,9 +91,10 @@ public static void testArtifactOwnerOnlyAuthorization(ApicurioRegistry3 apicurio // ENABLE ARTIFACT OWNER ONLY AUTHORIZATION AND TEST IT // Set environment variable REGISTRY_AUTH_OBAC_ENABLED of deployment to true ApicurioRegistryUtils.createOrReplaceEnvVar(apicurioRegistry, new Env() {{ - setName("APICURIO_AUTH_OWNER_ONLY_AUTHORIZATION"); + setName("APICURIO_AUTH_OWNER-ONLY-AUTHORIZATION"); setValue("true"); }}); + // Define artifact ID for the owner part testArtifactId = succeedId + "true-by-owner"; // Wait for API availability @@ -124,7 +125,7 @@ public static void testArtifactOwnerOnlyAuthorization(ApicurioRegistry3 apicurio // DISABLE ARTIFACT OWNER ONLY AUTHORIZATION AND TEST IT // Set environment variable REGISTRY_AUTH_OBAC_ENABLED of deployment to false ApicurioRegistryUtils.createOrReplaceEnvVar(apicurioRegistry, new Env() {{ - setName("APICURIO_AUTH_OWNER_ONLY_AUTHORIZATION"); + setName("APICURIO_AUTH_OWNER-ONLY-AUTHORIZATION"); setValue("false"); }}); // Define artifact ID for the owner part