Skip to content

Commit

Permalink
Merge pull request #10227 from priyawadhwa/functional-docker-env
Browse files Browse the repository at this point in the history
Only run integration tests that depend on docker-env with docker container runtime
  • Loading branch information
medyagh authored Jan 23, 2021
2 parents d4f8664 + 9bd1528 commit b1ccf54
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/integration/functional_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
3 changes: 3 additions & 0 deletions test/integration/skaffold_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit b1ccf54

Please sign in to comment.