Skip to content

Commit

Permalink
removing embedded namespace in tls system test (#766)
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielePalaia authored Feb 29, 2024
1 parent 645408b commit e3e296f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions system_tests/tls_system_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down Expand Up @@ -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())
Expand Down

0 comments on commit e3e296f

Please sign in to comment.