This repository was archived by the owner on Mar 13, 2022. It is now read-only.
File tree 2 files changed +5
-3
lines changed
2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -503,7 +503,7 @@ def safe_get(self, key):
503
503
504
504
def __getitem__ (self , key ):
505
505
v = self .safe_get (key )
506
- if not v :
506
+ if v is None :
507
507
raise ConfigException (
508
508
'Invalid kube-config file. Expected key %s in %s'
509
509
% (key , self .name ))
Original file line number Diff line number Diff line change @@ -564,13 +564,14 @@ class TestKubeConfigLoader(BaseTestCase):
564
564
"server" : TEST_SSL_HOST ,
565
565
"certificate-authority-data" :
566
566
TEST_CERTIFICATE_AUTH_BASE64 ,
567
+ "insecure-skip-tls-verify" : False ,
567
568
}
568
569
},
569
570
{
570
571
"name" : "no_ssl_verification" ,
571
572
"cluster" : {
572
573
"server" : TEST_SSL_HOST ,
573
- "insecure-skip-tls-verify" : "true" ,
574
+ "insecure-skip-tls-verify" : True ,
574
575
}
575
576
},
576
577
],
@@ -1076,7 +1077,8 @@ def test_ssl(self):
1076
1077
token = BEARER_TOKEN_FORMAT % TEST_DATA_BASE64 ,
1077
1078
cert_file = self ._create_temp_file (TEST_CLIENT_CERT ),
1078
1079
key_file = self ._create_temp_file (TEST_CLIENT_KEY ),
1079
- ssl_ca_cert = self ._create_temp_file (TEST_CERTIFICATE_AUTH )
1080
+ ssl_ca_cert = self ._create_temp_file (TEST_CERTIFICATE_AUTH ),
1081
+ verify_ssl = True
1080
1082
)
1081
1083
actual = FakeConfig ()
1082
1084
KubeConfigLoader (
You can’t perform that action at this time.
0 commit comments