99import org .junit .jupiter .api .AfterAll ;
1010import org .junit .jupiter .api .Assertions ;
1111import org .junit .jupiter .api .BeforeAll ;
12+ import org .junit .jupiter .api .Disabled ;
1213import org .junit .jupiter .api .Test ;
1314import org .junit .jupiter .api .extension .RegisterExtension ;
1415
2122 *
2223 * @author Aleksandr Gorshenin
2324 */
25+ @ Disabled
2426public 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