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

Commit

Permalink
fix: typo
Browse files Browse the repository at this point in the history
  • Loading branch information
tomplus committed Mar 15, 2019
1 parent 46288d1 commit bf30bb8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions config/kube_config_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -1099,7 +1099,7 @@ class TestKubeConfigMerger(BaseTestCase):
]
}

def _create_mulit_config(self):
def _create_multi_config(self):
files = []
for part in (
self.TEST_KUBE_CONFIG_PART1,
Expand All @@ -1109,7 +1109,7 @@ def _create_mulit_config(self):
return ENV_KUBECONFIG_PATH_SEPARATOR.join(files)

def test_list_kube_config_contexts(self):
kubeconfigs = self._create_mulit_config()
kubeconfigs = self._create_multi_config()
expected_contexts = [
{'context': {'cluster': 'default'}, 'name': 'no_user'},
{'context': {'cluster': 'ssl', 'user': 'ssl'}, 'name': 'ssl'},
Expand All @@ -1124,15 +1124,15 @@ def test_list_kube_config_contexts(self):
self.assertEqual(active_context, expected_contexts[0])

def test_new_client_from_config(self):
kubeconfigs = self._create_mulit_config()
kubeconfigs = self._create_multi_config()
client = new_client_from_config(
config_file=kubeconfigs, context="simple_token")
self.assertEqual(TEST_HOST, client.configuration.host)
self.assertEqual(BEARER_TOKEN_FORMAT % TEST_DATA_BASE64,
client.configuration.api_key['authorization'])

def test_save_changes(self):
kubeconfigs = self._create_mulit_config()
kubeconfigs = self._create_multi_config()

# load configuration, update token, save config
kconf = KubeConfigMerger(kubeconfigs)
Expand Down

0 comments on commit bf30bb8

Please sign in to comment.