Skip to content

Commit

Permalink
Add profile argument to command for validateStatusCmd test
Browse files Browse the repository at this point in the history
  • Loading branch information
Josh Woodcock committed Oct 21, 2019
1 parent dc411ab commit 144654e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/integration/functional_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -177,13 +177,13 @@ func validateComponentHealth(ctx context.Context, t *testing.T, profile string)
}

func validateStatusCmd(ctx context.Context, t *testing.T, profile string) {
rr, err := Run(t, exec.CommandContext(ctx, Target(), "status"))
rr, err := Run(t, exec.CommandContext(ctx, Target(), "-p", profile, "status"))
if err != nil {
t.Errorf("%s failed: %v", rr.Args, err)
}

// Custom format
rr, err = Run(t, exec.CommandContext(ctx, Target(), "status", "-f", "host:{{.Host}},kublet:{{.Kubelet}},apiserver:{{.APIServer}},kubeconfig:{{.Kubeconfig}}"))
rr, err = Run(t, exec.CommandContext(ctx, Target(), "-p", profile, "status", "-f", "host:{{.Host}},kublet:{{.Kubelet}},apiserver:{{.APIServer}},kubeconfig:{{.Kubeconfig}}"))
if err != nil {
t.Errorf("%s failed: %v", rr.Args, err)
}
Expand All @@ -193,7 +193,7 @@ func validateStatusCmd(ctx context.Context, t *testing.T, profile string) {
}

// Json output
rr, err = Run(t, exec.CommandContext(ctx, Target(), "status", "-o", "json"))
rr, err = Run(t, exec.CommandContext(ctx, Target(), "-p", profile, "status", "-o", "json"))
if err != nil {
t.Errorf("%s failed: %v", rr.Args, err)
}
Expand Down

0 comments on commit 144654e

Please sign in to comment.