Skip to content

Commit

Permalink
Temporary disable tests of static credentials
Browse files Browse the repository at this point in the history
  • Loading branch information
alex268 committed Dec 23, 2024
1 parent d790731 commit 3673ad7
Showing 1 changed file with 10 additions and 12 deletions.
22 changes: 10 additions & 12 deletions jdbc/src/test/java/tech/ydb/jdbc/YdbDriverStaticCredsTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
import org.junit.jupiter.api.AfterAll;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.RegisterExtension;

Expand All @@ -21,6 +22,7 @@
*
* @author Aleksandr Gorshenin
*/
@Disabled
public class YdbDriverStaticCredsTest {
@RegisterExtension
private static final YdbHelperExtension ydb = new YdbHelperExtension();
Expand All @@ -32,23 +34,19 @@ public class YdbDriverStaticCredsTest {

@BeforeAll
public static void createUsers() throws SQLException {
try (Connection connection = DriverManager.getConnection(jdbcURL.build())) {
try (Statement statement = connection.createStatement()) {
statement.execute(""
+ "CREATE USER user1 PASSWORD NULL;\n"
+ "CREATE USER user2 PASSWORD 'pwss';\n"
+ "CREATE USER user3 PASSWORD 'pw :ss;'\n;"
);
}
try (Statement statement = jdbc.connection().createStatement()) {
statement.execute(""
+ "CREATE USER user1 PASSWORD NULL;\n"
+ "CREATE USER user2 PASSWORD 'pwss';\n"
+ "CREATE USER user3 PASSWORD 'pw :ss;'\n;"
);
}
}

@AfterAll
public static void dropUsers() throws SQLException {
try (Connection connection = DriverManager.getConnection(jdbcURL.build())) {
try (Statement statement = connection.createStatement()) {
statement.execute("DROP USER IF EXISTS user1, user2, user3;");
}
try (Statement statement = jdbc.connection().createStatement()) {
statement.execute("DROP USER IF EXISTS user1, user2, user3;");
}
}

Expand Down

0 comments on commit 3673ad7

Please sign in to comment.