pki.tests.test_forms_extendedΒΆ
Comprehensive tests for PKI forms module - focused on increasing coverage.
ClassesΒΆ
Test the get_private_key_location_from_config function. |
|
Test the DevIdAddMethodSelectForm. |
|
Test the DevIdRegistrationForm. |
|
Test the IssuingCaAddMethodSelectForm. |
|
Test IssuingCaFileTypeSelectForm. |
|
Test the TruststoreDownloadForm. |
|
Test the CertificateDownloadForm. |
|
Test the CertProfileConfigForm. |
|
Test TruststoreAddForm. |
|
Test TruststoreAddForm validation with actual files. |
|
Test IssuingCaAddFileImportPkcs12Form. |
|
Test IssuingCaAddFileImportSeparateFilesForm. |
|
Test OwnerCredentialFileImportForm. |
|
Test IssuingCaFileTypeSelectForm. |
|
Test various form field attributes and widgets. |
Module ContentsΒΆ
- class pki.tests.test_forms_extended.TestGetPrivateKeyLocationFromConfig[source]ΒΆ
Test the get_private_key_location_from_config function.
- test_returns_hsm_provided_for_softhsm()[source]ΒΆ
Test that HSM_PROVIDED is returned for SOFTHSM storage type.
- class pki.tests.test_forms_extended.TestDevIdAddMethodSelectForm[source]ΒΆ
Test the DevIdAddMethodSelectForm.
- test_form_valid_with_import_truststore()[source]ΒΆ
Test form is valid when import_truststore is selected.
- class pki.tests.test_forms_extended.TestDevIdRegistrationForm[source]ΒΆ
Test the DevIdRegistrationForm.
- test_form_valid_with_all_fields()[source]ΒΆ
Test form is valid with all required and optional fields.
- test_form_valid_without_optional_unique_name()[source]ΒΆ
Test form is valid without the optional unique_name field.
- test_form_invalid_without_required_fields()[source]ΒΆ
Test form is invalid when required fields are missing.
- class pki.tests.test_forms_extended.TestIssuingCaAddMethodSelectForm[source]ΒΆ
Test the IssuingCaAddMethodSelectForm.
- class pki.tests.test_forms_extended.TestIssuingCaFileTypeSelectForm[source]ΒΆ
Test the IssuingCaFileTypeSelectForm.
- class pki.tests.test_forms_extended.TestTruststoreDownloadForm[source]ΒΆ
Test the TruststoreDownloadForm.
- class pki.tests.test_forms_extended.TestCertificateDownloadForm[source]ΒΆ
Test the CertificateDownloadForm.
- class pki.tests.test_forms_extended.TestCertProfileConfigForm[source]ΒΆ
Test the CertProfileConfigForm.
- class pki.tests.test_forms_extended.TestTruststoreAddFormValidation[source]ΒΆ
Test TruststoreAddForm validation with actual files.
- class pki.tests.test_forms_extended.TestIssuingCaAddFileImportPkcs12Form[source]ΒΆ
Test IssuingCaAddFileImportPkcs12Form.
- class pki.tests.test_forms_extended.TestIssuingCaAddFileImportSeparateFilesForm[source]ΒΆ
Test IssuingCaAddFileImportSeparateFilesForm.
- class pki.tests.test_forms_extended.TestOwnerCredentialFileImportForm[source]ΒΆ
Test OwnerCredentialFileImportForm.
- class pki.tests.test_forms_extended.TestIssuingCaFileTypeSelectForm[source]ΒΆ
Test IssuingCaFileTypeSelectForm.
- class pki.tests.test_forms_extended.TestFormFieldAttributes[source]ΒΆ
Test various form field attributes and widgets.
- test_certificate_download_form_format_choices()[source]ΒΆ
Test CertificateDownloadForm has correct format fields.