Skip to content
This repository was archived by the owner on Mar 13, 2022. It is now read-only.

Commit 834c67d

Browse files
committed
add assertion
1 parent 6d36aa2 commit 834c67d

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

config/kube_config_test.py

+9
Original file line numberDiff line numberDiff line change
@@ -1291,6 +1291,14 @@ def test_load_kube_config_from_dict(self):
12911291
self.assertEqual(expected, actual)
12921292

12931293
def test_load_kube_config_from_dict_with_temp_file_path(self):
1294+
expected = FakeConfig(
1295+
host=TEST_SSL_HOST,
1296+
token=BEARER_TOKEN_FORMAT % TEST_DATA_BASE64,
1297+
cert_file=self._create_temp_file(TEST_CLIENT_CERT),
1298+
key_file=self._create_temp_file(TEST_CLIENT_KEY),
1299+
ssl_ca_cert=self._create_temp_file(TEST_CERTIFICATE_AUTH),
1300+
verify_ssl=True
1301+
)
12941302
actual = FakeConfig()
12951303
tmp_path = os.path.join(
12961304
os.path.dirname(
@@ -1302,6 +1310,7 @@ def test_load_kube_config_from_dict_with_temp_file_path(self):
13021310
client_configuration=actual,
13031311
temp_file_path=tmp_path)
13041312
self.assertFalse(True if not os.listdir(tmp_path) else False)
1313+
self.assertEqual(expected, actual)
13051314
_cleanup_temp_files
13061315

13071316
def test_load_kube_config_from_empty_file_like_object(self):

0 commit comments

Comments
 (0)