-
Notifications
You must be signed in to change notification settings - Fork 1
Integration tests Cluster #38
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
Conversation
# Conflicts: # flink-connector-clickhouse-1.17/build.gradle.kts # flink-connector-clickhouse-2.0.0/build.gradle.kts # flink-connector-clickhouse-base/build.gradle.kts
flink-connector-clickhouse-base/src/testFixtures/java/com/clickhouse/flink/Cluster.java
Outdated
Show resolved
Hide resolved
flink-connector-clickhouse-base/src/testFixtures/java/com/clickhouse/flink/Cluster.java
Outdated
Show resolved
Hide resolved
flink-connector-clickhouse-base/src/testFixtures/java/com/clickhouse/flink/Cluster.java
Show resolved
Hide resolved
flink-connector-clickhouse-base/src/testFixtures/java/com/clickhouse/flink/Cluster.java
Outdated
Show resolved
Hide resolved
flink-connector-clickhouse-base/src/testFixtures/java/com/clickhouse/flink/Cluster.java
Show resolved
Hide resolved
...base/src/testFixtures/java/org/apache/flink/connector/test/FlinkClusterIntegrationTests.java
Outdated
Show resolved
Hide resolved
...base/src/testFixtures/java/org/apache/flink/connector/test/FlinkClusterIntegrationTests.java
Outdated
Show resolved
Hide resolved
...base/src/testFixtures/java/org/apache/flink/connector/test/FlinkClusterIntegrationTests.java
Outdated
Show resolved
Hide resolved
...tures/java/org/apache/flink/connector/test/embedded/clickhouse/ClickHouseServerForTests.java
Show resolved
Hide resolved
|
|
||
| public static Network getNetwork() { | ||
| if (isCloud()) | ||
| return Network.newNetwork(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here, we always create a new network for the cloud, but in public static void setUp(boolean bridge) throws InterruptedException, ExecutionException we don't. Can't we create it once there and reuse it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I will try to explain.
When running against the cloud, we do not care about the network we are operating from, but when running against a container, we need to be in the same network for Flink and ClickHouse.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I understand that my question was around whether we can create it once and reuse it? (in the setUp function)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In some cases, you need to use the network that was created by the ClickHouse container, and in the cloud, it does not matter.
Summary
Cluster integration tests
Closes #34
Checklist
Delete items not relevant to your PR: