提交 6ab86c01 编写于 作者: D dlorenc 提交者: GitHub

Merge pull request #888 from dlorenc/list

Add an integration test for service list.
......@@ -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)
}
}
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册