If the server uses caching_sha2_password, the first time a client connects to the server, the server will require a native SSL connection. So all the SSL tunnel tests should be run after the caching_sha2_password initialization.
Steps to reproduce:
Restart a MySQL server 8.x, keep it authentication plugin as caching_sha2_password
Run SslTunnelIntegrationTest first, failed
Errors:
SslTunnelIntegrationTest.sslTunnelConnectionTest » R2dbcPermissionDenied Access denied for user 'root'@'172.18.0.1' (using password: YES)
Motivation:
If the server uses
caching_sha2_password
, the first time a client connects to the server, the server will require a native SSL connection. So all the SSL tunnel tests should be run after thecaching_sha2_password
initialization.Steps to reproduce:
caching_sha2_password
SslTunnelIntegrationTest
first, failedSee also https://github.com/asyncer-io/r2dbc-mysql/actions/runs/7880628673/job/21502952115 . It skipped
MariaDbTextIntegrationTest
andSslTunnelIntegrationTest
was the first case run, so it failedModification:
Add an initialization of
SslTunnelIntegrationTest
, it ensures the server has cachedroot
user.Result:
SslTunnelIntegrationTest.sslTunnelConnectionTest
will not fail due to ordering of tests