Add unit test for TestMasterFromZK and TestMesosMasterFromZK
This commit is contained in:
parent
63cdb96c7a
commit
6ce516663a
3 changed files with 50 additions and 0 deletions
11
clusters.go
11
clusters.go
|
@ -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",
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue