Merge pull request #1058 from vishh/add_list_minions

Adding ListMinions() API to pkg/client.
This commit is contained in:
Daniel Smith
2014-08-27 14:19:57 -07:00
3 changed files with 25 additions and 0 deletions

View File

@@ -542,3 +542,12 @@ func TestGetServerVersion(t *testing.T) {
t.Errorf("expected %v, got %v", e, a)
}
}
func TestListMinions(t *testing.T) {
c := &testClient{
Request: testRequest{Method: "GET", Path: "/minions"},
Response: Response{StatusCode: 200, Body: &api.MinionList{JSONBase: api.JSONBase{ID: "minion-1"}}},
}
response, err := c.Setup().ListMinions()
c.Validate(t, &response, err)
}