diff --git a/plugin/trino-memsql/pom.xml b/plugin/trino-memsql/pom.xml index fde2ab467ac8..9d64c75809b7 100644 --- a/plugin/trino-memsql/pom.xml +++ b/plugin/trino-memsql/pom.xml @@ -61,7 +61,7 @@ org.mariadb.jdbc mariadb-java-client - 2.4.0 + 2.7.2 diff --git a/plugin/trino-memsql/src/test/java/io/trino/plugin/memsql/TestMemSqlConnectorSmokeTestLatest.java b/plugin/trino-memsql/src/test/java/io/trino/plugin/memsql/TestMemSqlConnectorSmokeTestLatest.java new file mode 100644 index 000000000000..17d2378ff931 --- /dev/null +++ b/plugin/trino-memsql/src/test/java/io/trino/plugin/memsql/TestMemSqlConnectorSmokeTestLatest.java @@ -0,0 +1,32 @@ +/* + * Licensed 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 io.trino.plugin.memsql; + +import com.google.common.collect.ImmutableMap; +import io.trino.plugin.jdbc.BaseJdbcConnectorSmokeTest; +import io.trino.testing.QueryRunner; + +import static io.trino.plugin.memsql.MemSqlQueryRunner.createMemSqlQueryRunner; + +public class TestMemSqlConnectorSmokeTestLatest + extends BaseJdbcConnectorSmokeTest +{ + @Override + protected QueryRunner createQueryRunner() + throws Exception + { + TestingMemSqlServer memSqlServer = closeAfterClass(new TestingMemSqlServer(TestingMemSqlServer.LATEST_TESTED_TAG)); + return createMemSqlQueryRunner(memSqlServer, ImmutableMap.of(), REQUIRED_TPCH_TABLES); + } +} diff --git a/plugin/trino-memsql/src/test/java/io/trino/plugin/memsql/TestingMemSqlServer.java b/plugin/trino-memsql/src/test/java/io/trino/plugin/memsql/TestingMemSqlServer.java index fb8e75835c09..9a49af642e83 100644 --- a/plugin/trino-memsql/src/test/java/io/trino/plugin/memsql/TestingMemSqlServer.java +++ b/plugin/trino-memsql/src/test/java/io/trino/plugin/memsql/TestingMemSqlServer.java @@ -31,6 +31,7 @@ public class TestingMemSqlServer private static final String MEM_SQL_LICENSE = requireNonNull(System.getProperty("memsql.license"), "memsql.license is not set"); public static final String DEFAULT_TAG = "memsql/cluster-in-a-box:centos-7.1.13-11ddea2a3a-3.0.0-1.9.0"; + public static final String LATEST_TESTED_TAG = "memsql/cluster-in-a-box:centos-7.3.4-d596a2867a-3.2.4-1.10.1"; public static final Integer MEMSQL_PORT = 3306; @@ -42,6 +43,7 @@ public TestingMemSqlServer() public TestingMemSqlServer(String dockerImageName) { super(DockerImageName.parse(dockerImageName)); + addEnv("ROOT_PASSWORD", "memsql_root_password"); start(); } @@ -75,7 +77,7 @@ public String getUsername() @Override public String getPassword() { - return ""; + return "memsql_root_password"; } @Override