@Test public void testPreferSslConfigurationOnNoneSSLInstance(TestContext context) { Async async = context.async(); SQLClient clientSsl = createClient(vertx, new JsonObject().put("sslMode", "prefer")); clientSsl.getConnection(sqlConnectionAsyncResult -> { context.assertTrue(sqlConnectionAsyncResult.succeeded()); conn = sqlConnectionAsyncResult.result(); conn.query("SELECT 1", ar -> { if (ar.failed()) { context.fail("Should not fail on ssl connection"); } else { async.complete(); } }); }); }
@Test public void testPreferSslConfigurationOnNoneSSLInstance(TestContext context) { Async async = context.async(); SQLClient clientSsl = createClient(vertx, new JsonObject().put("sslMode", "prefer")); clientSsl.getConnection(sqlConnectionAsyncResult -> { context.assertTrue(sqlConnectionAsyncResult.succeeded()); conn = sqlConnectionAsyncResult.result(); conn.query("SELECT 1", ar -> { if (ar.failed()) { context.fail("Should not fail on ssl connection"); } else { async.complete(); } }); }); }
@Test public void testPreferSslConfigurationOnNoneSSLInstance(TestContext context) { Async async = context.async(); SQLClient clientSsl = createClient(vertx, new JsonObject().put("sslMode", "prefer")); clientSsl.getConnection(sqlConnectionAsyncResult -> { context.assertTrue(sqlConnectionAsyncResult.succeeded()); conn = sqlConnectionAsyncResult.result(); conn.query("SELECT 1", ar -> { if (ar.failed()) { context.fail("Should not fail on ssl connection"); } else { async.complete(); } }); }); }