From 91537a73644990145d1b890c7268ed7df1e2ff29 Mon Sep 17 00:00:00 2001 From: sirkrypt0 <22522058+sirkrypt0@users.noreply.github.com> Date: Tue, 27 Jul 2021 17:04:10 +0200 Subject: [PATCH] Use test docker image in e2e tests The TestCreateOrUpdateEnvironment function would previously use the python:latest Docker image in its execution environment request. However, this lead to pull rate limiting by Docker Hub in our CI. --- tests/e2e/environments_test.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/tests/e2e/environments_test.go b/tests/e2e/environments_test.go index 2c2548b..0d396f5 100644 --- a/tests/e2e/environments_test.go +++ b/tests/e2e/environments_test.go @@ -15,10 +15,6 @@ import ( "testing" ) -const ( - dockerImage = "python:latest" -) - func TestCreateOrUpdateEnvironment(t *testing.T) { path := helpers.BuildURL(api.BasePath, api.EnvironmentsPath, tests.AnotherEnvironmentIDAsString) @@ -34,7 +30,7 @@ func TestCreateOrUpdateEnvironment(t *testing.T) { PrewarmingPoolSize: 1, CPULimit: 100, MemoryLimit: 100, - Image: dockerImage, + Image: *testDockerImage, NetworkAccess: false, ExposedPorts: nil, }