diff --git a/jkube-kit/common-it/src/main/java/org/eclipse/jkube/kit/common/ResourceVerify.java b/jkube-kit/common-it/src/main/java/org/eclipse/jkube/kit/common/ResourceVerify.java index f943b54416..65414b1a06 100644 --- a/jkube-kit/common-it/src/main/java/org/eclipse/jkube/kit/common/ResourceVerify.java +++ b/jkube-kit/common-it/src/main/java/org/eclipse/jkube/kit/common/ResourceVerify.java @@ -88,7 +88,7 @@ public static Object readWithPath(File file, String path) throws IOException { } public static String readFile(File path) throws IOException { - return new String(FileCopyUtils.copyToByteArray(Files.newInputStream(path.toPath())), Charset.defaultCharset()); + return new String(FileCopyUtils.copyToByteArray(Files.newInputStream(path.toPath())), Charset.defaultCharset()).replaceAll(System.lineSeparator(), "\n"); } public static TestContext createTestContext() {