tests.tlstests.test_caroutes
Test the CA routes
Module Contents
Functions
|
Check that csr generation works |
|
Test that we got the files |
|
Test signing |
|
Test using same nonce twice, should fail |
|
Test signing as product |
Attributes
- test_have_csrfile(csrfile)[source]
Check that csr generation works
- Parameters:
csrfile (pathlib.Path)
- Return type:
None
- async test_have_mtlscert(mtlsfiles)[source]
Test that we got the files
- Parameters:
mtlsfiles (Tuple[pathlib.Path, pathlib.Path])
- Return type:
None
- async test_sign(csrfile, kraftwerk_jwt_client)[source]
Test signing
- Parameters:
csrfile (pathlib.Path)
kraftwerk_jwt_client (async_asgi_testclient.TestClient)
- Return type:
None
- async test_sign_twice(csrfile, kraftwerk_jwt_client)[source]
Test using same nonce twice, should fail
- Parameters:
csrfile (pathlib.Path)
kraftwerk_jwt_client (async_asgi_testclient.TestClient)
- Return type:
None
- async test_sign_revoke_mtls(datadir)[source]
Test signing as product
- Parameters:
datadir (pathlib.Path)
- Return type:
None