Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ded3d12 + a7c7829 commit 7fc2c31Copy full SHA for 7fc2c31
config/kube_config_test.py
@@ -1399,11 +1399,13 @@ def test_get_api_key_with_prefix_returns_token(self):
1399
1400
def test_auth_settings_calls_get_api_key_with_prefix(self):
1401
expected_token = 'expected_token'
1402
+ old_token = 'old_token'
1403
1404
def fake_get_api_key_with_prefix(identifier):
1405
self.assertEqual('authorization', identifier)
1406
return expected_token
1407
config = Configuration()
1408
+ config.api_key['authorization'] = old_token
1409
config.get_api_key_with_prefix = fake_get_api_key_with_prefix
1410
self.assertEqual(expected_token,
1411
config.auth_settings()['BearerToken']['value'])
0 commit comments