From e3e296f2e881cc97d07aa252f3db1a0dc41b8d4b Mon Sep 17 00:00:00 2001 From: Daniele Date: Thu, 29 Feb 2024 18:58:20 +0100 Subject: [PATCH] removing embedded namespace in tls system test (#766) --- system_tests/tls_system_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/system_tests/tls_system_test.go b/system_tests/tls_system_test.go index df20e912..0cbdd3cc 100644 --- a/system_tests/tls_system_test.go +++ b/system_tests/tls_system_test.go @@ -30,7 +30,7 @@ var _ = Describe("RabbitMQ Cluster with TLS enabled", func() { BeforeEach(func() { tlsSecretName = fmt.Sprintf("rmq-test-cert-%v", uuid.New()) - _, _, _ = createTLSSecret(tlsSecretName, namespace, "tls-cluster.rabbitmq-system.svc") + _, _, _ = createTLSSecret(tlsSecretName, namespace, "tls-cluster." + namespace + ".svc") patchBytes, _ := fixtures.ReadFile("fixtures/patch-test-ca.yaml") _, err := kubectl( @@ -60,7 +60,7 @@ var _ = Describe("RabbitMQ Cluster with TLS enabled", func() { StringData: map[string]string{ "username": user, "password": pass, - "uri": "https://tls-cluster.rabbitmq-system.svc:15671", + "uri": "https://tls-cluster." + namespace + ".svc:15671", }, } Expect(k8sClient.Create(ctx, connectionSecret, &client.CreateOptions{})).To(Succeed())