From 0c1feb45c885b39cf7c5134204d2c4be6697ffed Mon Sep 17 00:00:00 2001 From: Kent Yao Date: Tue, 28 Dec 2021 11:22:45 +0800 Subject: [PATCH] Migrating existing rest fe test to real cases --- .../apache/kyuubi/server/KyuubiRestFrontendServiceSuite.scala | 3 --- 1 file changed, 3 deletions(-) diff --git a/kyuubi-server/src/test/scala/org/apache/kyuubi/server/KyuubiRestFrontendServiceSuite.scala b/kyuubi-server/src/test/scala/org/apache/kyuubi/server/KyuubiRestFrontendServiceSuite.scala index e4721266ede..dc1dd472bd3 100644 --- a/kyuubi-server/src/test/scala/org/apache/kyuubi/server/KyuubiRestFrontendServiceSuite.scala +++ b/kyuubi-server/src/test/scala/org/apache/kyuubi/server/KyuubiRestFrontendServiceSuite.scala @@ -27,17 +27,14 @@ class KyuubiRestFrontendServiceSuite extends RestFrontendTestHelper { } test("error and exception response") { - // send a not exists request var response = webTarget.path("api/v1/pong").request().get() assert(404 == response.getStatus) assert(response.getStatusInfo.getReasonPhrase.equalsIgnoreCase("not found")) - // send a exists request but wrong http method response = webTarget.path("api/v1/ping").request().post(null) assert(405 == response.getStatus) assert(response.getStatusInfo.getReasonPhrase.equalsIgnoreCase("method not allowed")) - // send a request but throws a exception on the server side response = webTarget.path("api/v1/exception").request().get() assert(500 == response.getStatus) assert(response.getStatusInfo.getReasonPhrase.equalsIgnoreCase("server error"))