Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 14 for checkMethodBase (0.19 sec)

  1. src/test/java/org/codelibs/fess/it/search/SearchApiTests.java

            String andResponse = checkMethodBase(new HashMap<>()).params(andParams).get("/api/v1/documents").asString();
            int andRecordCount = JsonPath.from(andResponse).getInt("record_count");
    
            Map<String, String> params = new HashMap<>();
            params.put("q", query);
            params.put("num", "100");
            String response = checkMethodBase(new HashMap<>()).params(params).get("/api/v1/documents").asString();
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 18.6K bytes
    - Viewed (0)
  2. src/test/java/org/codelibs/fess/it/admin/WebAuthTests.java

            requestBody.put("sort_order", 1);
            checkMethodBase(requestBody).put("/api/admin/webconfig/setting").then().body("response.created", equalTo(true))
                    .body("response.status", equalTo(0));
        }
    
        String getWebConfigId() {
            final Map<String, Object> searchBody = new HashMap<>();
            searchBody.put("name", "test_webconfig");
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  3. src/test/java/org/codelibs/fess/it/admin/CrawlerLogTests.java

                deleteMethod("/api/admin/failurelog/log/" + elem.get("id"));
            }
    
            final Map<String, Object> requestBody = new HashMap<>();
            requestBody.put("q", "CodeLibs");
            checkMethodBase(requestBody).delete("/api/admin/searchlist/query");
            refresh();
    
            for (String sId : getSchedulerIds(NAME_PREFIX)) {
                deleteMethod("/api/admin/scheduler/setting/" + sId);
            }
    
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 9.1K bytes
    - Viewed (0)
  4. src/test/java/org/codelibs/fess/it/CrawlTestBase.java

        private static final String DOC_INDEX_NAME = "fess.search";
    
        protected static void createJob(final Map<String, Object> requestBody) {
            checkMethodBase(requestBody).put("/api/admin/scheduler/setting").then().body("response.created", equalTo(true))
                    .body("response.status", equalTo(0));
        }
    
        protected static void startJob(final String namePrefix) {
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 9.9K bytes
    - Viewed (0)
  5. src/test/java/org/codelibs/fess/it/admin/FileAuthTests.java

            requestBody.put("sort_order", 1);
            checkMethodBase(requestBody).put("/api/admin/fileconfig/setting").then().body("response.created", equalTo(true))
                    .body("response.status", equalTo(0));
        }
    
        String getFileConfigId() {
            final Map<String, Object> searchBody = new HashMap<>();
            searchBody.put("name", "test_fileconfig");
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  6. src/test/java/org/codelibs/fess/it/admin/ReqHeaderTests.java

            requestBody.put("sort_order", 1);
            checkMethodBase(requestBody).put("/api/admin/webconfig/setting").then().body("response.created", equalTo(true))
                    .body("response.status", equalTo(0));
        }
    
        String getWebConfigId() {
            final Map<String, Object> searchBody = new HashMap<>();
            searchBody.put("name", "test_webconfig");
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  7. src/test/java/org/codelibs/fess/it/CrudTestBase.java

            Response response = checkMethodBase(body).get(getApiPath() + "/" + path);
            // logger.debug(response.asString());
            return response;
        }
    
        protected Response checkPutMethod(final Map<String, Object> body, final String path) {
            Response response = checkMethodBase(body).put(getApiPath() + "/" + path);
            // logger.debug(response.asString());
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:53:18 UTC 2024
    - 9.1K bytes
    - Viewed (0)
  8. src/test/java/org/codelibs/fess/it/admin/BackupTests.java

            fail(); // Unreachable
            return null;
        }
    
        @Override
        protected void testRead() {
            final Map<String, Object> searchBody = new HashMap<>();
            final String response = checkMethodBase(searchBody).get(API_PATH + "/" + LIST_ENDPOINT_SUFFIX).asString();
            assertEquals(new Integer(0), JsonPath.from(response).get("response.status"));
        }
    
        @Override
        protected void tearDown() {
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  9. src/test/java/org/codelibs/fess/it/ITBase.java

        }
    
        public static String getEsUrl() {
            return System.getProperty("test.search_engine.url", DEFAULT_SEARCH_ENGINE_URL);
        }
    
        protected static RequestSpecification checkMethodBase(final Map<String, Object> body) {
            return given().contentType("application/json").header("Authorization", getTestToken()).body(body, ObjectMapperType.JACKSON_2)
                    .when();
        }
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 3.3K bytes
    - Viewed (0)
  10. src/test/java/org/codelibs/fess/it/admin/SearchListTests.java

                refresh();
            }
    
            checkUpdate();
        }
    
        @Override
        protected List<Map<String, Object>> getItemList(final Map<String, Object> body) {
            final String response = checkMethodBase(body).get(getApiPath() + "/" + getListEndpointSuffix()).asString();
            final List<Map<String, Object>> results = JsonPath.from(response).getList("response.docs");
            return results;
        }
    
        @Test
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 4.5K bytes
    - Viewed (0)
Back to top