Package io.debezium.server.http
Class HttpIT
java.lang.Object
io.debezium.server.http.HttpIT
@QuarkusTestResource(io.debezium.testing.testcontainers.PostgresTestResourceLifecycleManager.class) @QuarkusTestResource(HttpTestResourceLifecycleManager.class)
@TestMethodOrder(org.junit.jupiter.api.MethodOrderer.OrderAnnotation.class)
public class HttpIT
extends Object
Integration test that verifies basic reading from PostgreSQL database and writing to an HTTP Server
- Author:
- Chris Baumbauer
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final intprivate Stringprivate booleanprivate static final org.slf4j.Loggerprivate static final int(package private) DebeziumServer -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidassertEvents(List<com.github.tomakehurst.wiremock.stubbing.ServeEvent> events, int expectedSize) (package private) voidconnectorCompleted(io.debezium.server.events.ConnectorCompletedEvent event) voidvoidvoid
-
Field Details
-
server
-
LOGGER
private static final org.slf4j.Logger LOGGER -
MESSAGE_COUNT
private static final int MESSAGE_COUNT- See Also:
-
EXPECTED_RETRIES
private static final int EXPECTED_RETRIES- See Also:
-
expectServerFail
private boolean expectServerFail -
expectedErrorMessage
-
-
Constructor Details
-
HttpIT
public HttpIT()
-
-
Method Details
-
connectorCompleted
void connectorCompleted(@Observes io.debezium.server.events.ConnectorCompletedEvent event) throws Exception - Throws:
Exception
-
resetHttpMock
@BeforeEach public void resetHttpMock() -
testRetryUponError
@Test @Order(1) @FixFor("DBZ-5307") public void testRetryUponError() -
testHttpServer
@Test @Order(2) public void testHttpServer() -
assertEvents
private void assertEvents(List<com.github.tomakehurst.wiremock.stubbing.ServeEvent> events, int expectedSize)
-