Merge pull request #2762 from rajdeepd/master

Added a New test case for GetMinion
pull/6/head
bgrant0607 2014-12-05 13:24:24 -08:00
commit cf7f3de767
1 changed files with 9 additions and 0 deletions

View File

@ -610,6 +610,15 @@ func TestListMinions(t *testing.T) {
c.Validate(t, response, err)
}
func TestGetMinion(t *testing.T) {
c := &testClient{
Request: testRequest{Method: "GET", Path: "/minions/1"},
Response: Response{StatusCode: 200, Body: &api.Minion{ObjectMeta: api.ObjectMeta{Name: "minion-1"}}},
}
response, err := c.Setup().Minions().Get("1")
c.Validate(t, response, err)
}
func TestCreateMinion(t *testing.T) {
requestMinion := &api.Minion{
ObjectMeta: api.ObjectMeta{