REM:
1. 修正一处测试用例错误
This commit is contained in:
HuangXin 2020-08-07 11:44:17 +08:00
parent f9f37bb581
commit f1fe70335d
1 changed files with 0 additions and 29 deletions

View File

@ -1819,35 +1819,6 @@ public class TaskControllerQATest extends InitTestEnvironment {
});
}
/**
* f8 get node task Array contains character test .
*/
@Test
public void f8_GetNodeTaskInfoArrayContainsCharacterTest() throws Exception {
String reqData = "{\"ver\":2,\"cryptoType\":0,\"timeStamp\":1587604296988,\"msgContent\":\"{\\\"id\\\": " +
"[\\\"1\\\",\\\"ab\\\",\\\"123\\\"], \\\"type\\\":0}\"}";
String ret = mockMvc.perform(MockMvcRequestBuilders
.post("/task/get_node")
.contentType(MediaType.APPLICATION_JSON)
.header("Authorization", GlobalVar.STRING_HTTP_AUTH_HEAD + getLogToken())
.content(reqData))
.andDo(print()).andExpect(status().isOk())
.andExpect(jsonPath("$.code").value(ErrorCode.ERR_OK.getHttpCode()))
.andReturn()
.getResponse()
.getContentAsString();
NodeTaskRsp nodeTaskRsp = objectMapper.readValue(verifyResp(ret), NodeTaskRsp.class);
Assert.assertNotNull(nodeTaskRsp);
nodeTaskRsp.getItems().forEach(v -> {
Assert.assertNotNull(v.getStatus());
Assert.assertNotNull(v.getMessage());
Assert.assertNotEquals(Long.valueOf(v.getStatus()), Long.valueOf(ErrorCode.ERR_OK.getCode()));
});
}
/**
* g1 get node detailed taskId empty exception test. 空字符串表示所有节点任务
*/