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.
1 parent 3ea8003 commit eadfb2aCopy full SHA for eadfb2a
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
+ api_key = {'authorization': 'expected_token'}
1403
1404
def fake_get_api_key_with_prefix(identifier):
1405
self.assertEqual('authorization', identifier)
1406
return expected_token
- config = Configuration()
1407
+
1408
+ config = Configuration(api_key=api_key)
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