From 016dc6f8e9aa566b83097f0d7f85efa955de0b78 Mon Sep 17 00:00:00 2001 From: wanjia <553039491@qq.com> Date: Thu, 30 Mar 2023 14:03:12 +0800 Subject: [PATCH] =?UTF-8?q?webhook=E5=A2=9E=E5=8A=A0type=E5=8F=82=E6=95=B0?= =?UTF-8?q?=EF=BC=9A=E5=90=8C=E6=AD=A5=E8=87=AA=E6=B5=8B=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/gitlink/softbot/service/market/GitLinkApiTest.java | 4 ++-- .../gitlink/softbot/service/market/RestTemplateUtilTests.java | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/test/java/com/gitlink/softbot/service/market/GitLinkApiTest.java b/src/test/java/com/gitlink/softbot/service/market/GitLinkApiTest.java index bf9fdae..a328f3c 100644 --- a/src/test/java/com/gitlink/softbot/service/market/GitLinkApiTest.java +++ b/src/test/java/com/gitlink/softbot/service/market/GitLinkApiTest.java @@ -57,7 +57,7 @@ public class GitLinkApiTest { @Test public void addWebhook() throws JsonProcessingException { - webhooks = new Webhook(true, "json", "GET", "123456", "http://localhost:10000", "*", new Object[]{"push"}); + webhooks = new Webhook(true, "json", "GET", "123456", "http://localhost:10000", "*", new Object[]{"push"}, "softbot"); Object[] params = new Object[]{"xxq250", "ruoyi-vue-pro"}; Response response = api.addWebhook(85175,params,webhooks); System.out.println(response.getData()); @@ -65,7 +65,7 @@ public class GitLinkApiTest { @Test public void updateWebhook() throws JsonProcessingException { - webhooks = new Webhook(false, "json", "GET", "123456", "http://localhost:10000", "*", new Object[]{"push"}); + webhooks = new Webhook(false, "json", "GET", "123456", "http://localhost:10000", "*", new Object[]{"push"}, "softbot"); Object[] params = new Object[]{"xxq250", "ruoyi-vue-pro"}; Response response = api.updateWebhook(85175,params,1082,webhooks); System.out.println(response.getData()); diff --git a/src/test/java/com/gitlink/softbot/service/market/RestTemplateUtilTests.java b/src/test/java/com/gitlink/softbot/service/market/RestTemplateUtilTests.java index 0522b63..c549064 100644 --- a/src/test/java/com/gitlink/softbot/service/market/RestTemplateUtilTests.java +++ b/src/test/java/com/gitlink/softbot/service/market/RestTemplateUtilTests.java @@ -38,7 +38,7 @@ class RestTemplateUtilTests { @BeforeEach public void setUp() { mapper = new ObjectMapper(); - webhooks = new Webhook(true, "json", "GET", "123456", "http://localhost:10000", "*", new Object[]{"push"}); + webhooks = new Webhook(true, "json", "GET", "123456", "http://localhost:10000", "*", new Object[]{"push"}, "softbot"); headParams = new HashMap<>(); headParams.put("Authorization", "Bearer "+TOKEN); }