@@ -318,8 +318,10 @@ def test_replication_controller_apis(self):
318318 self .assertEqual (name , resp .metadata .name )
319319 self .assertEqual (2 , resp .spec .replicas )
320320
321- resp = api .delete (
322- name = name , body = {}, namespace = 'default' )
321+ api .delete (
322+ name = name ,
323+ namespace = 'default' ,
324+ propagation_policy = 'Background' )
323325
324326 def test_configmap_apis (self ):
325327 client = DynamicClient (api_client .ApiClient (configuration = self .config ))
@@ -357,29 +359,36 @@ def test_configmap_apis(self):
357359 resp = api .delete (
358360 name = name , body = {}, namespace = 'default' )
359361
360- resp = api .get (namespace = 'default' , pretty = True , label_selector = "e2e-test=true" )
362+ resp = api .get (
363+ namespace = 'default' ,
364+ pretty = True ,
365+ label_selector = "e2e-test=true" )
361366 self .assertEqual ([], resp .items )
362-
367+
363368 def test_node_apis (self ):
364369 client = DynamicClient (api_client .ApiClient (configuration = self .config ))
365370 api = client .resources .get (api_version = 'v1' , kind = 'Node' )
366371
367372 for item in api .get ().items :
368373 node = api .get (name = item .metadata .name )
369374 self .assertTrue (len (dict (node .metadata .labels )) > 0 )
370-
371- # test_node_apis_partial_object_metadata lists all nodes in the cluster, but only retrieves object metadata
375+
376+ # test_node_apis_partial_object_metadata lists all nodes in the cluster,
377+ # but only retrieves object metadata
372378 def test_node_apis_partial_object_metadata (self ):
373379 client = DynamicClient (api_client .ApiClient (configuration = self .config ))
374380 api = client .resources .get (api_version = 'v1' , kind = 'Node' )
375-
376- params = {'header_params' : {'Accept' : 'application/json;as=PartialObjectMetadataList;v=v1;g=meta.k8s.io' }}
381+
382+ params = {
383+ 'header_params' : {
384+ 'Accept' : 'application/json;as=PartialObjectMetadataList;v=v1;g=meta.k8s.io' }}
377385 resp = api .get (** params )
378386 self .assertEqual ('PartialObjectMetadataList' , resp .kind )
379387 self .assertEqual ('meta.k8s.io/v1' , resp .apiVersion )
380388
381- params = {'header_params' : {'aCcePt' : 'application/json;as=PartialObjectMetadataList;v=v1;g=meta.k8s.io' }}
389+ params = {
390+ 'header_params' : {
391+ 'aCcePt' : 'application/json;as=PartialObjectMetadataList;v=v1;g=meta.k8s.io' }}
382392 resp = api .get (** params )
383393 self .assertEqual ('PartialObjectMetadataList' , resp .kind )
384394 self .assertEqual ('meta.k8s.io/v1' , resp .apiVersion )
385-
0 commit comments