- Sort Score
- Num 10 results
- Language All
Results 1 - 7 of 7 for getTestToken (0.05 seconds)
-
src/test/java/org/codelibs/fess/it/admin/StorageTests.java
void testUpload_ok() { // Create a test file content String fileContent = "Test file content for storage upload"; // Upload file Response response = given().header("Authorization", getTestToken()) .multiPart("file", NAME_PREFIX + "test.txt", fileContent.getBytes()) .when() .put(getApiPath() + "/upload/");
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Fri Mar 13 23:01:26 GMT 2026 - 5.3K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/it/ITBase.java
public static final String DEFAULT_TEST_TOKEN_ID = "testToken"; private static final String TEST_TOKEN = "test.token"; public static String getTestToken() { return System.getProperty(TEST_TOKEN, DEFAULT_TEST_TOKEN); } public static String settingTestToken() { final String testToken = System.getProperty(TEST_TOKEN);
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Thu Aug 07 03:06:29 GMT 2025 - 3.4K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/it/admin/ElevateWordTests.java
} refresh(); // Download CSV Response response = given().contentType("application/json").header("Authorization", getTestToken()).when().get(getApiPath() + "/download"); assertEquals(200, response.getStatusCode()); String body = response.getBody().asString(); assertTrue(body != null, "CSV response should not be null");Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Sat Dec 20 03:03:44 GMT 2025 - 4K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/it/admin/BadWordTests.java
} refresh(); // Download CSV Response response = given().contentType("application/json").header("Authorization", getTestToken()).when().get(getApiPath() + "/download"); assertEquals(200, response.getStatusCode()); String body = response.getBody().asString(); assertTrue(body != null, "CSV response should not be null");Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Sat Dec 20 03:03:44 GMT 2025 - 4.1K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/it/admin/DocumentsTests.java
for (Map<String, Object> doc : docs) { String docId = doc.get("doc_id").toString(); given().contentType("application/json").header("Authorization", getTestToken()).delete(SEARCHLIST_API_PATH + "/doc/" + docId); } refresh(); deleteTestToken(); } @Override protected String getNamePrefix() { return NAME_PREFIX; }Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Fri Mar 13 23:01:26 GMT 2026 - 9.9K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/it/CrudTestBase.java
// logger.debug(response.asString()); return response; } protected Response checkDeleteMethod(final String path) { return given().contentType("application/json").header("Authorization", getTestToken()).delete(getApiPath() + "/" + path); } protected List<Map<String, Object>> getItemList(final Map<String, Object> body) { String response = checkGetMethod(body, getListEndpointSuffix()).asString();
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Fri Nov 21 13:29:45 GMT 2025 - 9.2K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/it/CrawlTestBase.java
return itemList; } protected static Response deleteMethod(final String path) { return given().contentType("application/json").header("Authorization", getTestToken()).delete(path); } protected static void deleteDocuments(final String queryString) { List<String> docIds = new ArrayList<>(); Response response = given().contentType("application/json")Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Sun Jan 11 08:43:05 GMT 2026 - 10.6K bytes - Click Count (0)