From 61aa0431b9185b4fc5f4d9a17289670a7ced5b70 Mon Sep 17 00:00:00 2001 From: "alvaro.gonzalez" Date: Wed, 7 Aug 2024 14:54:57 +0300 Subject: [PATCH] Fix tests --- .../ebi/tsc/tesk/k8s/convert/TesKubernetesConverterTest.java | 2 +- src/test/resources/fromTesToK8s/taskmaster_param.json | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/test/java/uk/ac/ebi/tsc/tesk/k8s/convert/TesKubernetesConverterTest.java b/src/test/java/uk/ac/ebi/tsc/tesk/k8s/convert/TesKubernetesConverterTest.java index f2317d9..fd644d3 100644 --- a/src/test/java/uk/ac/ebi/tsc/tesk/k8s/convert/TesKubernetesConverterTest.java +++ b/src/test/java/uk/ac/ebi/tsc/tesk/k8s/convert/TesKubernetesConverterTest.java @@ -257,7 +257,7 @@ public void fromTesTaskToK8sConfigMap() throws IOException { taskMasterInputJson.extractingJsonPathNumberValue("resources.disk_gb").isEqualTo(100.0); - //taskMasterInputJson.isEqualToJson(new ClassPathResource("fromTesToK8s/taskmaster_param.json"), JSONCompareMode.NON_EXTENSIBLE); + taskMasterInputJson.isEqualToJson(new ClassPathResource("fromTesToK8s/taskmaster_param.json"), JSONCompareMode.NON_EXTENSIBLE); } diff --git a/src/test/resources/fromTesToK8s/taskmaster_param.json b/src/test/resources/fromTesToK8s/taskmaster_param.json index 91d4ee2..7505ebd 100644 --- a/src/test/resources/fromTesToK8s/taskmaster_param.json +++ b/src/test/resources/fromTesToK8s/taskmaster_param.json @@ -71,7 +71,7 @@ "memory": "16106127360" }, "limits": { - "cpu": 4 + "cpu": "4" } }, "volumeMounts": [ @@ -146,6 +146,9 @@ "requests": { "cpu": "4", "memory": "16106127360" + }, + "limits": { + "cpu": "4" } }, "workingDir": "/starthere",