@TestMethodOrder(value=org.junit.jupiter.api.MethodOrderer.OrderAnnotation.class) @Tag(value="acceptance") @Tag(value="sqlserver") public class SqlServerConnectorIT 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.sqlserver.SqlServerController |
dbController |
private static io.debezium.testing.openshift.tools.databases.sqlserver.SqlServerDeployer |
dbDeployer |
assertions, httpClient, KAFKA, KAFKA_CONNECT_S2I, KAFKA_CONNECT_S2I_LOGGING, KAFKA_CONSUMER_PROPS, kafkaConnectController, kafkaController, kafkaDeployer, ocp, operatorController, REGISTRY_DEPLOYMENT_PATH, REGISTRY_ID_TOPIC_PATH, REGISTRY_STORAGE_TOPIC_PATH, registryController, registryDeployer, testUtils| Constructor and Description |
|---|
SqlServerConnectorIT() |
| Modifier and Type | Method and Description |
|---|---|
private void |
insertCustomer(String firstName,
String lastName,
String email) |
static void |
setupDatabase() |
void |
shouldBeDown() |
void |
shouldBeDownAfterCrash() |
void |
shouldContainRecordsInCustomersTopic() |
void |
shouldCreateKafkaTopics() |
void |
shouldHaveRegisteredConnector() |
void |
shouldResumeStreamingAfterCrash() |
void |
shouldResumeStreamingAfterRedeployment() |
void |
shouldStreamChanges() |
static void |
tearDownDatabase() |
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.sqlserver.SqlServerDeployer dbDeployer
private static io.debezium.testing.openshift.tools.databases.sqlserver.SqlServerController dbController
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 shouldContainRecordsInCustomersTopic()
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 © 2021 JBoss by Red Hat. All rights reserved.