This repository was archived by the owner on Mar 13, 2022. It is now read-only.
File tree 1 file changed +23
-2
lines changed
1 file changed +23
-2
lines changed Original file line number Diff line number Diff line change @@ -1342,7 +1342,7 @@ def test__get_kube_config_loader_for_yaml_file_persist(self):
1342
1342
actual = _get_kube_config_loader_for_yaml_file (config_file ,
1343
1343
persist_config = True )
1344
1344
self .assertTrue (callable (actual ._config_persister ))
1345
- self .assertEquals (actual ._config_persister .__name__ , "save_changes" )
1345
+ self .assertEqual (actual ._config_persister .__name__ , "save_changes" )
1346
1346
1347
1347
1348
1348
class TestKubernetesClientConfiguration (BaseTestCase ):
@@ -1517,6 +1517,26 @@ class TestKubeConfigMerger(BaseTestCase):
1517
1517
}
1518
1518
]
1519
1519
}
1520
+ TEST_KUBE_CONFIG_PART6 = {
1521
+ "current-context" : "no_user" ,
1522
+ "contexts" : [
1523
+ {
1524
+ "name" : "no_user" ,
1525
+ "context" : {
1526
+ "cluster" : "default"
1527
+ }
1528
+ },
1529
+ ],
1530
+ "clusters" : [
1531
+ {
1532
+ "name" : "default" ,
1533
+ "cluster" : {
1534
+ "server" : TEST_HOST
1535
+ }
1536
+ },
1537
+ ],
1538
+ "users" : None
1539
+ }
1520
1540
1521
1541
def _create_multi_config (self ):
1522
1542
files = []
@@ -1525,7 +1545,8 @@ def _create_multi_config(self):
1525
1545
self .TEST_KUBE_CONFIG_PART2 ,
1526
1546
self .TEST_KUBE_CONFIG_PART3 ,
1527
1547
self .TEST_KUBE_CONFIG_PART4 ,
1528
- self .TEST_KUBE_CONFIG_PART5 ):
1548
+ self .TEST_KUBE_CONFIG_PART5 ,
1549
+ self .TEST_KUBE_CONFIG_PART6 ):
1529
1550
files .append (self ._create_temp_file (yaml .safe_dump (part )))
1530
1551
return ENV_KUBECONFIG_PATH_SEPARATOR .join (files )
1531
1552
You can’t perform that action at this time.
0 commit comments