This is an automated email from the ASF dual-hosted git repository. shenlin pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/rocketmq-eventbridge.git
commit 8ad96c87eb80642599bb930b91d143f27fe8489f Author: wangkai <wang...@zhongan.com> AuthorDate: Mon Oct 23 22:03:55 2023 +0800 [e2eTest] add e2eTest model --- .../src/main/java/org/apache/rocketmq/eventbridge/demo/DefaultDemo.java | 2 +- .../eventbridge/e2etest/controller/ApplicationTagControllerTest.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/test/demo/src/main/java/org/apache/rocketmq/eventbridge/demo/DefaultDemo.java b/test/demo/src/main/java/org/apache/rocketmq/eventbridge/demo/DefaultDemo.java index ce71c7a..d9e2b37 100644 --- a/test/demo/src/main/java/org/apache/rocketmq/eventbridge/demo/DefaultDemo.java +++ b/test/demo/src/main/java/org/apache/rocketmq/eventbridge/demo/DefaultDemo.java @@ -94,7 +94,7 @@ public class DefaultDemo { if (eventTargets == null || eventTargets.isEmpty()) { List<EventTarget> eventTargetList = Lists.newArrayList(); Map<String, Object> config = Maps.newHashMap(); - config.put("fileName", System.getProperty("user.home") + "/demo"); + config.put("fileName", "/home/runner/demo"); config.put("line", "{\"form\":\"JSONPATH\",\"value\":\"$.data\"}"); EventTarget eventTarget = EventTarget.builder().name(DEFAULT_EVENT_TARGET_NAME).className(DEFAULT_EVENT_TARGET_CLASS).config(config).build(); eventTargetList.add(eventTarget); diff --git a/test/rocketmq-eventbridge-e2etest/src/test/java/org/apache/rocketmq/eventbridge/e2etest/controller/ApplicationTagControllerTest.java b/test/rocketmq-eventbridge-e2etest/src/test/java/org/apache/rocketmq/eventbridge/e2etest/controller/ApplicationTagControllerTest.java index 3a6e284..e2f6b42 100644 --- a/test/rocketmq-eventbridge-e2etest/src/test/java/org/apache/rocketmq/eventbridge/e2etest/controller/ApplicationTagControllerTest.java +++ b/test/rocketmq-eventbridge-e2etest/src/test/java/org/apache/rocketmq/eventbridge/e2etest/controller/ApplicationTagControllerTest.java @@ -40,7 +40,7 @@ public class ApplicationTagControllerTest extends BaseTest { ResponseEntity<Void> response = Utils.request(template, url, HttpMethod.POST, "A test recrod.", Void.class, headers); Assert.assertTrue(response.getStatusCode().is2xxSuccessful()); - File file = new File(System.getProperty("user.home") + "/demo"); + File file = new File("/home/runner/demo"); String data = null; int retries = 0; while( retries < 10 ) {