File tree 1 file changed +5
-2
lines changed
1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -331,6 +331,9 @@ def test_configmap_apis(self):
331
331
"apiVersion" : "v1" ,
332
332
"metadata" : {
333
333
"name" : name ,
334
+ "labels" : {
335
+ "e2e-test" : "true" ,
336
+ },
334
337
},
335
338
"data" : {
336
339
"config.json" : "{\" command\" :\" /usr/bin/mysqld_safe\" }" ,
@@ -344,7 +347,7 @@ def test_configmap_apis(self):
344
347
self .assertEqual (name , resp .metadata .name )
345
348
346
349
resp = api .get (
347
- name = name , namespace = 'default' )
350
+ name = name , namespace = 'default' , label_selector = "e2e-test=true" )
348
351
self .assertEqual (name , resp .metadata .name )
349
352
350
353
test_configmap ['data' ]['config.json' ] = "{}"
@@ -354,7 +357,7 @@ def test_configmap_apis(self):
354
357
resp = api .delete (
355
358
name = name , body = {}, namespace = 'default' )
356
359
357
- resp = api .get (namespace = 'default' , pretty = True )
360
+ resp = api .get (namespace = 'default' , pretty = True , label_selector = "e2e-test=true" )
358
361
self .assertEqual ([], resp .items )
359
362
360
363
def test_node_apis (self ):
You can’t perform that action at this time.
0 commit comments