|
@@ -64,6 +64,7 @@ class CockpitCurrentEventsControllerTest {
|
|
|
.andExpect(jsonPath("$.data.requestId").value("current-warnings-001"))
|
|
.andExpect(jsonPath("$.data.requestId").value("current-warnings-001"))
|
|
|
.andExpect(jsonPath("$.data.apiVersion").value("v1"))
|
|
.andExpect(jsonPath("$.data.apiVersion").value("v1"))
|
|
|
.andExpect(jsonPath("$.data.readOnly").value(true))
|
|
.andExpect(jsonPath("$.data.readOnly").value(true))
|
|
|
|
|
+ .andExpect(jsonPath("$.data.freshness").value("CURRENT"))
|
|
|
.andExpect(jsonPath("$.data.displayName").value("当前预警"))
|
|
.andExpect(jsonPath("$.data.displayName").value("当前预警"))
|
|
|
.andExpect(jsonPath("$.data.timezone").value("Asia/Shanghai"))
|
|
.andExpect(jsonPath("$.data.timezone").value("Asia/Shanghai"))
|
|
|
.andExpect(jsonPath("$.data.mode").value("WARNING"))
|
|
.andExpect(jsonPath("$.data.mode").value("WARNING"))
|
|
@@ -197,6 +198,7 @@ class CockpitCurrentEventsControllerTest {
|
|
|
.andExpect(jsonPath("$.data.sections.events.reason").value("NO_EVENTS"))
|
|
.andExpect(jsonPath("$.data.sections.events.reason").value("NO_EVENTS"))
|
|
|
.andExpect(jsonPath("$.data.sections.events.data").value(nullValue()))
|
|
.andExpect(jsonPath("$.data.sections.events.data").value(nullValue()))
|
|
|
.andExpect(jsonPath("$.data.sections.workOrders.state").value("EMPTY"))
|
|
.andExpect(jsonPath("$.data.sections.workOrders.state").value("EMPTY"))
|
|
|
|
|
+ .andExpect(jsonPath("$.data.freshness").value("EMPTY"))
|
|
|
.andExpect(jsonPath("$.data.mapFilter.deviceCodes", hasSize(0)));
|
|
.andExpect(jsonPath("$.data.mapFilter.deviceCodes", hasSize(0)));
|
|
|
}
|
|
}
|
|
|
|
|
|