You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@activemq.apache.org by gt...@apache.org on 2022/12/02 14:34:00 UTC

[activemq-artemis] branch main updated: ARTEMIS-3168 - fix contention on pem creation and tidy up system properties

This is an automated email from the ASF dual-hosted git repository.

gtully pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/activemq-artemis.git


The following commit(s) were added to refs/heads/main by this push:
     new d95321bf83 ARTEMIS-3168 - fix contention on pem creation and tidy up system properties
d95321bf83 is described below

commit d95321bf83f2cbeff72653bdaee1a025b6aa890d
Author: Gary Tully <ga...@gmail.com>
AuthorDate: Fri Dec 2 14:33:40 2022 +0000

    ARTEMIS-3168 - fix contention on pem creation and tidy up system properties
---
 .../security/jaas/kubernetes/client/KubernetesClientImplTest.java    | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/artemis-server/src/test/java/org/apache/activemq/artemis/spi/core/security/jaas/kubernetes/client/KubernetesClientImplTest.java b/artemis-server/src/test/java/org/apache/activemq/artemis/spi/core/security/jaas/kubernetes/client/KubernetesClientImplTest.java
index fe460cecad..2e7c9f1e26 100644
--- a/artemis-server/src/test/java/org/apache/activemq/artemis/spi/core/security/jaas/kubernetes/client/KubernetesClientImplTest.java
+++ b/artemis-server/src/test/java/org/apache/activemq/artemis/spi/core/security/jaas/kubernetes/client/KubernetesClientImplTest.java
@@ -60,6 +60,7 @@ public class KubernetesClientImplTest {
    public static void startServer() {
       ConfigurationProperties.dynamicallyCreateCertificateAuthorityCertificate(true);
       ConfigurationProperties.directoryToSaveDynamicSSLCertificate("target/test-classes");
+      ConfigurationProperties.preventCertificateDynamicUpdate(true);
       ConfigurationProperties.proactivelyInitialiseTLS(true);
 
       mockServer = ClientAndServer.startClientAndServer(PortFactory.findFreePort());
@@ -111,6 +112,10 @@ public class KubernetesClientImplTest {
 
    @AfterClass
    public static void stopServer() {
+      System.clearProperty("KUBERNETES_SERVICE_HOST");
+      System.clearProperty("KUBERNETES_SERVICE_PORT");
+      System.clearProperty("KUBERNETES_TOKEN_PATH");
+      System.clearProperty("KUBERNETES_CA_PATH");
       mockServer.stop();
    }