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.
This commit is contained in:

committed by
Tobias Kantusch

parent
fe240c82b4
commit
91537a7364
@@ -15,10 +15,6 @@ import (
|
|||||||
"testing"
|
"testing"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
|
||||||
dockerImage = "python:latest"
|
|
||||||
)
|
|
||||||
|
|
||||||
func TestCreateOrUpdateEnvironment(t *testing.T) {
|
func TestCreateOrUpdateEnvironment(t *testing.T) {
|
||||||
path := helpers.BuildURL(api.BasePath, api.EnvironmentsPath, tests.AnotherEnvironmentIDAsString)
|
path := helpers.BuildURL(api.BasePath, api.EnvironmentsPath, tests.AnotherEnvironmentIDAsString)
|
||||||
|
|
||||||
@@ -34,7 +30,7 @@ func TestCreateOrUpdateEnvironment(t *testing.T) {
|
|||||||
PrewarmingPoolSize: 1,
|
PrewarmingPoolSize: 1,
|
||||||
CPULimit: 100,
|
CPULimit: 100,
|
||||||
MemoryLimit: 100,
|
MemoryLimit: 100,
|
||||||
Image: dockerImage,
|
Image: *testDockerImage,
|
||||||
NetworkAccess: false,
|
NetworkAccess: false,
|
||||||
ExposedPorts: nil,
|
ExposedPorts: nil,
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user