Skip to content

Commit

Permalink
[Improve][build] The e2e module don't depend on the connector*-dist m…
Browse files Browse the repository at this point in the history
…odule (#2702)

* [Improve][build] The e2e module don't depend on the connector*-dist module

* fix connector type error

* fix flink sql
  • Loading branch information
ashulin authored Sep 9, 2022
1 parent 5039752 commit 7f9f202
Show file tree
Hide file tree
Showing 30 changed files with 197 additions and 61 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,14 @@
<type>test-jar</type>
<scope>test</scope>
</dependency>

<!-- SeaTunnel connectors -->
<dependency>
<groupId>org.apache.seatunnel</groupId>
<artifactId>connector-fake</artifactId>
<version>${project.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.apache.seatunnel</groupId>
<artifactId>connector-assert</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,14 @@
<type>test-jar</type>
<scope>test</scope>
</dependency>

<!-- SeaTunnel connectors -->
<dependency>
<groupId>org.apache.seatunnel</groupId>
<artifactId>connector-fake</artifactId>
<version>${project.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.apache.seatunnel</groupId>
<artifactId>connector-datahub</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,20 @@
<type>test-jar</type>
<scope>test</scope>
</dependency>

<!-- SeaTunnel connectors -->
<dependency>
<groupId>org.apache.seatunnel</groupId>
<artifactId>connector-fake</artifactId>
<version>${project.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.apache.seatunnel</groupId>
<artifactId>connector-console</artifactId>
<version>${project.version}</version>
<scope>test</scope>
</dependency>
</dependencies>

</project>
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,14 @@
<type>test-jar</type>
<scope>test</scope>
</dependency>

<!-- SeaTunnel connectors -->
<dependency>
<groupId>org.apache.seatunnel</groupId>
<artifactId>connector-fake</artifactId>
<version>${project.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.apache.seatunnel</groupId>
<artifactId>connector-file-local</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,14 @@
<type>test-jar</type>
<scope>test</scope>
</dependency>

<!-- SeaTunnel connectors -->
<dependency>
<groupId>org.apache.seatunnel</groupId>
<artifactId>connector-fake</artifactId>
<version>${project.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.apache.seatunnel</groupId>
<artifactId>connector-iotdb</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,28 @@
<type>test-jar</type>
<scope>test</scope>
</dependency>

<!-- SeaTunnel connectors -->
<dependency>
<groupId>org.apache.seatunnel</groupId>
<artifactId>connector-fake</artifactId>
<version>${project.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.apache.seatunnel</groupId>
<artifactId>connector-console</artifactId>
<version>${project.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.apache.seatunnel</groupId>
<artifactId>connector-jdbc</artifactId>
<version>${project.version}</version>
<scope>test</scope>
</dependency>

<!-- jdbc drivers -->
<dependency>
<groupId>org.testcontainers</groupId>
<artifactId>postgresql</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,19 @@
<type>test-jar</type>
<scope>test</scope>
</dependency>

<!-- SeaTunnel connectors -->
<dependency>
<groupId>org.apache.seatunnel</groupId>
<artifactId>connector-mongodb</artifactId>
<version>${project.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.apache.seatunnel</groupId>
<artifactId>connector-console</artifactId>
<version>${project.version}</version>
<scope>test</scope>
</dependency>
</dependencies>
</project>
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,20 @@
<type>test-jar</type>
<scope>test</scope>
</dependency>

<!-- SeaTunnel connectors -->
<dependency>
<groupId>org.apache.seatunnel</groupId>
<artifactId>connector-redis</artifactId>
<version>${project.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.apache.seatunnel</groupId>
<artifactId>connector-assert</artifactId>
<version>${project.version}</version>
<scope>test</scope>
</dependency>
</dependencies>

</project>
12 changes: 0 additions & 12 deletions seatunnel-e2e/seatunnel-flink-connector-v2-e2e/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -45,18 +45,6 @@
<version>${project.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.apache.seatunnel</groupId>
<artifactId>seatunnel-connectors-v2-dist</artifactId>
<version>${project.version}</version>
<scope>test</scope>
<exclusions>
<exclusion>
<groupId>*</groupId>
<artifactId>*</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.awaitility</groupId>
<artifactId>awaitility</artifactId>
Expand Down
12 changes: 0 additions & 12 deletions seatunnel-e2e/seatunnel-flink-e2e/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -42,18 +42,6 @@
<version>${project.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.apache.seatunnel</groupId>
<artifactId>seatunnel-connectors-flink-dist</artifactId>
<version>${project.version}</version>
<scope>test</scope>
<exclusions>
<exclusion>
<groupId>*</groupId>
<artifactId>*</artifactId>
</exclusion>
</exclusions>
</dependency>
</dependencies>

</project>
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,14 @@
<type>test-jar</type>
<scope>test</scope>
</dependency>

<!-- connectors -->
<dependency>
<groupId>org.apache.seatunnel</groupId>
<artifactId>seatunnel-connector-flink-fake</artifactId>
<version>${project.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.apache.seatunnel</groupId>
<artifactId>seatunnel-connector-flink-assert</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,14 @@
<type>test-jar</type>
<scope>test</scope>
</dependency>

<!-- connectors -->
<dependency>
<groupId>org.apache.seatunnel</groupId>
<artifactId>seatunnel-connector-flink-fake</artifactId>
<version>${project.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.apache.seatunnel</groupId>
<artifactId>seatunnel-connector-flink-clickhouse</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ protected String getStartShellName() {

@Override
protected String getConnectorType() {
return "seatunnel";
return "flink";
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,20 @@
<type>test-jar</type>
<scope>test</scope>
</dependency>

<!-- connectors -->
<dependency>
<groupId>org.apache.seatunnel</groupId>
<artifactId>seatunnel-connector-flink-fake</artifactId>
<version>${project.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.apache.seatunnel</groupId>
<artifactId>seatunnel-connector-flink-console</artifactId>
<version>${project.version}</version>
<scope>test</scope>
</dependency>
</dependencies>

</project>
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,14 @@
<type>test-jar</type>
<scope>test</scope>
</dependency>

<!-- connectors -->
<dependency>
<groupId>org.apache.seatunnel</groupId>
<artifactId>seatunnel-connector-flink-fake</artifactId>
<version>${project.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.apache.seatunnel</groupId>
<artifactId>seatunnel-connector-flink-file</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,14 @@
<type>test-jar</type>
<scope>test</scope>
</dependency>

<!-- connectors -->
<dependency>
<groupId>org.apache.seatunnel</groupId>
<artifactId>seatunnel-connector-flink-console</artifactId>
<version>${project.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.apache.seatunnel</groupId>
<artifactId>seatunnel-connector-flink-http</artifactId>
Expand Down
12 changes: 0 additions & 12 deletions seatunnel-e2e/seatunnel-flink-sql-e2e/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -38,17 +38,5 @@
<version>${project.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.apache.seatunnel</groupId>
<artifactId>seatunnel-connectors-flink-sql-dist</artifactId>
<version>${project.version}</version>
<scope>test</scope>
<exclusions>
<exclusion>
<groupId>*</groupId>
<artifactId>*</artifactId>
</exclusion>
</exclusions>
</dependency>
</dependencies>
</project>
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,14 @@

package org.apache.seatunnel.e2e.flink.sql;

import static org.apache.seatunnel.e2e.common.ContainerUtil.copyConfigFileToContainer;

import org.apache.seatunnel.e2e.common.AbstractFlinkContainer;

import org.testcontainers.containers.Container;

import java.io.IOException;

/**
* This class is the base class of FlinkEnvironment test.
* The before method will create a Flink cluster, and after method will close the Flink cluster.
Expand Down Expand Up @@ -50,4 +56,9 @@ protected String getConnectorModulePath() {
protected String getConnectorNamePrefix() {
return "flink-sql-connector-";
}

public Container.ExecResult executeSeaTunnelFlinkJob(String confFile) throws IOException, InterruptedException {
final String confInContainerPath = copyConfigFileToContainer(jobManager, confFile);
return executeCommand(jobManager, confInContainerPath);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
<type>test-jar</type>
<scope>test</scope>
</dependency>
<!-- Flink has built-in DataGen and Print sql connectors -->
</dependencies>

</project>
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,14 @@
<type>test-jar</type>
<scope>test</scope>
</dependency>

<!-- SeaTunnel connectors -->
<dependency>
<groupId>org.apache.seatunnel</groupId>
<artifactId>connector-fake</artifactId>
<version>${project.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.apache.seatunnel</groupId>
<artifactId>connector-datahub</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,20 @@
<type>test-jar</type>
<scope>test</scope>
</dependency>

<!-- SeaTunnel connectors -->
<dependency>
<groupId>org.apache.seatunnel</groupId>
<artifactId>connector-fake</artifactId>
<version>${project.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.apache.seatunnel</groupId>
<artifactId>connector-console</artifactId>
<version>${project.version}</version>
<scope>test</scope>
</dependency>
</dependencies>

</project>
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,14 @@
<type>test-jar</type>
<scope>test</scope>
</dependency>

<!-- SeaTunnel connectors -->
<dependency>
<groupId>org.apache.seatunnel</groupId>
<artifactId>connector-fake</artifactId>
<version>${project.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.apache.seatunnel</groupId>
<artifactId>connector-file-local</artifactId>
Expand Down
Loading

0 comments on commit 7f9f202

Please sign in to comment.