@TestMethodOrder(value=org.junit.jupiter.api.MethodOrderer.OrderAnnotation.class) @Tag(value="acceptance") @Tag(value="mysql") public class MySqlConnectorIT extends ConnectorTestBase
| Modifier and Type | Field and Description |
|---|---|
static String |
CONNECTOR_NAME |
private static ConnectorFactories |
connectorFactories |
private static String |
connectorName |
static String |
DB_DEPLOYMENT_PATH |
static String |
DB_SERVICE_PATH |
static String |
DB_SERVICE_PATH_LB |
private static io.debezium.testing.openshift.tools.databases.MySqlDeployer |
dbDeployer |
private static okhttp3.OkHttpClient |
httpClient |
KAFKA, KAFKA_CONNECT_S2I, KAFKA_CONNECT_S2I_LOGGING, KAFKA_CONSUMER_PROPS, kafkaConnectController, kafkaController, kafkaDeployer, ocp, testUtils| Constructor and Description |
|---|
MySqlConnectorIT() |
| Modifier and Type | Method and Description |
|---|---|
static void |
setupDatabase() |
void |
shouldContainRecordsInCustomersTopic() |
void |
shouldCreateKafkaTopics() |
void |
shouldHaveRegisteredConnector() |
static void |
tearDownDatabase() |
assertRecordsCount, assertTopicsExist, setuppublic static final String DB_DEPLOYMENT_PATH
public static final String DB_SERVICE_PATH_LB
public static final String DB_SERVICE_PATH
public static final String CONNECTOR_NAME
private static io.debezium.testing.openshift.tools.databases.MySqlDeployer dbDeployer
private static okhttp3.OkHttpClient httpClient
private static ConnectorFactories connectorFactories
private static String connectorName
@BeforeAll
public static void setupDatabase()
throws IOException,
InterruptedException
IOExceptionInterruptedException@AfterAll
public static void tearDownDatabase()
throws IOException
IOException@Test @Order(value=1) public void shouldHaveRegisteredConnector()
@Test @Order(value=2) public void shouldCreateKafkaTopics()
@Test
@Order(value=3)
public void shouldContainRecordsInCustomersTopic()
throws IOException
IOExceptionCopyright © 2020 JBoss by Red Hat. All rights reserved.