est.tests.test_est_interfaceΒΆ
Tests for the EST interface endpoints.
FunctionsΒΆ
|
Get a mock truststore for testing. |
|
Test the get_credential_for_certificate method. |
|
|
|
|
Tests the TLS client certificate verification if no valid PEM is passed. |
|
Tests that an issued credential can be enrolled via EST simpleenroll using an IDevID. |
|
Tests that the same domain credential cannot be enrolled twice via EST simpleenroll using an IDevID. |
|
Tests that an application credential cannot directly be enrolled via EST simpleenroll using an IDevID. |
|
Tests that an issued credential can be re-enrolled via EST simplereenroll. |
|
Tests that an issued credential cannot be re-enrolled if the TLS client cert does not match the issued cred. |
Module ContentsΒΆ
- est.tests.test_est_interface.get_mock_truststore(certificates)[source]ΒΆ
Get a mock truststore for testing.
- Parameters:
certificates (list[cryptography.x509.Certificate])
- Return type:
unittest.mock.MagicMock
- est.tests.test_est_interface.test_get_credential_for_certificate(mock_get, mock_filter)[source]ΒΆ
Test the get_credential_for_certificate method.
- Return type:
None
- est.tests.test_est_interface.test_authenticate_username_password_success(mock_filter, request_factory, est_simple_enrollment_view)[source]ΒΆ
- est.tests.test_est_interface.test_authenticate_username_password_missing_header(request_factory, est_simple_enrollment_view)[source]ΒΆ
- est.tests.test_est_interface.test_post_authentication_failure(mock_auth, mock_extract_domain, request_factory, est_simple_enrollment_view)[source]ΒΆ
- est.tests.test_est_interface.test_issue_credential_invalid_template(mock_issue, est_simple_enrollment_view)[source]ΒΆ
- est.tests.test_est_interface.test_tls_client_cert_verification_no_cert(est_simple_enrollment_view)[source]ΒΆ
Tests the TLS client certificate verification if no valid PEM is passed.
- Return type:
None
- est.tests.test_est_interface.test_tls_client_cert_domain_credential_enrollment()[source]ΒΆ
Tests that an issued credential can be enrolled via EST simpleenroll using an IDevID.
- Return type:
None
- est.tests.test_est_interface.test_tls_client_cert_enrollment_twice()[source]ΒΆ
Tests that the same domain credential cannot be enrolled twice via EST simpleenroll using an IDevID.
- Return type:
None
- est.tests.test_est_interface.test_tls_client_cert_application_credential_enrollment()[source]ΒΆ
Tests that an application credential cannot directly be enrolled via EST simpleenroll using an IDevID.
- Return type:
None