Skip to content

Commit 3673ad7

Browse files
committed
Temporary disable tests of static credentials
1 parent d790731 commit 3673ad7

File tree

1 file changed

+10
-12
lines changed

1 file changed

+10
-12
lines changed

jdbc/src/test/java/tech/ydb/jdbc/YdbDriverStaticCredsTest.java

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
import org.junit.jupiter.api.AfterAll;
1010
import org.junit.jupiter.api.Assertions;
1111
import org.junit.jupiter.api.BeforeAll;
12+
import org.junit.jupiter.api.Disabled;
1213
import org.junit.jupiter.api.Test;
1314
import org.junit.jupiter.api.extension.RegisterExtension;
1415

@@ -21,6 +22,7 @@
2122
*
2223
* @author Aleksandr Gorshenin
2324
*/
25+
@Disabled
2426
public class YdbDriverStaticCredsTest {
2527
@RegisterExtension
2628
private static final YdbHelperExtension ydb = new YdbHelperExtension();
@@ -32,23 +34,19 @@ public class YdbDriverStaticCredsTest {
3234

3335
@BeforeAll
3436
public static void createUsers() throws SQLException {
35-
try (Connection connection = DriverManager.getConnection(jdbcURL.build())) {
36-
try (Statement statement = connection.createStatement()) {
37-
statement.execute(""
38-
+ "CREATE USER user1 PASSWORD NULL;\n"
39-
+ "CREATE USER user2 PASSWORD 'pwss';\n"
40-
+ "CREATE USER user3 PASSWORD 'pw :ss;'\n;"
41-
);
42-
}
37+
try (Statement statement = jdbc.connection().createStatement()) {
38+
statement.execute(""
39+
+ "CREATE USER user1 PASSWORD NULL;\n"
40+
+ "CREATE USER user2 PASSWORD 'pwss';\n"
41+
+ "CREATE USER user3 PASSWORD 'pw :ss;'\n;"
42+
);
4343
}
4444
}
4545

4646
@AfterAll
4747
public static void dropUsers() throws SQLException {
48-
try (Connection connection = DriverManager.getConnection(jdbcURL.build())) {
49-
try (Statement statement = connection.createStatement()) {
50-
statement.execute("DROP USER IF EXISTS user1, user2, user3;");
51-
}
48+
try (Statement statement = jdbc.connection().createStatement()) {
49+
statement.execute("DROP USER IF EXISTS user1, user2, user3;");
5250
}
5351
}
5452

0 commit comments

Comments
 (0)