Skip to content

Commit

Permalink
fix: update apmIT (#858)
Browse files Browse the repository at this point in the history
  • Loading branch information
yitongnb authored May 30, 2024
1 parent f228c2e commit eb16743
Showing 1 changed file with 20 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,24 @@ public void test_serviceList() {
}
});
}

@Test
public void test_serviceInstanceList() {
await() //
.untilNoException(() -> {

long now = System.currentTimeMillis();
JSONObject body = json() //
.put("start", now - 10 * 60 * 1000L) //
.put("end", now) //
.put("tenant", "default").put("serviceName", "demo-server");

ValidatableResponse resp = given() //
.body(body) //
.when() //
.post("/webapi/v1/trace/query/serviceInstanceList") //
.then() //
.isSuccess().body("data.size()", gt(0));
});
}
}

0 comments on commit eb16743

Please sign in to comment.