Merge pull request #10227 from priyawadhwa/functional-docker-env

Only run integration tests that depend on docker-env with docker container runtime
pull/10246/head
Medya Ghazizadeh 2021-01-23 09:59:30 -08:00 committed by GitHub
commit b1ccf54f83
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 0 deletions

View File

@ -159,7 +159,11 @@ func validateNodeLabels(ctx context.Context, t *testing.T, profile string) {
}
// check functionality of minikube after evaling docker-env
// TODO: Add validatePodmanEnv for crio runtime: #10231
func validateDockerEnv(ctx context.Context, t *testing.T, profile string) {
if cr := ContainerRuntime(); cr != "docker" {
t.Skipf("only validate docker env with docker container runtime, currently testing %s", cr)
}
defer PostMortemLogs(t, profile)
mctx, cancel := context.WithTimeout(ctx, Seconds(120))
defer cancel()

View File

@ -38,6 +38,9 @@ func TestSkaffold(t *testing.T) {
if NoneDriver() {
t.Skip("none driver doesn't support `minikube docker-env`; skaffold depends on this command")
}
if cr := ContainerRuntime(); cr != "docker" {
t.Skipf("skaffold requires docker-env, currently testing %s container runtime", cr)
}
profile := UniqueProfileName("skaffold")
ctx, cancel := context.WithTimeout(context.Background(), Minutes(5))