Package io.debezium.testing.openshift
Class ConnectorTestBase
- java.lang.Object
-
- io.debezium.testing.openshift.ConnectorTestBase
-
- Direct Known Subclasses:
DB2ConnectorIT,MongoConnectorIT,MySqlConnectorIT,PostgreSqlConnectorIT,SqlServerConnectorIT
public abstract class ConnectorTestBase extends Object
- Author:
- Jakub Cechacek
-
-
Field Summary
Fields Modifier and Type Field Description protected static KafkaAssertionsassertionsprotected static ConnectorFactoriesconnectorFactoriesprotected static okhttp3.OkHttpClienthttpClientstatic StringKAFKAstatic StringKAFKA_CONNECT_S2Istatic StringKAFKA_CONNECT_S2I_LOGGINGprotected static PropertiesKAFKA_CONSUMER_PROPSprotected static io.debezium.testing.openshift.tools.kafka.OcpKafkaConnectControllerkafkaConnectControllerprotected static io.debezium.testing.openshift.tools.kafka.KafkaControllerkafkaControllerprivate static org.slf4j.LoggerLOGGERprotected static io.fabric8.openshift.client.OpenShiftClientocpprotected static io.debezium.testing.openshift.tools.kafka.StrimziOperatorControlleroperatorControllerstatic StringREGISTRY_DEPLOYMENT_PATHstatic StringREGISTRY_ID_TOPIC_PATHstatic StringREGISTRY_STORAGE_TOPIC_PATHprotected static io.debezium.testing.openshift.tools.registry.RegistryControllerregistryControllerprotected static io.debezium.testing.openshift.tools.registry.RegistryDeployerregistryDeployerprotected static TestUtilstestUtils
-
Constructor Summary
Constructors Constructor Description ConnectorTestBase()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description private static voiddeployKafkaCluster()private static voiddeployKafkaConnectCluster()private static voidinitKafkaConsumerProps()static voidsetup()static voidteardown()private static voidupdateOperatorInNamespace(String project)
-
-
-
Field Detail
-
LOGGER
private static final org.slf4j.Logger LOGGER
-
ocp
protected static io.fabric8.openshift.client.OpenShiftClient ocp
-
testUtils
protected static TestUtils testUtils
-
httpClient
protected static okhttp3.OkHttpClient httpClient
-
assertions
protected static KafkaAssertions assertions
-
KAFKA
public static final String KAFKA
-
KAFKA_CONNECT_S2I_LOGGING
public static final String KAFKA_CONNECT_S2I_LOGGING
-
KAFKA_CONNECT_S2I
public static final String KAFKA_CONNECT_S2I
-
REGISTRY_DEPLOYMENT_PATH
public static final String REGISTRY_DEPLOYMENT_PATH
- See Also:
- Constant Field Values
-
REGISTRY_STORAGE_TOPIC_PATH
public static final String REGISTRY_STORAGE_TOPIC_PATH
- See Also:
- Constant Field Values
-
REGISTRY_ID_TOPIC_PATH
public static final String REGISTRY_ID_TOPIC_PATH
- See Also:
- Constant Field Values
-
KAFKA_CONSUMER_PROPS
protected static Properties KAFKA_CONSUMER_PROPS
-
kafkaController
protected static io.debezium.testing.openshift.tools.kafka.KafkaController kafkaController
-
kafkaConnectController
protected static io.debezium.testing.openshift.tools.kafka.OcpKafkaConnectController kafkaConnectController
-
operatorController
protected static io.debezium.testing.openshift.tools.kafka.StrimziOperatorController operatorController
-
connectorFactories
protected static ConnectorFactories connectorFactories
-
registryDeployer
protected static io.debezium.testing.openshift.tools.registry.RegistryDeployer registryDeployer
-
registryController
protected static io.debezium.testing.openshift.tools.registry.RegistryController registryController
-
-
Method Detail
-
setup
@BeforeAll public static void setup() throws InterruptedException- Throws:
InterruptedException
-
deployKafkaCluster
private static void deployKafkaCluster() throws InterruptedException- Throws:
InterruptedException
-
deployKafkaConnectCluster
private static void deployKafkaConnectCluster() throws InterruptedException- Throws:
InterruptedException
-
updateOperatorInNamespace
private static void updateOperatorInNamespace(String project) throws InterruptedException
- Throws:
InterruptedException
-
initKafkaConsumerProps
private static void initKafkaConsumerProps()
-
teardown
@AfterAll public static void teardown()
-
-