kubernetes.aio.config.incluster_config_test module

class kubernetes.aio.config.incluster_config_test.InClusterConfigTest(methodName='runTest')

Bases: IsolatedAsyncioTestCase

get_test_loader(token_filename=None, cert_filename=None, environ={'KUBERNETES_SERVICE_HOST': '127.0.0.1', 'KUBERNETES_SERVICE_PORT': '80'})
setUp()

Hook method for setting up the test fixture before exercising it.

tearDown()

Hook method for deconstructing the test fixture after testing it.

async test_auth_settings_with_authorization_key_and_prefix()

Legacy callers that split the token and prefix across api_key[‘authorization’] and api_key_prefix[‘authorization’] (rather than embedding “Bearer “ in the token itself) must still get the prefix applied. https://github.com/kubernetes-client/python/issues/2592

test_empty_cert_file()
test_empty_host()
test_empty_port()
test_empty_token_file()
test_join_host_port()
test_load_config()
test_no_cert_file()
test_no_host()
test_no_port()
test_no_token_file()
async test_refresh_token()