API-test-in-progress
This commit is contained in:
@@ -9,6 +9,7 @@ import org.junit.jupiter.api.Test;
|
||||
class HealthControllerApiTest extends AbstractApiTest {
|
||||
|
||||
@Test
|
||||
// 测试用例:模拟带上默认用户与租户请求 /health/ping 接口,校验接口必须返回 200 且 data = "pong",确认健康检查链路畅通。
|
||||
void pingReturnsPong() throws Exception {
|
||||
mockMvc.perform(get("/health/ping")
|
||||
.header(USER_HEADER, DEFAULT_USER)
|
||||
|
||||
Reference in New Issue
Block a user