ARTEMIS-3168 - fix contention on pem creation and tidy up system properties

This commit is contained in:
Gary Tully 2022-12-02 14:33:40 +00:00
parent 5633de9cb0
commit d95321bf83
1 changed files with 5 additions and 0 deletions

View File

@ -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();
}