Skip to content

Commit

Permalink
docker_commander_containers_test.dart
Browse files Browse the repository at this point in the history
  • Loading branch information
gmpassos committed May 18, 2024
1 parent 8704677 commit d632230
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions test/docker_commander_containers_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -116,11 +116,13 @@ Future<void> 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);
Expand Down Expand Up @@ -184,7 +186,12 @@ Future<void> 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 =
Expand Down

0 comments on commit d632230

Please sign in to comment.