Skip to content

Commit 0d1b838

Browse files
authored
Use default credentials in multi-tags table IT (#17744)
1 parent 771266d commit 0d1b838

1 file changed

Lines changed: 13 additions & 2 deletions

File tree

integration-test/src/test/java/org/apache/iotdb/relational/it/db/it/IoTDBMultiTAGsWithAttributesTableIT.java

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919

2020
package org.apache.iotdb.relational.it.db.it;
2121

22+
import org.apache.iotdb.isession.SessionConfig;
2223
import org.apache.iotdb.it.env.EnvFactory;
2324
import org.apache.iotdb.it.env.cluster.node.DataNodeWrapper;
2425
import org.apache.iotdb.it.framework.IoTDBTestRunner;
@@ -2962,7 +2963,12 @@ private static void prepareStaleLastRowCacheOnSingleDataNode() {
29622963
private static void executeTableStatementOnSingleDataNode(
29632964
final DataNodeWrapper dataNodeWrapper, final String sql) throws Exception {
29642965
try (final Connection connection =
2965-
EnvFactory.getEnv().getConnection(dataNodeWrapper, "root", "root", "table");
2966+
EnvFactory.getEnv()
2967+
.getConnection(
2968+
dataNodeWrapper,
2969+
SessionConfig.DEFAULT_USER,
2970+
SessionConfig.DEFAULT_PASSWORD,
2971+
"table");
29662972
final Statement statement = connection.createStatement()) {
29672973
statement.execute(sql);
29682974
}
@@ -2975,7 +2981,12 @@ private static void tableResultSetEqualOnSingleDataNode(
29752981
final String[] expectedRetArray)
29762982
throws Exception {
29772983
try (final Connection connection =
2978-
EnvFactory.getEnv().getConnection(dataNodeWrapper, "root", "root", "table");
2984+
EnvFactory.getEnv()
2985+
.getConnection(
2986+
dataNodeWrapper,
2987+
SessionConfig.DEFAULT_USER,
2988+
SessionConfig.DEFAULT_PASSWORD,
2989+
"table");
29792990
final Statement statement = connection.createStatement()) {
29802991
statement.execute("use " + DATABASE_NAME);
29812992
try (final ResultSet resultSet = statement.executeQuery(sql)) {

0 commit comments

Comments
 (0)