From b49d62f4d447a9673e7a4c6a43e063d57fbfc126 Mon Sep 17 00:00:00 2001 From: Piotr Gawron <p.gawron@atcomp.pl> Date: Wed, 19 Mar 2025 09:49:58 +0100 Subject: [PATCH] fix web tests --- .../test/java/lcsb/mapviewer/web/api/NewApiDocs.java | 12 ++++++++++++ .../web/api/plugin/NewPluginControllerTest.java | 1 + 2 files changed, 13 insertions(+) diff --git a/web/src/test/java/lcsb/mapviewer/web/api/NewApiDocs.java b/web/src/test/java/lcsb/mapviewer/web/api/NewApiDocs.java index ad3c9406c..b157a93fc 100644 --- a/web/src/test/java/lcsb/mapviewer/web/api/NewApiDocs.java +++ b/web/src/test/java/lcsb/mapviewer/web/api/NewApiDocs.java @@ -1315,6 +1315,10 @@ public class NewApiDocs { fieldWithPath(prefix + "id") .description("job id") .type(JsonFieldType.NUMBER), + fieldWithPath(prefix + "progress") + .description("optional info about job progress (0-100)") + .optional() + .type(JsonFieldType.NUMBER), fieldWithPath(prefix + "jobType") .description("job type") .type(JsonFieldType.STRING), @@ -1329,6 +1333,14 @@ public class NewApiDocs { .description("when the job execution finished") .optional() .type(JsonFieldType.STRING), + fieldWithPath(prefix + "externalObjectClass") + .description("if job is attached to object here is the type of the object") + .optional() + .type(JsonFieldType.STRING), + fieldWithPath(prefix + "externalObjectId") + .description("if job is attached to object here is the id of the object") + .optional() + .type(JsonFieldType.NUMBER), fieldWithPath(prefix + "priority") .description("job priority (1 is the highest priority)") .type(JsonFieldType.NUMBER) diff --git a/web/src/test/java/lcsb/mapviewer/web/api/plugin/NewPluginControllerTest.java b/web/src/test/java/lcsb/mapviewer/web/api/plugin/NewPluginControllerTest.java index 7d7ad5c10..d4255f397 100644 --- a/web/src/test/java/lcsb/mapviewer/web/api/plugin/NewPluginControllerTest.java +++ b/web/src/test/java/lcsb/mapviewer/web/api/plugin/NewPluginControllerTest.java @@ -59,6 +59,7 @@ public class NewPluginControllerTest extends ControllerIntegrationTest { public void setUp() throws Exception { objectMapper = newApiResponseSerializer.getObjectMapper(); pluginHashes = new ArrayList<>(); + pluginHashes.add(PLUGIN_HASH); } @After -- GitLab