|
@@ -268,7 +268,7 @@ class AdminControllerTest extends GatewayBaseTest {
|
|
|
.header("Authorization", "Bearer " + adminToken()))
|
|
.header("Authorization", "Bearer " + adminToken()))
|
|
|
.andExpect(status().isOk())
|
|
.andExpect(status().isOk())
|
|
|
.andExpect(jsonPath("$.code").value(200))
|
|
.andExpect(jsonPath("$.code").value(200))
|
|
|
- .andExpect(jsonPath("$.data").isArray());
|
|
|
|
|
|
|
+ .andExpect(jsonPath("$.data.records").isArray());
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
@Test
|
|
@Test
|
|
@@ -278,7 +278,7 @@ class AdminControllerTest extends GatewayBaseTest {
|
|
|
mockMvc.perform(get("/api/admin/crawler/grants?userId=1")
|
|
mockMvc.perform(get("/api/admin/crawler/grants?userId=1")
|
|
|
.header("Authorization", "Bearer " + adminToken()))
|
|
.header("Authorization", "Bearer " + adminToken()))
|
|
|
.andExpect(status().isOk())
|
|
.andExpect(status().isOk())
|
|
|
- .andExpect(jsonPath("$.data").isArray());
|
|
|
|
|
|
|
+ .andExpect(jsonPath("$.data.records").isArray());
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
@Test
|
|
@Test
|
|
@@ -288,7 +288,7 @@ class AdminControllerTest extends GatewayBaseTest {
|
|
|
mockMvc.perform(get("/api/admin/crawler/grants?grantType=ADMIN")
|
|
mockMvc.perform(get("/api/admin/crawler/grants?grantType=ADMIN")
|
|
|
.header("Authorization", "Bearer " + adminToken()))
|
|
.header("Authorization", "Bearer " + adminToken()))
|
|
|
.andExpect(status().isOk())
|
|
.andExpect(status().isOk())
|
|
|
- .andExpect(jsonPath("$.data").isArray());
|
|
|
|
|
|
|
+ .andExpect(jsonPath("$.data.records").isArray());
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
@Test
|
|
@Test
|
|
@@ -298,7 +298,7 @@ class AdminControllerTest extends GatewayBaseTest {
|
|
|
mockMvc.perform(get("/api/admin/crawler/grants?grantType=INVITE")
|
|
mockMvc.perform(get("/api/admin/crawler/grants?grantType=INVITE")
|
|
|
.header("Authorization", "Bearer " + adminToken()))
|
|
.header("Authorization", "Bearer " + adminToken()))
|
|
|
.andExpect(status().isOk())
|
|
.andExpect(status().isOk())
|
|
|
- .andExpect(jsonPath("$.data").isArray());
|
|
|
|
|
|
|
+ .andExpect(jsonPath("$.data.records").isArray());
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
@Test
|
|
@Test
|
|
@@ -308,7 +308,7 @@ class AdminControllerTest extends GatewayBaseTest {
|
|
|
mockMvc.perform(get("/api/admin/crawler/grants?grantType=PURCHASE")
|
|
mockMvc.perform(get("/api/admin/crawler/grants?grantType=PURCHASE")
|
|
|
.header("Authorization", "Bearer " + adminToken()))
|
|
.header("Authorization", "Bearer " + adminToken()))
|
|
|
.andExpect(status().isOk())
|
|
.andExpect(status().isOk())
|
|
|
- .andExpect(jsonPath("$.data").isArray());
|
|
|
|
|
|
|
+ .andExpect(jsonPath("$.data.records").isArray());
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
// ==================== 邀请记录查看 ====================
|
|
// ==================== 邀请记录查看 ====================
|
|
@@ -321,7 +321,7 @@ class AdminControllerTest extends GatewayBaseTest {
|
|
|
.header("Authorization", "Bearer " + adminToken()))
|
|
.header("Authorization", "Bearer " + adminToken()))
|
|
|
.andExpect(status().isOk())
|
|
.andExpect(status().isOk())
|
|
|
.andExpect(jsonPath("$.code").value(200))
|
|
.andExpect(jsonPath("$.code").value(200))
|
|
|
- .andExpect(jsonPath("$.data").isArray());
|
|
|
|
|
|
|
+ .andExpect(jsonPath("$.data.records").isArray());
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
@Test
|
|
@Test
|
|
@@ -331,7 +331,7 @@ class AdminControllerTest extends GatewayBaseTest {
|
|
|
mockMvc.perform(get("/api/admin/invite/rewards")
|
|
mockMvc.perform(get("/api/admin/invite/rewards")
|
|
|
.header("Authorization", "Bearer " + adminToken()))
|
|
.header("Authorization", "Bearer " + adminToken()))
|
|
|
.andExpect(status().isOk())
|
|
.andExpect(status().isOk())
|
|
|
- .andExpect(jsonPath("$.data").isArray());
|
|
|
|
|
|
|
+ .andExpect(jsonPath("$.data.records").isArray());
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
@Test
|
|
@Test
|