Package io.camunda.search.test.utils
Class SearchDBExtension
java.lang.Object
io.camunda.search.test.utils.SearchDBExtension
- All Implemented Interfaces:
org.junit.jupiter.api.extension.AfterAllCallback,org.junit.jupiter.api.extension.BeforeAllCallback,org.junit.jupiter.api.extension.Extension
- Direct Known Subclasses:
AWSSearchDBExtension,ContainerizedSearchDBExtension
public abstract class SearchDBExtension
extends Object
implements org.junit.jupiter.api.extension.BeforeAllCallback, org.junit.jupiter.api.extension.AfterAllCallback
@SearchDBExtension is an extension factory for concrete extensions: ContainerizedSearchDBExtension and AWSSearchDBExtension.
Which extension will be created is controlled by the property `test.integration.opensearch.aws.url`. If the mentioned property is defined then tests assume that URL is correct and points to the AWS OS instance.
A user can pass property locally via `mvn -D test.integration.opensearch.aws.url=$AWS_OS_URL
If concrete extension not selected, the ContainerizedSearchDBExtension as selected by
default.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic SearchDBExtensioncreate()abstract co.elastic.clients.elasticsearch.ElasticsearchClientesClient()abstract StringesUrl()abstract com.fasterxml.jackson.databind.ObjectMapperabstract org.opensearch.client.opensearch.OpenSearchClientosClient()abstract StringosUrl()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.junit.jupiter.api.extension.AfterAllCallback
afterAllMethods inherited from interface org.junit.jupiter.api.extension.BeforeAllCallback
beforeAll
-
Field Details
-
ENGINE_CLIENT_TEST_MARKERS
-
INCIDENT_IDX_PREFIX
-
BATCH_IDX_PREFIX
-
ARCHIVER_IDX_PREFIX
-
ZEEBE_IDX_PREFIX
-
CUSTOM_PREFIX
-
IDX_PROCESS_PREFIX
-
PROCESS_INDEX
-
IDX_FORM_PREFIX
-
FORM_INDEX
-
TEST_INTEGRATION_OPENSEARCH_AWS_URL
- See Also:
-
-
Constructor Details
-
SearchDBExtension
public SearchDBExtension()
-
-
Method Details
-
create
-
objectMapper
public abstract com.fasterxml.jackson.databind.ObjectMapper objectMapper()- Returns:
- context
ObjectMapper
-
esClient
public abstract co.elastic.clients.elasticsearch.ElasticsearchClient esClient()- Returns:
- configured
ElasticsearchClientclient
-
osClient
public abstract org.opensearch.client.opensearch.OpenSearchClient osClient()- Returns:
- configured
OpenSearchClient
-
esUrl
- Returns:
- context ElasticSearch URL
-
osUrl
- Returns:
- context OpenSearch URL
-