Add unit tests for pkg/client.ListMinions()

This commit is contained in:
Vishnu Kannan
2014-08-27 21:07:22 +00:00
parent a4b00e33e0
commit 180e9ed493
3 changed files with 15 additions and 0 deletions

View File

@@ -328,6 +328,7 @@ func (c *Client) ServerVersion() (*version.Info, error) {
return &info, nil
}
// Lists all the minions in the cluster.
func (c *Client) ListMinions() (minionList api.MinionList, err error) {
err = c.Get().Path("minions").Do().Into(&minionList)
return