keystoneauth1.tests.unit.extras.kerberos package

keystoneauth1.tests.unit.extras.kerberos package

Submodules

keystoneauth1.tests.unit.extras.kerberos.base module

class keystoneauth1.tests.unit.extras.kerberos.base.TestCase(*args, **kwargs)

Bases: keystoneauth1.tests.unit.utils.TestCase

Test case base class for Kerberos unit tests.

TEST_V3_URL = 'http://127.0.0.1:5000/v3'
assertRequestBody(body=None)

Ensure the request body is the standard Kerberos auth request.

Parameters:body (dict) – the body to compare. If not provided the last request body will be used.
setUp()

keystoneauth1.tests.unit.extras.kerberos.test_fedkerb_loading module

class keystoneauth1.tests.unit.extras.kerberos.test_fedkerb_loading.FedKerbLoadingTests(*args, **kwargs)

Bases: keystoneauth1.tests.unit.utils.TestCase

create(**kwargs)
test_load()
test_load_none()
test_options()

keystoneauth1.tests.unit.extras.kerberos.test_kerberos_loading module

class keystoneauth1.tests.unit.extras.kerberos.test_kerberos_loading.KerberosLoadingTests(*args, **kwargs)

Bases: keystoneauth1.tests.unit.utils.TestCase

test_options()

keystoneauth1.tests.unit.extras.kerberos.test_mapped module

class keystoneauth1.tests.unit.extras.kerberos.test_mapped.TestMappedAuth(*args, **kwargs)

Bases: keystoneauth1.tests.unit.extras.kerberos.base.TestCase

setUp()
test_authenticate_with_mutual_authentication_disabled()
test_authenticate_with_mutual_authentication_required()
test_project_scoped_mapped_auth()
test_unscoped_mapped_auth()
token_url

keystoneauth1.tests.unit.extras.kerberos.test_v3 module

class keystoneauth1.tests.unit.extras.kerberos.test_v3.TestKerberosAuth(*args, **kwargs)

Bases: keystoneauth1.tests.unit.extras.kerberos.base.TestCase

setUp()
test_authenticate_with_kerberos_domain_scoped()
test_authenticate_with_kerberos_mutual_authentication_disabled()
test_authenticate_with_kerberos_mutual_authentication_required()

keystoneauth1.tests.unit.extras.kerberos.utils module

class keystoneauth1.tests.unit.extras.kerberos.utils.KerberosMock(requests_mock)

Bases: fixtures.fixture.Fixture

mock_auth_success(token_id=None, token_body=None, method='POST', url='http://127.0.0.1:5000/v3/auth/tokens')
setUp()

Module contents

Creative Commons Attribution 3.0 License

Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.