From 8d1558f61b0aff96aa384e46e7c59caca3385306 Mon Sep 17 00:00:00 2001 From: Corneil du Plessis Date: Tue, 22 Oct 2024 12:10:05 +0200 Subject: [PATCH] Fix test with added definition for covering all tasks/executions and tasks/thinexecutions name search scenarios. --- .../server/controller/TaskExecutionControllerTests.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spring-cloud-dataflow-server-core/src/test/java/org/springframework/cloud/dataflow/server/controller/TaskExecutionControllerTests.java b/spring-cloud-dataflow-server-core/src/test/java/org/springframework/cloud/dataflow/server/controller/TaskExecutionControllerTests.java index 6d625f6b99..3b24e2b22d 100644 --- a/spring-cloud-dataflow-server-core/src/test/java/org/springframework/cloud/dataflow/server/controller/TaskExecutionControllerTests.java +++ b/spring-cloud-dataflow-server-core/src/test/java/org/springframework/cloud/dataflow/server/controller/TaskExecutionControllerTests.java @@ -420,7 +420,7 @@ void getDefinitionsWithLastExecution() throws Exception { mockMvc.perform(get("/tasks/definitions").accept(MediaType.APPLICATION_JSON)) .andExpect(status().isOk()) .andDo(print()) - .andExpect(jsonPath("$._embedded.taskDefinitionResourceList", hasSize(1))); + .andExpect(jsonPath("$._embedded.taskDefinitionResourceList", hasSize(2))); } @Test void getExecutionsByNameNotFound() throws Exception {