This is an automated email from the ASF dual-hosted git repository. hxd pushed a commit to branch testcontainer in repository https://gitbox.apache.org/repos/asf/iotdb.git
commit b227b176d9eac8b6d5f4cd12468e698fc7325941 Author: xiangdong huang <[email protected]> AuthorDate: Sun Apr 18 00:47:48 2021 +0800 enable github CI for docker --- .github/workflows/e2e.yml | 4 ++ .../db/sql/{ClusterE2E.java => ClusterIT.java} | 2 +- .../sql/{SingleNodeE2E.java => SingleNodeIT.java} | 2 +- testcontainer/src/test/resources/logback.xml | 46 ++++++++++++++++++++++ 4 files changed, 52 insertions(+), 2 deletions(-) diff --git a/.github/workflows/e2e.yml b/.github/workflows/e2e.yml index 6a0e21f..3ce38a7 100644 --- a/.github/workflows/e2e.yml +++ b/.github/workflows/e2e.yml @@ -52,3 +52,7 @@ jobs: - name: Clean Up if: ${{ always() }} run: bash test/e2e/cases/${{ matrix.case }}/cleanup.sh + + - name: TestContainer + run: | + mvn integration-test -pl testcontainer diff --git a/testcontainer/src/test/java/org/apache/iotdb/db/sql/ClusterE2E.java b/testcontainer/src/test/java/org/apache/iotdb/db/sql/ClusterIT.java similarity index 99% rename from testcontainer/src/test/java/org/apache/iotdb/db/sql/ClusterE2E.java rename to testcontainer/src/test/java/org/apache/iotdb/db/sql/ClusterIT.java index 44c0d08..7e7c926 100644 --- a/testcontainer/src/test/java/org/apache/iotdb/db/sql/ClusterE2E.java +++ b/testcontainer/src/test/java/org/apache/iotdb/db/sql/ClusterIT.java @@ -34,7 +34,7 @@ import java.sql.DriverManager; import java.sql.SQLException; import java.sql.Statement; -public class ClusterE2E { +public class ClusterIT { private Statement statement; private Connection connection; diff --git a/testcontainer/src/test/java/org/apache/iotdb/db/sql/SingleNodeE2E.java b/testcontainer/src/test/java/org/apache/iotdb/db/sql/SingleNodeIT.java similarity index 99% rename from testcontainer/src/test/java/org/apache/iotdb/db/sql/SingleNodeE2E.java rename to testcontainer/src/test/java/org/apache/iotdb/db/sql/SingleNodeIT.java index 7a4705a..5af217a 100644 --- a/testcontainer/src/test/java/org/apache/iotdb/db/sql/SingleNodeE2E.java +++ b/testcontainer/src/test/java/org/apache/iotdb/db/sql/SingleNodeIT.java @@ -36,7 +36,7 @@ import java.sql.DriverManager; import java.sql.SQLException; import java.sql.Statement; -public class SingleNodeE2E { +public class SingleNodeIT { private Statement statement; private Connection connection; diff --git a/testcontainer/src/test/resources/logback.xml b/testcontainer/src/test/resources/logback.xml new file mode 100644 index 0000000..52e0c14 --- /dev/null +++ b/testcontainer/src/test/resources/logback.xml @@ -0,0 +1,46 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + + 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. + +--> +<configuration debug="false"> + <property name="LOG_PATH" value="target/logs"/> + <!-- prevent logback from outputting its own status at the start of every log --> + <statusListener class="ch.qos.logback.core.status.NopStatusListener"/> + <appender class="ch.qos.logback.core.ConsoleAppender" name="stdout"> + <Target>System.out</Target> + <encoder> + <pattern>%-5p [%d] [%thread] %C:%L - %m %n</pattern> + <charset>utf-8</charset> + </encoder> + <filter class="ch.qos.logback.classic.filter.ThresholdFilter"> + <level>DEBUG</level> + </filter> + </appender> + <!--<logger name="org.apache.iotdb.db.utils.OpenFileNumUtil" level="debug" />--> + <!--<logger name="org.apache.iotdb.db.utils.OpenFileNumUtilTest" level="debug" />--> + <!-- do not print "Can't get the cpu ratio,because this OS:mac os x is not support in test"--> + <logger name="org.apache.iotdb.db.metrics.server.ServerArgument" level="ERROR"/> + <!-- enable me if you want to monitor when files are opened and closed. + <logger name="FileMonitor" level="info"/> + --> + <root level="INFO"> + <appender-ref ref="stdout"/> + </root> +</configuration>
