diff --git a/node_pool.go b/node_pool.go index e5ce3a9..45cff71 100644 --- a/node_pool.go +++ b/node_pool.go @@ -14,6 +14,7 @@ const ( type NodePool struct { ID string `json:"id"` + Name string `json:"name"` NodeTypeName string `json:"nodeTypeName"` ClusterName string `json:"clusterName"` DesiredQuantity int `json:"desiredQuantity"` diff --git a/node_pool_test.go b/node_pool_test.go index 19c9933..87b4fe4 100644 --- a/node_pool_test.go +++ b/node_pool_test.go @@ -11,6 +11,7 @@ import ( const nodePoolJSON = ` { "Id": "test", + "name": "test", "clusterName": "test", "nodeTypeName": "general-1", "quantity": 2, @@ -49,6 +50,7 @@ func TestDescribeNodePool(t *testing.T) { assert.Nil(t, err) assert.Equal(t, fakeNodePool, nodePool) + assert.Equal(t, fakeNodePool.Name, "test") assert.Equal(t, fakeNodePool.Labels[0].Key, "hello") assert.Equal(t, fakeNodePool.Labels[0].Value, "world") assert.Equal(t, fakeNodePool.Taints[0].Effect, EFFECT_NO_SCHEDULE)