From 5633de9cb0e0b4c35cf453eac4bef52232039517 Mon Sep 17 00:00:00 2001 From: Gary Tully Date: Fri, 2 Dec 2022 13:21:45 +0000 Subject: [PATCH] ARTEMIS-3168 - fix test dependency on login.config system property being set --- .../spi/core/security/jaas/KubernetesLoginModuleTest.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/artemis-server/src/test/java/org/apache/activemq/artemis/spi/core/security/jaas/KubernetesLoginModuleTest.java b/artemis-server/src/test/java/org/apache/activemq/artemis/spi/core/security/jaas/KubernetesLoginModuleTest.java index be1aede8ea..f14e5b8132 100644 --- a/artemis-server/src/test/java/org/apache/activemq/artemis/spi/core/security/jaas/KubernetesLoginModuleTest.java +++ b/artemis-server/src/test/java/org/apache/activemq/artemis/spi/core/security/jaas/KubernetesLoginModuleTest.java @@ -139,6 +139,7 @@ public class KubernetesLoginModuleTest { private Map getDefaultOptions() { return Map.of(K8S_ROLE_FILE_PROP_NAME, - "k8s-roles.properties"); + // java.security.auth.login.config not set to provide baseDir so configure full path + KubernetesLoginModuleTest.class.getClassLoader().getResource("k8s-roles.properties").getPath()); } }