Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[#148] Ability to run consistency tests against YugabyteDB docker image #159

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package io.debezium.connector.yugabytedb;
package io.debezium.connector.yugabytedb.consistent;

import static org.junit.Assert.*;
import static org.junit.jupiter.api.Assertions.fail;
Expand All @@ -8,6 +8,9 @@
import java.util.*;
import java.util.concurrent.atomic.AtomicLong;

import io.debezium.connector.yugabytedb.TestHelper;
import io.debezium.connector.yugabytedb.YugabyteDBConnector;
import io.debezium.connector.yugabytedb.YugabyteDBConnectorConfig;
import org.apache.kafka.connect.data.Struct;
import org.apache.kafka.connect.source.SourceRecord;
import org.awaitility.Awaitility;
Expand Down Expand Up @@ -45,11 +48,11 @@ public class YugabyteDBStreamConsistencyTest extends YugabyteDBTestBase {
private static final String SETUP_TABLES_STMT = CREATE_TABLES_STMT + INSERT_STMT;
@BeforeClass
public static void beforeClass() throws SQLException {
// ybContainer = TestHelper.getYbContainer();
// ybContainer.start();
ybContainer = TestHelper.getYbContainer(null, "cdc_populate_safepoint_record=true");
ybContainer.start();

// TestHelper.setContainerHostPort(ybContainer.getHost(), ybContainer.getMappedPort(5433));
// TestHelper.setMasterAddress(ybContainer.getHost() + ":" + ybContainer.getMappedPort(7100));
TestHelper.setContainerHostPort(ybContainer.getHost(), ybContainer.getMappedPort(5433));
TestHelper.setMasterAddress(ybContainer.getHost() + ":" + ybContainer.getMappedPort(7100));
TestHelper.dropAllSchemas();
}

Expand All @@ -71,7 +74,7 @@ public void after() throws Exception {

@AfterClass
public static void afterClass() throws Exception {
// ybContainer.stop();
ybContainer.stop();
}

@Test
Expand Down