|
@@ -52,7 +52,7 @@ class CockpitOverviewInfrastructureControllerTest {
|
|
|
mockMvc.perform(get("/api/cockpit/v1/overview/infrastructure"))
|
|
mockMvc.perform(get("/api/cockpit/v1/overview/infrastructure"))
|
|
|
.andExpect(status().isOk())
|
|
.andExpect(status().isOk())
|
|
|
.andExpect(jsonPath("$.data.totals.facilityCount").value(3))
|
|
.andExpect(jsonPath("$.data.totals.facilityCount").value(3))
|
|
|
- .andExpect(jsonPath("$.data.totals.smartDeviceCount").value(14))
|
|
|
|
|
|
|
+ .andExpect(jsonPath("$.data.totals.smartDeviceCount").value(12))
|
|
|
.andExpect(jsonPath("$.data.industries", hasSize(4)))
|
|
.andExpect(jsonPath("$.data.industries", hasSize(4)))
|
|
|
.andExpect(jsonPath("$.data.industries[0].code").value("GAS"))
|
|
.andExpect(jsonPath("$.data.industries[0].code").value("GAS"))
|
|
|
.andExpect(jsonPath("$.data.industries[0].facilityCount").value(0))
|
|
.andExpect(jsonPath("$.data.industries[0].facilityCount").value(0))
|
|
@@ -67,7 +67,7 @@ class CockpitOverviewInfrastructureControllerTest {
|
|
|
.andExpect(jsonPath("$.data.industries[2].deviceTypes[0].count").value(4))
|
|
.andExpect(jsonPath("$.data.industries[2].deviceTypes[0].count").value(4))
|
|
|
.andExpect(jsonPath("$.data.industries[2].deviceTypes[1].code").value("SEWAGE_ENVIRONMENT_SENSOR"))
|
|
.andExpect(jsonPath("$.data.industries[2].deviceTypes[1].code").value("SEWAGE_ENVIRONMENT_SENSOR"))
|
|
|
.andExpect(jsonPath("$.data.industries[2].deviceTypes[1].count").value(5))
|
|
.andExpect(jsonPath("$.data.industries[2].deviceTypes[1].count").value(5))
|
|
|
- .andExpect(jsonPath("$.data.excluded.unknownTypeCount").value(8))
|
|
|
|
|
|
|
+ .andExpect(jsonPath("$.data.excluded.unknownTypeCount").value(10))
|
|
|
.andExpect(jsonPath("$.data.excluded.typeKindMismatchCount").value(5));
|
|
.andExpect(jsonPath("$.data.excluded.typeKindMismatchCount").value(5));
|
|
|
}
|
|
}
|
|
|
|
|
|