|
@@ -116,7 +116,7 @@ class ExamSprintReportControllerWebMvcTest {
|
|
|
Instant.parse("2026-01-01T00:00:00Z"),
|
|
Instant.parse("2026-01-01T00:00:00Z"),
|
|
|
Instant.parse("2026-01-01T00:01:00Z"),
|
|
Instant.parse("2026-01-01T00:01:00Z"),
|
|
|
Instant.parse("2026-01-02T00:00:00Z"),
|
|
Instant.parse("2026-01-02T00:00:00Z"),
|
|
|
- "https://dcjxbtest.blob.core.chinacloudapi.cn/exam-assault-report/exam-sprint-outlook-report-report-sync-001.pdf"));
|
|
|
|
|
|
|
+ "https://dcjxbtest.blob.core.chinacloudapi.cn/report/exam-sprint-outlook-report-report-sync-001.pdf"));
|
|
|
|
|
|
|
|
String requestJson = requestPayloadJson("requests/exam-sprint-outlook-report-request.json");
|
|
String requestJson = requestPayloadJson("requests/exam-sprint-outlook-report-request.json");
|
|
|
|
|
|
|
@@ -126,7 +126,7 @@ class ExamSprintReportControllerWebMvcTest {
|
|
|
.andExpect(status().isOk())
|
|
.andExpect(status().isOk())
|
|
|
.andExpect(jsonPath("$.data.reportType").value("OUTLOOK"))
|
|
.andExpect(jsonPath("$.data.reportType").value("OUTLOOK"))
|
|
|
.andExpect(jsonPath("$.data.generationStatus").value("SUCCESS"))
|
|
.andExpect(jsonPath("$.data.generationStatus").value("SUCCESS"))
|
|
|
- .andExpect(jsonPath("$.data.downloadUrl").value("https://dcjxbtest.blob.core.chinacloudapi.cn/exam-assault-report/exam-sprint-outlook-report-report-sync-001.pdf"));
|
|
|
|
|
|
|
+ .andExpect(jsonPath("$.data.downloadUrl").value("https://dcjxbtest.blob.core.chinacloudapi.cn/report/exam-sprint-outlook-report-report-sync-001.pdf"));
|
|
|
|
|
|
|
|
verify(applicationService).createOutlookReportSync(any());
|
|
verify(applicationService).createOutlookReportSync(any());
|
|
|
}
|
|
}
|
|
@@ -140,7 +140,7 @@ class ExamSprintReportControllerWebMvcTest {
|
|
|
Instant.parse("2026-01-01T00:00:00Z"),
|
|
Instant.parse("2026-01-01T00:00:00Z"),
|
|
|
Instant.parse("2026-01-01T00:01:00Z"),
|
|
Instant.parse("2026-01-01T00:01:00Z"),
|
|
|
Instant.parse("2026-01-02T00:00:00Z"),
|
|
Instant.parse("2026-01-02T00:00:00Z"),
|
|
|
- "https://dcjxbtest.blob.core.chinacloudapi.cn/exam-assault-report/exam-sprint-achievement-report-report-sync-002.pdf"));
|
|
|
|
|
|
|
+ "https://dcjxbtest.blob.core.chinacloudapi.cn/report/exam-sprint-achievement-report-report-sync-002.pdf"));
|
|
|
|
|
|
|
|
String requestJson = requestPayloadJson("requests/exam-sprint-achievement-report-request.json");
|
|
String requestJson = requestPayloadJson("requests/exam-sprint-achievement-report-request.json");
|
|
|
|
|
|
|
@@ -150,7 +150,7 @@ class ExamSprintReportControllerWebMvcTest {
|
|
|
.andExpect(status().isOk())
|
|
.andExpect(status().isOk())
|
|
|
.andExpect(jsonPath("$.data.reportType").value("ACHIEVEMENT"))
|
|
.andExpect(jsonPath("$.data.reportType").value("ACHIEVEMENT"))
|
|
|
.andExpect(jsonPath("$.data.generationStatus").value("SUCCESS"))
|
|
.andExpect(jsonPath("$.data.generationStatus").value("SUCCESS"))
|
|
|
- .andExpect(jsonPath("$.data.downloadUrl").value("https://dcjxbtest.blob.core.chinacloudapi.cn/exam-assault-report/exam-sprint-achievement-report-report-sync-002.pdf"));
|
|
|
|
|
|
|
+ .andExpect(jsonPath("$.data.downloadUrl").value("https://dcjxbtest.blob.core.chinacloudapi.cn/report/exam-sprint-achievement-report-report-sync-002.pdf"));
|
|
|
|
|
|
|
|
verify(applicationService).createAchievementReportSync(any());
|
|
verify(applicationService).createAchievementReportSync(any());
|
|
|
}
|
|
}
|
|
@@ -188,7 +188,7 @@ class ExamSprintReportControllerWebMvcTest {
|
|
|
Instant.parse("2026-01-01T00:00:00Z"),
|
|
Instant.parse("2026-01-01T00:00:00Z"),
|
|
|
Instant.parse("2026-01-01T00:05:00Z"),
|
|
Instant.parse("2026-01-01T00:05:00Z"),
|
|
|
Instant.parse("2026-01-02T00:00:00Z"),
|
|
Instant.parse("2026-01-02T00:00:00Z"),
|
|
|
- "https://dcjxbtest.blob.core.chinacloudapi.cn/exam-assault-report/exam-sprint-outlook-report-report-001.pdf",
|
|
|
|
|
|
|
+ "https://dcjxbtest.blob.core.chinacloudapi.cn/report/exam-sprint-outlook-report-report-001.pdf",
|
|
|
null));
|
|
null));
|
|
|
given(applicationService.downloadReport("report-001")).willReturn(new ReportDownloadContent(
|
|
given(applicationService.downloadReport("report-001")).willReturn(new ReportDownloadContent(
|
|
|
"exam-sprint-outlook-report-report-001.pdf",
|
|
"exam-sprint-outlook-report-report-001.pdf",
|
|
@@ -198,7 +198,7 @@ class ExamSprintReportControllerWebMvcTest {
|
|
|
mockMvc.perform(get("/api/exam-sprint/reports/{reportId}", "report-001"))
|
|
mockMvc.perform(get("/api/exam-sprint/reports/{reportId}", "report-001"))
|
|
|
.andExpect(status().isOk())
|
|
.andExpect(status().isOk())
|
|
|
.andExpect(jsonPath("$.data.reportId").value("report-001"))
|
|
.andExpect(jsonPath("$.data.reportId").value("report-001"))
|
|
|
- .andExpect(jsonPath("$.data.downloadUrl").value("https://dcjxbtest.blob.core.chinacloudapi.cn/exam-assault-report/exam-sprint-outlook-report-report-001.pdf"));
|
|
|
|
|
|
|
+ .andExpect(jsonPath("$.data.downloadUrl").value("https://dcjxbtest.blob.core.chinacloudapi.cn/report/exam-sprint-outlook-report-report-001.pdf"));
|
|
|
|
|
|
|
|
mockMvc.perform(get("/api/exam-sprint/reports/{reportId}/download", "report-001"))
|
|
mockMvc.perform(get("/api/exam-sprint/reports/{reportId}/download", "report-001"))
|
|
|
.andExpect(status().isOk())
|
|
.andExpect(status().isOk())
|