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 ad3c9406ca953663e2d65d5b662f2c727fe25061..b157a93fc5fc61d0a7185c38db8df4ddc85deb05 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 7d7ad5c1023a5872cea9b14a65a2d51559d27e36..d4255f3975b9915ec29f4ee145ad50da25fc8190 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