-
Notifications
You must be signed in to change notification settings - Fork 524
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SerializationTest is failing on windows #3113
Comments
@Sintivrousai : Thanks for taking care of this issue. It looks like I missed updating this test while addressing PR review comments on #3014 . I think this test is trying to test invalid scenario. It's trying to serialize a multiline YAML scalar value with platform specific line endings ( I think we should update the test to not use - 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") Could you please check if test passes on your machine after making these changes? |
Signed-off-by: Sintivrousai <[email protected]>
Your adjustment worked. I have made a pull request. |
Part of #1338
SerializationTest is failing after the latest commits.
[ERROR] Failures:
[ERROR] SerializationTest$MultiLineStringsSerializedToScalarYamlBlocks.whenStringEndingWithNewline_thenAddBlockIndicatorInSerializedObject:240
I would like to be assigned for the issue since I have already done some research.
The text was updated successfully, but these errors were encountered: