1
0
Эх сурвалжийг харах

[TEST] Removed TODO and custom code now that ping and info are two different apis in the REST spec

Luca Cavanna 11 жил өмнө
parent
commit
ee1e5660e1

+ 1 - 6
src/test/java/org/elasticsearch/test/rest/spec/RestSpec.java

@@ -40,12 +40,7 @@ public class RestSpec {
     }
 
     void addApi(RestApi restApi) {
-        if ("info".equals(restApi.getName())) {
-            //TODO info and ping should really be two different api in the rest spec
-            //info (GET|HEAD /) needs to be manually split into 1) info: GET /  2) ping: HEAD /
-            restApiMap.put("info", new RestApi(restApi, "info", "GET"));
-            restApiMap.put("ping", new RestApi(restApi, "ping", "HEAD"));
-        } else if ("get".equals(restApi.getName())) {
+        if ("get".equals(restApi.getName())) {
             //TODO get_source endpoint shouldn't be present in the rest spec for the get api
             //as get_source is already a separate api
             List<String> paths = Lists.newArrayList();