@@ -169,6 +169,21 @@ var _ = Context("Services", func() {
169169 })
170170 })
171171
172+ When ("rabbitmq_multi_dc_replication is enabled" , func () {
173+ It ("opens port for streams" , func () {
174+ instance .Spec .Rabbitmq .AdditionalPlugins = []rabbitmqv1beta1.Plugin {"rabbitmq_multi_dc_replication" }
175+ Expect (serviceBuilder .Update (svc )).To (Succeed ())
176+ Expect (svc .Spec .Ports ).To (ContainElements ([]corev1.ServicePort {
177+ {
178+ Name : "streams" ,
179+ Protocol : corev1 .ProtocolTCP ,
180+ Port : 5551 ,
181+ TargetPort : intstr .FromInt (5551 ),
182+ },
183+ }))
184+ })
185+ })
186+
172187 When ("DisableNonTLSListeners is set to true" , func () {
173188 It ("only exposes tls ports in the service" , func () {
174189 instance .Spec .TLS .DisableNonTLSListeners = true
@@ -234,6 +249,7 @@ var _ = Context("Services", func() {
234249 Entry ("STOMP" , "rabbitmq_stomp" , "stomps" , 61614 ),
235250 Entry ("STOMP-over-WebSockets" , "rabbitmq_web_stomp" , "web-stomp-tls" , 15673 ),
236251 Entry ("Stream" , "rabbitmq_stream" , "streams" , 5551 ),
252+ Entry ("OSR" , "rabbitmq_multi_dc_replication" , "streams" , 5551 ),
237253 )
238254 })
239255 })
@@ -466,6 +482,7 @@ var _ = Context("Services", func() {
466482 Entry ("STOMP" , "rabbitmq_stomp" , "stomp" , 61613 ),
467483 Entry ("STOMP-over-WebSockets" , "rabbitmq_web_stomp" , "web-stomp" , 15674 ),
468484 Entry ("Stream" , "rabbitmq_stream" , "stream" , 5552 ),
485+ Entry ("OSR" , "rabbitmq_multi_dc_replication" , "stream" , 5552 ),
469486 )
470487
471488 It ("updates the service type from ClusterIP to NodePort" , func () {
0 commit comments