Skip to content

Commit

Permalink
Merge pull request kubernetes#888 from dlorenc/list
Browse files Browse the repository at this point in the history
Add an integration test for service list.
  • Loading branch information
dlorenc authored Dec 4, 2016
2 parents 1391073 + ee2bfd3 commit 6ab86c0
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions test/integration/addons_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -120,3 +120,18 @@ func TestDashboard(t *testing.T) {
t.Fatalf("Dashboard is exposed on wrong port, expected 30000, actual %s", port)
}
}

func TestServicesList(t *testing.T) {
minikubeRunner := util.MinikubeRunner{
BinaryPath: *binaryPath,
Args: *args,
T: t}
minikubeRunner.EnsureRunning()

output := minikubeRunner.RunCommand("service list", true)
for _, svc := range []string{"kubernetes", "kube-dns", "kubernetes-dashboard"} {
if !strings.Contains(output, svc) {
t.Errorf("Error, service %s missing from output %s", svc, output)
}
}
}

0 comments on commit 6ab86c0

Please sign in to comment.