You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@seatunnel.apache.org by fa...@apache.org on 2023/05/15 03:03:16 UTC
[incubator-seatunnel] branch dev updated: [Improve][mysql-cdc][e2e] Removing the excess MySqlIncrementalSourceIT e2e reduces the CI time (#4738)
This is an automated email from the ASF dual-hosted git repository.
fanjia pushed a commit to branch dev
in repository https://gitbox.apache.org/repos/asf/incubator-seatunnel.git
The following commit(s) were added to refs/heads/dev by this push:
new 85d90580a [Improve][mysql-cdc][e2e] Removing the excess MySqlIncrementalSourceIT e2e reduces the CI time (#4738)
85d90580a is described below
commit 85d90580a6476b0cd926507e59b6e30f0d4850fd
Author: ZhilinLi <zh...@gmail.com>
AuthorDate: Mon May 15 11:03:08 2023 +0800
[Improve][mysql-cdc][e2e] Removing the excess MySqlIncrementalSourceIT e2e reduces the CI time (#4738)
---
.../cdc/mysql/MySqlIncrementalSourceIT.java | 80 ----------------------
1 file changed, 80 deletions(-)
diff --git a/seatunnel-e2e/seatunnel-connector-v2-e2e/connector-cdc-mysql-e2e/src/test/java/org/apache/seatunnel/connectors/seatunnel/cdc/mysql/MySqlIncrementalSourceIT.java b/seatunnel-e2e/seatunnel-connector-v2-e2e/connector-cdc-mysql-e2e/src/test/java/org/apache/seatunnel/connectors/seatunnel/cdc/mysql/MySqlIncrementalSourceIT.java
deleted file mode 100644
index 63f4e7d51..000000000
--- a/seatunnel-e2e/seatunnel-connector-v2-e2e/connector-cdc-mysql-e2e/src/test/java/org/apache/seatunnel/connectors/seatunnel/cdc/mysql/MySqlIncrementalSourceIT.java
+++ /dev/null
@@ -1,80 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.seatunnel.connectors.seatunnel.cdc.mysql;
-
-import org.apache.seatunnel.connectors.seatunnel.cdc.mysql.testutils.MySqlContainer;
-import org.apache.seatunnel.connectors.seatunnel.cdc.mysql.testutils.MySqlVersion;
-import org.apache.seatunnel.connectors.seatunnel.cdc.mysql.testutils.UniqueDatabase;
-import org.apache.seatunnel.e2e.common.TestResource;
-import org.apache.seatunnel.e2e.common.TestSuiteBase;
-import org.apache.seatunnel.e2e.common.container.EngineType;
-import org.apache.seatunnel.e2e.common.junit.DisabledOnContainer;
-
-import org.junit.jupiter.api.AfterAll;
-import org.junit.jupiter.api.BeforeAll;
-import org.junit.jupiter.api.Disabled;
-import org.junit.jupiter.api.Test;
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
-import org.testcontainers.containers.output.Slf4jLogConsumer;
-import org.testcontainers.lifecycle.Startables;
-
-import java.util.stream.Stream;
-
-@DisabledOnContainer(
- value = {},
- type = {EngineType.SPARK, EngineType.FLINK},
- disabledReason = "")
-public class MySqlIncrementalSourceIT extends TestSuiteBase implements TestResource {
- private static final Logger LOG = LoggerFactory.getLogger(MySqlIncrementalSourceIT.class);
-
- private static final MySqlContainer MYSQL_CONTAINER = createMySqlContainer(MySqlVersion.V8_0);
- private final UniqueDatabase inventoryDatabase =
- new UniqueDatabase(MYSQL_CONTAINER, "inventory", "mysqluser", "mysqlpw");
-
- private static MySqlContainer createMySqlContainer(MySqlVersion version) {
- return new MySqlContainer(version)
- .withConfigurationOverride("docker/server-gtids/my.cnf")
- .withSetupSQL("docker/setup.sql")
- .withDatabaseName("seatunnel-test")
- .withUsername("st_user")
- .withPassword("seatunnel")
- .withLogConsumer(new Slf4jLogConsumer(LOG));
- }
-
- @BeforeAll
- @Override
- public void startUp() throws Exception {
- LOG.info("Starting containers...");
- Startables.deepStart(Stream.of(MYSQL_CONTAINER)).join();
- LOG.info("Containers are started.");
- }
-
- @Test
- @Disabled("Offline jobs are not currently supported")
- public void testMysql() {
- inventoryDatabase.createAndInitialize();
- LOG.info("-------mysql port:{}", MYSQL_CONTAINER.getDatabasePort());
- }
-
- @AfterAll
- @Override
- public void tearDown() throws Exception {
- MYSQL_CONTAINER.close();
- }
-}