From fee932a694a677c728ad2edf28ba10184d6355c5 Mon Sep 17 00:00:00 2001 From: MohamedHamou Date: Wed, 5 Feb 2020 15:27:41 +0100 Subject: [PATCH] Fix IT for Tiled Geoaggregate --- .../server/rest/explore/AbstractGeohashTiledTest.java | 7 +------ .../arlas/server/rest/explore/GeoAggregateServiceIT.java | 6 ------ 2 files changed, 1 insertion(+), 12 deletions(-) diff --git a/arlas-tests/src/test/java/io/arlas/server/rest/explore/AbstractGeohashTiledTest.java b/arlas-tests/src/test/java/io/arlas/server/rest/explore/AbstractGeohashTiledTest.java index 0c8bc9296..8fa37ec48 100644 --- a/arlas-tests/src/test/java/io/arlas/server/rest/explore/AbstractGeohashTiledTest.java +++ b/arlas-tests/src/test/java/io/arlas/server/rest/explore/AbstractGeohashTiledTest.java @@ -60,10 +60,7 @@ public void testGeohashTile() throws Exception { } - @Test - public void testNoMatchingGeohashTile() throws Exception { - handleNotMatchingGeohashTile(geohashTileGet("geohash:geo_params.centroid:interval-3", "ar")); - } + //---------------------------------------------------------------- //---------------------- SPECIFIC BEHAVIORS ---------------------- @@ -75,8 +72,6 @@ public void testNoMatchingGeohashTile() throws Exception { protected abstract void handleGeohashTileDisjointFromPwithin(ValidatableResponse then) throws Exception; - protected abstract void handleNotMatchingGeohashTile(ValidatableResponse then) throws Exception; - private ValidatableResponse geohashTileGet(Object paramValue, String geohash) { return given().param("agg", paramValue) .when().get(getGeohashUrlPath("geodata", geohash)) diff --git a/arlas-tests/src/test/java/io/arlas/server/rest/explore/GeoAggregateServiceIT.java b/arlas-tests/src/test/java/io/arlas/server/rest/explore/GeoAggregateServiceIT.java index 6e4fccac5..b340e67de 100644 --- a/arlas-tests/src/test/java/io/arlas/server/rest/explore/GeoAggregateServiceIT.java +++ b/arlas-tests/src/test/java/io/arlas/server/rest/explore/GeoAggregateServiceIT.java @@ -357,12 +357,6 @@ protected void handleGeohashTileDisjointFromPwithin(ValidatableResponse then) th .body("features", equalTo(null)); } - @Override - protected void handleNotMatchingGeohashTile(ValidatableResponse then) { - then.statusCode(200) - .body("features", equalTo(null)); - } - //---------------------------------------------------------------- //----------------------- FORM PART ------------------------------ //----------------------------------------------------------------