mirror of
https://github.com/kestra-io/kestra.git
synced 2025-12-19 18:05:41 -05:00
fix(webserver): export test with correct path + DateField for execution export (#13197)
This commit is contained in:
@@ -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
|
||||
);
|
||||
|
||||
|
||||
@@ -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());
|
||||
|
||||
@@ -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
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user