fix(webserver): export test with correct path + DateField for execution export (#13197)

This commit is contained in:
YannC
2025-11-27 15:43:03 +01:00
committed by GitHub
parent 27bcb9c347
commit 546039e30a
4 changed files with 9 additions and 8 deletions

View File

@@ -520,7 +520,7 @@ class ExecutionControllerTest {
createAndExecuteFlow();
HttpResponse<byte[]> response = client.toBlocking().exchange(
HttpRequest.GET("/api/v1/main/executions/export"),
HttpRequest.GET("/api/v1/main/executions/export/by-query/csv"),
byte[].class
);

View File

@@ -1115,12 +1115,13 @@ class FlowControllerTest {
);
HttpResponse<byte[]> response = client.toBlocking().exchange(
HttpRequest.GET(FLOW_PATH + "/export"),
HttpRequest.GET(FLOW_PATH + "/export/by-query/csv"),
byte[].class
);
assertThat(response.getStatus().getCode()).isEqualTo(HttpStatus.OK.getCode());
assertThat(response.getHeaders().get("Content-Disposition")).contains("attachment; filename=flows.csv");
String csv = new String(response.body());
assertThat(csv).contains("id");
assertThat(csv).contains(f1.getId());

View File

@@ -623,7 +623,7 @@ class TriggerControllerTest {
jdbcTriggerRepository.save(t2);
HttpResponse<byte[]> response = client.toBlocking().exchange(
HttpRequest.GET(TRIGGER_PATH + "/export"),
HttpRequest.GET(TRIGGER_PATH + "/export/by-query/csv"),
byte[].class
);