From 586cedc84410e629265ece2ec76018ac0ad8ad60 Mon Sep 17 00:00:00 2001 From: Jakub Stejskal Date: Mon, 15 Jan 2024 13:47:34 +0100 Subject: [PATCH] Some fixes Signed-off-by: Jakub Stejskal --- src/main/java/io/odh/test/framework/logs/LogCollector.java | 2 +- src/main/java/io/odh/test/platform/KubeUtils.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/io/odh/test/framework/logs/LogCollector.java b/src/main/java/io/odh/test/framework/logs/LogCollector.java index e67364d3..5cb5e37c 100644 --- a/src/main/java/io/odh/test/framework/logs/LogCollector.java +++ b/src/main/java/io/odh/test/framework/logs/LogCollector.java @@ -52,7 +52,7 @@ private static void writeLogsFromPods(Path logpath, Pod pod) { private static void writePodsDescription(Path logpath, Pod pod) { try { LOGGER.debug("Get description of pod {}/{}", pod.getMetadata().getNamespace(), pod.getMetadata().getName()); - Files.writeString(logpath.resolve(pod.getMetadata().getNamespace() + "-" + pod.getMetadata().getName() + ".log"), + Files.writeString(logpath.resolve(pod.getMetadata().getNamespace() + "-" + pod.getMetadata().getName() + ".describe.log"), ResourceManager.getKubeCmdClient().namespace(pod.getMetadata().getNamespace()).describe(pod.getKind(), pod.getMetadata().getName())); } catch (IOException e) { LOGGER.warn("Cannot get description of pod {}/{}", pod.getMetadata().getNamespace(), pod.getMetadata().getName()); diff --git a/src/main/java/io/odh/test/platform/KubeUtils.java b/src/main/java/io/odh/test/platform/KubeUtils.java index 653c8977..04698544 100644 --- a/src/main/java/io/odh/test/platform/KubeUtils.java +++ b/src/main/java/io/odh/test/platform/KubeUtils.java @@ -45,7 +45,7 @@ public static void deleteDefaultDSCI() { } public static void waitForInstallPlan(String namespace, String csvName) { - TestUtils.waitFor("Install paln with new version", TestConstants.GLOBAL_POLL_INTERVAL_SHORT, TestConstants.GLOBAL_TIMEOUT, () -> { + TestUtils.waitFor("Install plan with new version", TestConstants.GLOBAL_POLL_INTERVAL_SHORT, TestConstants.GLOBAL_TIMEOUT, () -> { try { InstallPlan ip = ResourceManager.getClient().getNonApprovedInstallPlan(namespace, csvName); LOGGER.debug("Found InstallPlan {} - {}", ip.getMetadata().getName(), ip.getSpec().getClusterServiceVersionNames());