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()

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

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()

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

test_authenticate_with_mutual_authentication_disabled()
test_authenticate_with_mutual_authentication_required()
test_project_scoped_mapped_auth()
test_unscoped_mapped_auth()
property 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()

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

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()

Prepare the Fixture for use.

This should not be overridden. Concrete fixtures should implement _setUp. Overriding of setUp is still supported, just not recommended.

After setUp has completed, the fixture will have one or more attributes which can be used (these depend totally on the concrete subclass).

Raises

MultipleExceptions if _setUp fails. The last exception captured within the MultipleExceptions will be a SetupError exception.

Returns

None.

Changed in 1.3

The recommendation to override setUp has been reversed - before 1.3, setUp() should be overridden, now it should not be.

Changed in 1.3.1

BaseException is now caught, and only subclasses of Exception are wrapped in MultipleExceptions.

Module contents