From 28480e41d75fa880e184224053049abba60f59a4 Mon Sep 17 00:00:00 2001 From: lanyuanxiaoyao Date: Fri, 9 Jun 2023 14:34:13 +0800 Subject: [PATCH] =?UTF-8?q?test(queue):=20=E5=A2=9E=E5=8A=A0=E7=AE=80?= =?UTF-8?q?=E5=8D=95=E7=9A=84=E6=8E=A5=E5=8F=A3=E6=B5=8B=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- test/test.http | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 test/test.http diff --git a/test/test.http b/test/test.http new file mode 100644 index 0000000..3932f9a --- /dev/null +++ b/test/test.http @@ -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" +]