cmp.tests.test_viewsΒΆ
Tests for CMP views.
ClassesΒΆ
Tests for CmpInitializationRequestView. |
|
Tests for CmpCertificationRequestView. |
|
Tests for path parameter extraction in CmpRequestView. |
FunctionsΒΆ
Provide a Django RequestFactory. |
|
Mock CmpCertificateRequestContext. |
Module ContentsΒΆ
- class cmp.tests.test_views.TestCmpInitializationRequestView[source]ΒΆ
Tests for CmpInitializationRequestView.
- test_post_initialization_with_domain_only(mock_context_cls, mock_validator_cls, mock_parser_cls, mock_auth_cls, mock_authz_cls, mock_profile_validator_cls, mock_processor_cls, mock_responder_cls, request_factory, mock_request_context)[source]ΒΆ
Test POST request to initialization endpoint with domain name only.
- test_post_initialization_with_certificate_profile(mock_context_cls, mock_validator_cls, mock_parser_cls, mock_auth_cls, mock_authz_cls, mock_profile_validator_cls, mock_processor_cls, mock_responder_cls, request_factory, mock_request_context)[source]ΒΆ
Test POST request to initialization endpoint with certificate profile.
- test_post_authorization_with_correct_operations(mock_context_cls, mock_validator_cls, mock_parser_cls, mock_auth_cls, mock_authz_cls, mock_profile_validator_cls, mock_processor_cls, mock_responder_cls, request_factory, mock_request_context)[source]ΒΆ
Test that authorization is called with correct operations for initialization.
- class cmp.tests.test_views.TestCmpCertificationRequestView[source]ΒΆ
Tests for CmpCertificationRequestView.
- test_post_certification_with_domain_only(mock_context_cls, mock_validator_cls, mock_parser_cls, mock_auth_cls, mock_authz_cls, mock_profile_validator_cls, mock_processor_cls, mock_responder_cls, request_factory, mock_request_context)[source]ΒΆ
Test POST request to certification endpoint with domain name only.
- test_post_certification_with_certificate_profile(mock_context_cls, mock_validator_cls, mock_parser_cls, mock_auth_cls, mock_authz_cls, mock_profile_validator_cls, mock_processor_cls, mock_responder_cls, request_factory, mock_request_context)[source]ΒΆ
Test POST request to certification endpoint with certificate profile.
- test_post_authorization_with_certification_operation(mock_context_cls, mock_validator_cls, mock_parser_cls, mock_auth_cls, mock_authz_cls, mock_profile_validator_cls, mock_processor_cls, mock_responder_cls, request_factory, mock_request_context)[source]ΒΆ
Test that authorization is called with correct operations for certification.
- class cmp.tests.test_views.TestCmpRequestViewPathParamExtraction[source]ΒΆ
Tests for path parameter extraction in CmpRequestView.
- test_extract_path_domain_only(request_factory)[source]ΒΆ
Test extraction with only domain name (with trailing slash).
- test_extract_path_profile_only(request_factory)[source]ΒΆ
Test extraction with only certificate profile.
- test_extract_path_profile_and_operation(request_factory)[source]ΒΆ
Test extraction with only certificate profile.
- test_extract_path_domain_and_profile(request_factory)[source]ΒΆ
Test extraction with domain name and certificate profile.
- test_extract_path_domain_and_profile_td(request_factory)[source]ΒΆ
Test extraction with domain name and certificate profile using ~ separator.
- test_extract_path_domain_profile_td_operation(request_factory)[source]ΒΆ
Test extraction with domain name, certificate profile using ~ separator, and operation.
- test_extract_path_domain_and_operation(request_factory)[source]ΒΆ
Test extraction with domain name and operation.
- test_extract_path_all(request_factory)[source]ΒΆ
Test extraction with domain name, certificate profile, and operation.
- test_extract_path_empty_domain(request_factory)[source]ΒΆ
Test extraction with empty domain segment.
- test_extract_path_invalid_empty_profile_after_td(request_factory)[source]ΒΆ
Test extraction with empty profile in domain segment.