test(queue): 增加简单的接口测试
This commit is contained in:
38
test/test.http
Normal file
38
test/test.http
Normal file
@@ -0,0 +1,38 @@
|
||||
@host = 132.122.116.142
|
||||
@port = 35690
|
||||
@username = AxhEbscwsJDbYMH2
|
||||
@password = cYxg3b4PtWoVD5SjFayWxtnSVsjzRsg4
|
||||
@url = http://{{username}}:{{password}}@{{host}}:{{port}}
|
||||
@queue-url = {{url}}/hudi_services/queue
|
||||
|
||||
### 队列名称
|
||||
GET {{queue-url}}/queue/names
|
||||
|
||||
### 队列内容
|
||||
GET {{queue-url}}/queue/all/compaction-queue-b1
|
||||
|
||||
### 新增
|
||||
POST {{queue-url}}/queue/add/compaction-queue-test
|
||||
Content-Type: application/json
|
||||
|
||||
{
|
||||
"id": "251351dc-36db-4fe3-97d2-9667d7a89559",
|
||||
"priority": 1,
|
||||
"data": {
|
||||
"id": "{{$guid}}",
|
||||
"flinkJobId": "1542097983881048064",
|
||||
"alias": "crm_cfguse_area_code",
|
||||
"batch": "ojvfodao_hj",
|
||||
"status": "SCHEDULE",
|
||||
"comment": "Comment"
|
||||
}
|
||||
}
|
||||
|
||||
### 删除
|
||||
POST {{queue-url}}/queue/remove_all_id/compaction-queue-test
|
||||
Content-Type: application/json
|
||||
|
||||
[
|
||||
"251351dc-36db-4fe3-97d2-9667d7a89559",
|
||||
"2b7f29f6-97b5-4363-98a7-a28eaca7d930"
|
||||
]
|
||||
Reference in New Issue
Block a user