Skip to content

Commit 0e8c0e7

Browse files
committed
Use a different advanced config in test
[Why] After PR rabbitmq/rabbitmq-server#14359 RabbitMQ verifies that an authN/authZ plugin is enabled, if set in the configuration. We relied on the old behaviour that simply accepted the configuration. We have to change our test because the configuration is not valid anymore since 4.2.0
1 parent 7e3e52d commit 0e8c0e7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

system_tests/system_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ cluster_keepalive_interval = 10000`
223223
By("updating the advanced.config file when advancedConfig are modified", func() {
224224
Expect(updateRabbitmqCluster(ctx, rmqClusterClient, cluster.Name, cluster.Namespace, func(cluster *rabbitmqv1beta1.RabbitmqCluster) {
225225
cluster.Spec.Rabbitmq.AdvancedConfig = `[
226-
{rabbit, [{auth_backends, [rabbit_auth_backend_ldap]}]}
226+
{kernel, [{net_ticktime, 61}]}
227227
].`
228228
})).To(Succeed())
229229

@@ -237,7 +237,7 @@ cluster_keepalive_interval = 10000`
237237
"/etc/rabbitmq/advanced.config",
238238
)
239239
Expect(err).NotTo(HaveOccurred())
240-
Expect(string(output)).Should(ContainSubstring("[\n {rabbit, [{auth_backends, [rabbit_auth_backend_ldap]}]}\n]."))
240+
Expect(string(output)).Should(ContainSubstring("[\n {kernel, [{net_ticktime, 61}]}\n]."))
241241
})
242242

243243
By("updating the rabbitmq-env.conf file when additionalConfig are modified", func() {

0 commit comments

Comments
 (0)