Merge pull request #888 from dlorenc/list

Add an integration test for service list.
pull/889/head
dlorenc 2016-12-03 17:34:41 -08:00 committed by GitHub
commit 6ab86c0151
1 changed files with 15 additions and 0 deletions

View File

@ -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)
}
}
}