@@ -51,6 +51,7 @@ def test_get_pool(self):
5151 assert pool .id == 456
5252 assert pool .cluster_id == 18881
5353 assert pool .type .id == "g6-standard-4"
54+ assert pool .label == "example-node-pool"
5455 assert pool .disk_encryption == InstanceDiskEncryptionType .enabled
5556
5657 assert pool .disks is not None
@@ -162,6 +163,7 @@ def test_load_node_pool(self):
162163 self .assertEqual (pool .id , 456 )
163164 self .assertEqual (pool .cluster_id , 18881 )
164165 self .assertEqual (pool .type .id , "g6-standard-4" )
166+ self .assertEqual (pool .label , "example-node-pool" )
165167 self .assertIsNotNone (pool .disks )
166168 self .assertIsNotNone (pool .nodes )
167169 self .assertIsNotNone (pool .autoscaler )
@@ -251,6 +253,7 @@ def test_lke_node_pool_update(self):
251253
252254 pool .tags = ["foobar" ]
253255 pool .count = 5
256+ pool .label = "testing-label"
254257 pool .autoscaler = {
255258 "enabled" : True ,
256259 "min" : 2 ,
@@ -274,6 +277,7 @@ def test_lke_node_pool_update(self):
274277 "min" : 2 ,
275278 "max" : 10 ,
276279 },
280+ "label" : "testing-label" ,
277281 "labels" : {
278282 "updated-key" : "updated-value" ,
279283 },
@@ -546,6 +550,7 @@ def test_cluster_enterprise(self):
546550 pool = LKENodePool (self .client , 789 , 18882 )
547551 assert pool .k8s_version == "1.31.1+lke1"
548552 assert pool .update_strategy == "rolling_update"
553+ assert pool .label == "enterprise-node-pool"
549554
550555 def test_lke_tiered_version (self ):
551556 version = TieredKubeVersion (self .client , "1.32" , "standard" )
0 commit comments