From 1189044fe1bebc190a93aa72095880b20fae45a1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20de=20la=20Pe=C3=B1a?= Date: Thu, 10 Nov 2022 13:23:57 +0100 Subject: [PATCH] chore: use a fixed version of MySQL (#617) --- docker_test.go | 9 +++++---- docs/features/wait/log.md | 2 +- docs/features/wait/multi.md | 2 +- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/docker_test.go b/docker_test.go index eb4bc5609e..d49cb05bf5 100644 --- a/docker_test.go +++ b/docker_test.go @@ -39,6 +39,7 @@ import ( ) const ( + mysqlImage = "docker.io/mysql:8.0.30" nginxImage = "docker.io/nginx" nginxAlpineImage = "docker.io/nginx:alpine" nginxDefaultPort = "80/tcp" @@ -968,7 +969,7 @@ func TestContainerCreationTimesOutWithHttp(t *testing.T) { func TestContainerCreationWaitsForLogContextTimeout(t *testing.T) { ctx := context.Background() req := ContainerRequest{ - Image: "docker.io/mysql:latest", + Image: mysqlImage, ExposedPorts: []string{"3306/tcp", "33060/tcp"}, Env: map[string]string{ "MYSQL_ROOT_PASSWORD": "password", @@ -991,7 +992,7 @@ func TestContainerCreationWaitsForLog(t *testing.T) { // exposePorts { ctx := context.Background() req := ContainerRequest{ - Image: "docker.io/mysql:latest", + Image: mysqlImage, ExposedPorts: []string{"3306/tcp", "33060/tcp"}, Env: map[string]string{ "MYSQL_ROOT_PASSWORD": "password", @@ -1304,7 +1305,7 @@ func Test_BuildContainerFromDockerfileWithBuildLog(t *testing.T) { func TestContainerCreationWaitsForLogAndPortContextTimeout(t *testing.T) { ctx := context.Background() req := ContainerRequest{ - Image: "docker.io/mysql:latest", + Image: mysqlImage, ExposedPorts: []string{"3306/tcp", "33060/tcp"}, Env: map[string]string{ "MYSQL_ROOT_PASSWORD": "password", @@ -1363,7 +1364,7 @@ func TestContainerCreationWaitingForHostPortWithoutBashThrowsAnError(t *testing. func TestContainerCreationWaitsForLogAndPort(t *testing.T) { ctx := context.Background() req := ContainerRequest{ - Image: "docker.io/mysql:latest", + Image: mysqlImage, ExposedPorts: []string{"3306/tcp", "33060/tcp"}, Env: map[string]string{ "MYSQL_ROOT_PASSWORD": "password", diff --git a/docs/features/wait/log.md b/docs/features/wait/log.md index 2825423498..e83f85d6db 100644 --- a/docs/features/wait/log.md +++ b/docs/features/wait/log.md @@ -9,7 +9,7 @@ The Log wait strategy will check if a string occurs in the container logs for a ```golang req := ContainerRequest{ - Image: "docker.io/mysql:latest", + Image: "docker.io/mysql:8.0.30", ExposedPorts: []string{"3306/tcp", "33060/tcp"}, Env: map[string]string{ "MYSQL_ROOT_PASSWORD": "password", diff --git a/docs/features/wait/multi.md b/docs/features/wait/multi.md index 0511d0d449..9c9d694222 100644 --- a/docs/features/wait/multi.md +++ b/docs/features/wait/multi.md @@ -6,7 +6,7 @@ The Multi wait strategy will hold a list of wait strategies, in order to wait fo ```golang req := ContainerRequest{ - Image: "docker.io/mysql:latest", + Image: "docker.io/mysql:8.0.30", ExposedPorts: []string{"3306/tcp", "33060/tcp"}, Env: map[string]string{ "MYSQL_ROOT_PASSWORD": "password",