Skip to content

Commit

Permalink
Add start/stop test for plain old docker
Browse files Browse the repository at this point in the history
  • Loading branch information
Priya Wadhwa committed May 7, 2020
1 parent 8096094 commit 57b254a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/integration/start_stop_delete_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,9 @@ func TestStartStop(t *testing.T) {
"--disable-driver-mounts",
"--extra-config=kubeadm.ignore-preflight-errors=SystemVerification",
}},
{"docker", constants.DefaultKubernetesVersion, []string{
"--container-runtime=docker",
}},
{"embed-certs", constants.DefaultKubernetesVersion, []string{
"--embed-certs",
}},
Expand Down Expand Up @@ -120,12 +123,14 @@ func TestStartStop(t *testing.T) {
}
}

fmt.Println("Enabling dashboard...")
// Enable an addon to assert it comes up afterwards
rr, err = Run(t, exec.CommandContext(ctx, Target(), "addons", "enable", "dashboard", "-p", profile))
if err != nil {
t.Errorf("failed to enable an addon post-stop. args %q: %v", rr.Command(), err)
}

fmt.Println(startArgs)
rr, err = Run(t, exec.CommandContext(ctx, Target(), startArgs...))
if err != nil {
// Explicit fatal so that failures don't move directly to deletion
Expand All @@ -135,6 +140,7 @@ func TestStartStop(t *testing.T) {
if strings.Contains(tc.name, "cni") {
t.Logf("WARNING: cni mode requires additional setup before pods can schedule :(")
} else {
fmt.Println("Wating for busybox and dashboard...")
if _, err := PodWait(ctx, t, profile, "default", "integration-test=busybox", Minutes(7)); err != nil {
t.Fatalf("failed waiting for pod 'busybox' post-stop-start: %v", err)
}
Expand Down

0 comments on commit 57b254a

Please sign in to comment.