diff --git a/test/docker_commander_containers_test.dart b/test/docker_commander_containers_test.dart index b3f8c9b..c24db73 100644 --- a/test/docker_commander_containers_test.dart +++ b/test/docker_commander_containers_test.dart @@ -116,11 +116,13 @@ Future main() async { expect(exitCode == 0 || exitCode == 137, isTrue); }); - test('MySQL', () async { + testMySQL({bool forceNativePasswordAuthentication = false}) async { var freeListenPort = await getFreeListenPort(startPort: 3106, endPort: 3206); - var config = MySQLContainerConfig(hostPort: freeListenPort); + var config = MySQLContainerConfig( + hostPort: freeListenPort, + forceNativePasswordAuthentication: forceNativePasswordAuthentication); var dockerContainer = await config.run(dockerCommander); _log.info(dockerContainer); @@ -184,7 +186,12 @@ Future main() async { _log.info('exitCode: $exitCode'); expect(exitCode == 0, isTrue); - }); + } + + test('MySQL', () async => testMySQL()); + + test('MySQL', + () async => testMySQL(forceNativePasswordAuthentication: true)); test('Apache Httpd', () async { var freeListenPort =