diff --git a/src/test/java/org/codelibs/fess/it/CrudTestBase.java b/src/test/java/org/codelibs/fess/it/CrudTestBase.java index f52a462c1..bce8baee8 100644 --- a/src/test/java/org/codelibs/fess/it/CrudTestBase.java +++ b/src/test/java/org/codelibs/fess/it/CrudTestBase.java @@ -200,15 +200,21 @@ public abstract class CrudTestBase extends ITBase { // Utilities // ================ protected Response checkGetMethod(final Map body, final String path) { - return checkMethodBase(body).get(getApiPath() + "/" + path); + Response response = checkMethodBase(body).get(getApiPath() + "/" + path); + // logger.debug(response.asString()); + return response; } protected Response checkPutMethod(final Map body, final String path) { - return checkMethodBase(body).put(getApiPath() + "/" + path); + Response response = checkMethodBase(body).put(getApiPath() + "/" + path); + // logger.debug(response.asString()); + return response; } protected Response checkPostMethod(final Map body, final String path) { - return checkMethodBase(body).post(getApiPath() + "/" + path); + Response response = checkMethodBase(body).post(getApiPath() + "/" + path); + // logger.debug(response.asString()); + return response; } protected Response checkDeleteMethod(final String path) { diff --git a/src/test/java/org/codelibs/fess/it/ITBase.java b/src/test/java/org/codelibs/fess/it/ITBase.java index a4b56eb6e..f2427a667 100644 --- a/src/test/java/org/codelibs/fess/it/ITBase.java +++ b/src/test/java/org/codelibs/fess/it/ITBase.java @@ -41,7 +41,7 @@ public class ITBase { given().contentType("application/json") .body("{\"index\":{\"_index\":\".fess_config.access_token\",\"_type\":\"access_token\",\"_id\":\"" + DEFAULT_TEST_TOKEN_ID - + "\"}}\n{\"updatedTime\":1490250145200,\"updatedBy\":\"admin\",\"createdBy\":\"admin\",\"permissions\":[\"Radmin-api\",\\\"Rguest\\\"],\"name\":\"Admin API\",\"createdTime\":1490250145200,\"token\":\"" + + "\"}}\n{\"updatedTime\":1490250145200,\"updatedBy\":\"admin\",\"createdBy\":\"admin\",\"permissions\":[\"Radmin-api\",\"Rguest\"],\"name\":\"Admin API\",\"createdTime\":1490250145200,\"token\":\"" + DEFAULT_TEST_TOKEN + "\"}\n").when().post(getEsUrl() + "/_bulk"); given().contentType("application/json").when().post(getEsUrl() + "/_refresh"); return DEFAULT_TEST_TOKEN;