Skip to content

Commit c518948

Browse files
committed
Add a test for multi-line values
Because RabbitMQ will include support for multi-lines in the next version
1 parent 7d04dcc commit c518948

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

internal/resource/configmap_test.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -628,6 +628,12 @@ CONSOLE_LOG=new`
628628
})
629629
})
630630
})
631+
632+
It("should parse multi-line config", func() {
633+
instance.Spec.Rabbitmq.AdditionalConfig = "multi_line_value = \"\"\"\nfirst_line\nsecond_line\n\"\"\""
634+
Expect(configMapBuilder.Update(configMap)).To(Succeed())
635+
Expect(configMap.Data["userDefinedConfiguration.conf"]).To(Equal("multi_line_value = \"\"\"\nfirst_line\nsecond_line\n\"\"\"\n"))
636+
})
631637
})
632638

633639
Context("UpdateMayRequireStsRecreate", func() {

0 commit comments

Comments
 (0)