Skip to content

Commit

Permalink
SerializationTest is failing eclipse-jkube#3113
Browse files Browse the repository at this point in the history
Signed-off-by: Sintivrousai <[email protected]>
  • Loading branch information
Sintivrousai committed May 30, 2024
1 parent 94f2303 commit 9eabc5d
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -224,12 +224,12 @@ void saveYaml_withConfigMap_savesFile(@TempDir Path targetDir) throws IOExceptio
class MultiLineStringsSerializedToScalarYamlBlocks {
@Test
@DisplayName("string ends with newline, then add | to use block style in serialized object")
void whenStringEndingWithNewline_thenAddBlockIndicatorInSerializedObject(@TempDir Path targetDir) throws IOException {
void unmarshal_whenStringEndingWithNewline_thenAddBlockIndicatorInSerializedObject(@TempDir Path targetDir) throws IOException {
// Given
final File targetFile = targetDir.resolve("cm.yaml").toFile();
final ConfigMap source = new ConfigMapBuilder()
.withNewMetadata()
.addToAnnotations("proxy.istio.io/config", String.format("proxyMetadata:%n ISTIO_META_DNS_CAPTURE: \"false\"%nholdApplicationUntilProxyStarts: true\n"))
.addToAnnotations("proxy.istio.io/config", "proxyMetadata:\n ISTIO_META_DNS_CAPTURE: \"false\"\nholdApplicationUntilProxyStarts: true\n")
.endMetadata()
.build();
// When
Expand Down

0 comments on commit 9eabc5d

Please sign in to comment.