public abstract class AbstractElasticsearchITBase extends Object
| Modifier and Type | Class and Description |
|---|---|
private static class |
AbstractElasticsearchITBase.SetupAction |
| Modifier and Type | Field and Description |
|---|---|
protected static String |
CLIENT_SERVICE_NAME |
protected static String |
ELASTIC_USER_PASSWORD |
protected static org.testcontainers.elasticsearch.ElasticsearchContainer |
ELASTICSEARCH_CONTAINER |
protected static String |
elasticsearchHost |
protected static boolean |
ENABLE_TEST_CONTAINERS |
protected static org.testcontainers.utility.DockerImageName |
IMAGE |
protected static String |
INDEX |
protected static com.fasterxml.jackson.databind.ObjectMapper |
MAPPER |
protected TestRunner |
runner |
private static org.elasticsearch.client.RestClient |
testDataManagementClient |
protected static String |
type |
| Constructor and Description |
|---|
AbstractElasticsearchITBase() |
| Modifier and Type | Method and Description |
|---|---|
(package private) static void |
beforeAll() |
protected org.apache.commons.lang3.tuple.Pair<String,String> |
createApiKeyForIndex(String index) |
protected static void |
deleteIndex(String index) |
protected static int |
getElasticMajorVersion() |
protected static int |
getElasticMinorVersion() |
private static String[] |
getElasticVersion() |
protected String |
prettyJson(Object o) |
private static List<AbstractElasticsearchITBase.SetupAction> |
readSetupActions(String scriptPath) |
protected static void |
setupTestData() |
protected static void |
startTestcontainer() |
protected static void |
stopTestcontainer() |
protected static void |
tearDownTestData(List<String> testIndices) |
protected static final org.testcontainers.utility.DockerImageName IMAGE
protected static final String ELASTIC_USER_PASSWORD
protected static final org.testcontainers.elasticsearch.ElasticsearchContainer ELASTICSEARCH_CONTAINER
protected static final String CLIENT_SERVICE_NAME
protected static final String INDEX
protected static final com.fasterxml.jackson.databind.ObjectMapper MAPPER
protected static final boolean ENABLE_TEST_CONTAINERS
protected static String elasticsearchHost
protected TestRunner runner
protected static String type
private static org.elasticsearch.client.RestClient testDataManagementClient
protected static void startTestcontainer()
protected static void stopTestcontainer()
@BeforeAll
static void beforeAll()
throws IOException
IOExceptionprivate static String[] getElasticVersion()
protected static int getElasticMajorVersion()
protected static int getElasticMinorVersion()
protected static void setupTestData()
throws IOException
IOExceptionprotected static void deleteIndex(String index)
protected String prettyJson(Object o) throws com.fasterxml.jackson.core.JsonProcessingException
com.fasterxml.jackson.core.JsonProcessingExceptionprotected org.apache.commons.lang3.tuple.Pair<String,String> createApiKeyForIndex(String index) throws IOException
IOExceptionprivate static List<AbstractElasticsearchITBase.SetupAction> readSetupActions(String scriptPath) throws IOException
IOExceptionCopyright © 2023 Apache NiFi Project. All rights reserved.