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

Fix integration test. #697

Merged
merged 1 commit into from
Sep 7, 2023
Merged
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
<junit.version>4.13.1</junit.version>
<mockito.version>2.22.0</mockito.version>
<powermock.version>2.0.0-beta.5</powermock.version>
<testcontainers.version>1.15.2</testcontainers.version>
<testcontainers.version>1.19.0</testcontainers.version>
<awaitility.version>4.2.0</awaitility.version>

<!-- build plugin dependencies -->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,6 @@
import org.testcontainers.containers.BindMode;
import org.testcontainers.containers.Container;
import org.testcontainers.containers.Network;
import org.testcontainers.shaded.com.fasterxml.jackson.databind.ObjectMapper;
import org.testcontainers.shaded.com.fasterxml.jackson.databind.node.ObjectNode;


/**
Expand Down Expand Up @@ -109,15 +107,9 @@ private void test(String sourceConfigYaml) throws Exception {
waitForConnectorRunning(standaloneContainer, true, "amqp1_0-source");
log.info("amqp1_0 source is running");

ObjectMapper objectMapper = new ObjectMapper();
ObjectNode objectNode = objectMapper.createObjectNode();
objectNode.put("user-op-queue-topic", "org.apache.pulsar.client.impl.schema.ByteBufferSchema");

execResult = standaloneContainer.execInContainer(
"/pulsar/bin/pulsar-admin",
"sinks", "create",
"--custom-schema-inputs",
objectNode.toString(),
"--sink-config-file",
"/pulsar/amqp1_0-sink-config.yaml"
);
Expand All @@ -136,6 +128,10 @@ private void test(String sourceConfigYaml) throws Exception {
.atMost(30, TimeUnit.SECONDS)
.until(testSuccess::get);
log.info("Finish the integration test.");

network.close();
standaloneContainer.close();
solaceContainer.close();
}

private void generateData(int count, String remoteUri) {
Expand Down
Loading