From 2791a92f2c1cf438acfce8e6fc8e2ba19ad191c9 Mon Sep 17 00:00:00 2001 From: Rajdeep Dua Date: Fri, 5 Dec 2014 01:49:43 -0800 Subject: [PATCH] Added a New test case for GetMinion --- pkg/client/client_test.go | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/pkg/client/client_test.go b/pkg/client/client_test.go index 99a0c59d070..070255fd3be 100644 --- a/pkg/client/client_test.go +++ b/pkg/client/client_test.go @@ -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{