Find my mistakeserver.expect().withPath("/api/v1/namespaces/ns/configmaps").andReturn(200, new ConfigMapBuilder().withNewMetadata().withName("reload-example").endMetadata().addToData(data).build()).once();Is there a trick to load such config ?
apiVersion: v1kind: ConfigMapmetadata:name: reload-exampledata:application.properties: |-bean.message=Hello World!another.property=value
On Tuesday, May 2, 2017 at 7:28:03 PM UTC+2, cmou...@redhat.com wrote:Hi,I try to figure out in a test case how to set the name of a configMap using the ConfigBuilder but I don't see the method withName(). Is my syntax correct ?new ConfigMapListBuilder().withNewMetadata().withName("reload-example").endMetadata().addNewItem().addToData("KEY","123").and().addNewItem().and().build()).once();RegardsCharles
--
You received this message because you are subscribed to the Google Groups "fabric8" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fabric8+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "fabric8" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fabric8+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "fabric8" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fabric8+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Don't worry about how it's getting serialised, you just need to add using addData with the key (application.properties in this case) and the value (the multiline string something like bean.message=Hello World\nanother.property=value).
Hope that helps...
--
You received this message because you are subscribed to the Google Groups "fabric8" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fabric8+unsubscribe@googlegroups.com.