tests.test_cfssl

Test CFSSL wrappers

Module Contents

Functions

test_get_ca()

Test CA fetching

one_revoked_cert(ginosession)

Make sure we have at least one revoked cert

test_get_crl(one_revoked_cert)

Test CA fetching

test_reasons()

Test that validate_reason works as expected

test_crl_der_route(suffix, unauth_client, one_revoked_cert)

Check that we can get a parseable CRL from the route

test_crl_pem_route(unauth_client, one_revoked_cert)

Check that we can get a parseable CRL from the route

Attributes

LOGGER

LOGGER[source]
async test_get_ca()[source]

Test CA fetching

Return type:

None

async one_revoked_cert(ginosession)[source]

Make sure we have at least one revoked cert

Parameters:

ginosession (None)

Return type:

None

async test_get_crl(one_revoked_cert)[source]

Test CA fetching

Parameters:

one_revoked_cert (None)

Return type:

None

test_reasons()[source]

Test that validate_reason works as expected

Return type:

None

async test_crl_der_route(suffix, unauth_client, one_revoked_cert)[source]

Check that we can get a parseable CRL from the route

Parameters:
  • suffix (str)

  • unauth_client (async_asgi_testclient.TestClient)

  • one_revoked_cert (None)

Return type:

None

async test_crl_pem_route(unauth_client, one_revoked_cert)[source]

Check that we can get a parseable CRL from the route

Parameters:
  • unauth_client (async_asgi_testclient.TestClient)

  • one_revoked_cert (None)

Return type:

None