@@ -309,20 +309,44 @@ BOOST_FIXTURE_TEST_CASE(bad_password_cache_miss, any_connection_fixture)
309
309
.validate_error_contains (common_server_errc::er_access_denied_error, {" access denied" , regular_user});
310
310
}
311
311
312
- // Spotcheck: an invalid DB error after cache miss works
313
- BOOST_FIXTURE_TEST_CASE (bad_db_cache_miss, any_connection_fixture)
314
- {
315
- // Setup
316
- auto params = connect_params_builder ().ssl (ssl_mode::require).database (" bad_db" ).build ();
317
- clear_sha256_cache ();
318
-
319
- // Connect fails
320
- conn.async_connect (params, as_netresult)
321
- .validate_error (
322
- common_server_errc::er_dbaccess_denied_error,
323
- " Access denied for user 'integ_user'@'%' to database 'bad_db'"
324
- );
325
- }
312
+ // TODO: re-enable these tests when https://github.com/boostorg/mysql/issues/468 is fixed
313
+ // // Spotcheck: an invalid DB error after a cache miss works
314
+ // BOOST_FIXTURE_TEST_CASE(bad_db_cache_miss, any_connection_fixture)
315
+ // {
316
+ // // Setup
317
+ // auto params = connect_params_builder()
318
+ // .ssl(ssl_mode::require)
319
+ // .credentials(regular_user, regular_passwd)
320
+ // .database("bad_db")
321
+ // .build();
322
+ // clear_sha256_cache();
323
+
324
+ // // Connect fails
325
+ // conn.async_connect(params, as_netresult)
326
+ // .validate_error(
327
+ // common_server_errc::er_dbaccess_denied_error,
328
+ // "Access denied for user 'integ_user'@'%' to database 'bad_db'"
329
+ // );
330
+ // }
331
+
332
+ // // Spotcheck: an invalid DB error after a cache hit works
333
+ // BOOST_FIXTURE_TEST_CASE(bad_db_cache_hit, any_connection_fixture)
334
+ // {
335
+ // // Setup
336
+ // auto params = connect_params_builder()
337
+ // .ssl(ssl_mode::disable)
338
+ // .credentials(regular_user, regular_passwd)
339
+ // .database("bad_db")
340
+ // .build();
341
+ // load_sha256_cache(regular_user, regular_passwd);
342
+
343
+ // // Connect fails
344
+ // conn.async_connect(params, as_netresult)
345
+ // .validate_error(
346
+ // common_server_errc::er_dbaccess_denied_error,
347
+ // "Access denied for user 'integ_user'@'%' to database 'bad_db'"
348
+ // );
349
+ // }
326
350
327
351
// Spotcheck: caching_sha2_password works with old connection
328
352
BOOST_FIXTURE_TEST_CASE (tcp_ssl_connection_, io_context_fixture)
0 commit comments