mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-31 07:20:13 +00:00
Merge pull request #2762 from rajdeepd/master
Added a New test case for GetMinion
This commit is contained in:
commit
cf7f3de767
@ -610,6 +610,15 @@ func TestListMinions(t *testing.T) {
|
|||||||
c.Validate(t, response, err)
|
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) {
|
func TestCreateMinion(t *testing.T) {
|
||||||
requestMinion := &api.Minion{
|
requestMinion := &api.Minion{
|
||||||
ObjectMeta: api.ObjectMeta{
|
ObjectMeta: api.ObjectMeta{
|
||||||
|
Loading…
Reference in New Issue
Block a user