@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 io.debezium.testing.openshift.tools.kafka.ConnectorConfigBuilder |
connectorConfig |
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.SqlDatabaseController |
dbController |
private static io.debezium.testing.openshift.tools.databases.mysql.MySqlDeployer |
dbDeployer |
private static okhttp3.OkHttpClient |
httpClient |
KAFKA, KAFKA_CONNECT_S2I, KAFKA_CONNECT_S2I_LOGGING, KAFKA_CONSUMER_PROPS, kafkaConnectController, kafkaController, kafkaDeployer, ocp, operatorController, testUtils| Constructor and Description |
|---|
MySqlConnectorIT() |
| Modifier and Type | Method and Description |
|---|---|
private void |
insertCustomer(String firstName,
String lastName,
String email) |
static void |
setupDatabase() |
void |
shouldBeDown() |
void |
shouldBeDownAfterCrash() |
void |
shouldCreateKafkaTopics() |
void |
shouldHaveRegisteredConnector() |
void |
shouldResumeStreamingAfterCrash() |
void |
shouldResumeStreamingAfterRedeployment() |
void |
shouldSnapshotChanges() |
void |
shouldStreamChanges() |
static void |
tearDownDatabase() |
assertMinimalRecordsCount, assertRecordsContain, assertRecordsCount, assertTopicsExist, awaitAssert, awaitAssert, setup, teardownpublic 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.mysql.MySqlDeployer dbDeployer
private static io.debezium.testing.openshift.tools.databases.SqlDatabaseController dbController
private static okhttp3.OkHttpClient httpClient
private static ConnectorFactories connectorFactories
private static io.debezium.testing.openshift.tools.kafka.ConnectorConfigBuilder connectorConfig
private static String connectorName
@BeforeAll
public static void setupDatabase()
throws IOException,
InterruptedException,
ClassNotFoundException
@AfterAll
public static void tearDownDatabase()
throws IOException,
InterruptedException
IOExceptionInterruptedExceptionprivate void insertCustomer(String firstName, String lastName, String email) throws SQLException
SQLException@Test @Order(value=1) public void shouldHaveRegisteredConnector()
@Test @Order(value=2) public void shouldCreateKafkaTopics()
@Test
@Order(value=3)
public void shouldSnapshotChanges()
throws IOException
IOException@Test
@Order(value=4)
public void shouldStreamChanges()
throws SQLException
SQLException@Test
@Order(value=5)
public void shouldBeDown()
throws SQLException,
IOException
SQLExceptionIOException@Test
@Order(value=6)
public void shouldResumeStreamingAfterRedeployment()
throws IOException,
InterruptedException
IOExceptionInterruptedException@Test
@Order(value=7)
public void shouldBeDownAfterCrash()
throws SQLException
SQLException@Test
@Order(value=8)
public void shouldResumeStreamingAfterCrash()
throws InterruptedException
InterruptedExceptionCopyright © 2020 JBoss by Red Hat. All rights reserved.