hpds_control_center/test/task_test.go

12 lines
845 B
Go
Raw Normal View History

2023-04-24 15:14:04 +08:00
package test
// {\"command\":1,\"payload\":{\"datasetArr\":\"2\",\"d":\"绕城道路测试\",\"datasetPath\":\"test_road\",\"httpUrl\":\"/\",\"inPath\":\"/in\",\"modelCommand\":\"\",\"modelId\":3,\"modelVersion\":\"v2.0\",\"nodeId\":1,\"h\":\"/out\",\"subDataTag\":100,\"subDataset\":\"\",\"taskId\":29,\"workflow\":\"\"}}
//
//func TestTaskRequestHandler(t *testing.T) {
// data := []byte(`{"command":1,"payload":{"datasetArr":"2","d":\"绕城道路测试\",\"datasetPath\":\"test_road\",\"httpUrl\":\"/\",\"inPath\":\"/in\",\"modelCommand\":\"\",\"modelId\":3,\"modelVersion\":\"v2.0\",\"nodeId\":1,\"h\":\"/out\",\"subDataTag\":100,\"subDataset\":\"\",\"taskId\":29,\"workflow\":\"\"}}`)
// tag, res := mq.TaskRequestHandler(data)
// fmt.Println("tag ==== >>>> ", tag)
// fmt.Println("res===== >>>> ", string(res))
// assert.Nil(t, res)
//}