Add unit test for TestMasterFromZK and TestMesosMasterFromZK

This commit is contained in:
Lawrence Wong 2022-08-22 14:54:03 -07:00
parent 63cdb96c7a
commit 6ce516663a
3 changed files with 50 additions and 0 deletions

View file

@ -65,3 +65,14 @@ func GetDefaultClusterFromZKUrl(zkURL string) *Cluster {
AgentRoot: "/var/lib/mesos",
}
}
func GetDefaultMesosClusterFromZKUrl(zkURL string) *Cluster {
return &Cluster{
Name: "defaultCluster",
AuthMechanism: "UNAUTHENTICATED",
ZK: zkURL,
SchedZKPath: "/mesos",
AgentRunDir: "latest",
AgentRoot: "/var/lib/mesos",
}
}