request.tests.test_authentication_extendedΒΆ
Extended tests for request/authentication.py to increase coverage.
ClassesΒΆ
Extended tests for UsernamePasswordAuthentication. |
|
Extended tests for ClientCertificateAuthentication. |
|
Tests for CMP Shared Secret Authentication. |
|
Tests for IDevID Authentication. |
|
Tests for composite authentication patterns. |
|
Tests for authentication edge cases and error conditions. |
Module ContentsΒΆ
- class request.tests.test_authentication_extended.TestUsernamePasswordAuthenticationExtended[source]ΒΆ
Extended tests for UsernamePasswordAuthentication.
- test_authenticate_device_without_est_password(device_instance)[source]ΒΆ
Test authentication fails when device has no EST password configured.
- Parameters:
device_instance (dict[str, Any])
- Return type:
None
- class request.tests.test_authentication_extended.TestClientCertificateAuthenticationExtended[source]ΒΆ
Extended tests for ClientCertificateAuthentication.
- test_authenticate_no_client_certificate()[source]ΒΆ
Test authentication returns None when no client certificate provided.
- Return type:
None
Tests for CMP Shared Secret Authentication.
Test authentication raises error when protocol is not CMP.
- Return type:
None
Test authentication raises error when no parsed message.
- Return type:
None
Test authentication raises error with invalid message type.
- Return type:
None
- class request.tests.test_authentication_extended.TestIDevIDAuthentication[source]ΒΆ
Tests for IDevID Authentication.
- test_authenticate_no_raw_message()[source]ΒΆ
Test authentication returns None when no raw_message.
- Return type:
None
- test_authenticate_with_valid_idevid(device_instance)[source]ΒΆ
Test authentication with valid IDevID certificate.
- Parameters:
device_instance (dict[str, Any])
- Return type:
None
- test_authenticate_idevid_authentication_error(device_instance)[source]ΒΆ
Test authentication fails when IDevID authentication raises error.
- Parameters:
device_instance (dict[str, Any])
- Return type:
None
- class request.tests.test_authentication_extended.TestCompositeAuthentication[source]ΒΆ
Tests for composite authentication patterns.
- class request.tests.test_authentication_extended.TestAuthenticationEdgeCases[source]ΒΆ
Tests for authentication edge cases and error conditions.