pki.tests.test_models.test_issuing_ca_model¶
Tests for the CaModel class.
Attributes¶
Functions¶
|
Test that the common_name property returns the certificate's common name. |
|
|
Test that revoke_all_issued_certificates method and if crl is build correctly. |
|
|
Tests that the issuing CA can be deleted only if it has no associated domains. |
Test that a chain truststore is automatically created when creating a new issuing CA. |
|
Test that a chain truststore is created even for a single root CA. |
|
Test that chain truststore contains all certificates in a three-level hierarchy. |
|
Test that certificates in chain truststore are ordered correctly (root to leaf). |
Module Contents¶
- pki.tests.test_models.test_issuing_ca_model.test_attributes_and_properties(issuing_ca_instance)[source]¶
Test that the common_name property returns the certificate’s common name.
- Parameters:
issuing_ca_instance (dict[str, Any])
- Return type:
None
- pki.tests.test_models.test_issuing_ca_model.test_issue_crl(issuing_ca_instance)[source]¶
- Parameters:
issuing_ca_instance (dict[str, Any])
- Return type:
None
- pki.tests.test_models.test_issuing_ca_model.test_revoke_all_issued_certificates_and_crl(issuing_ca_instance)[source]¶
Test that revoke_all_issued_certificates method and if crl is build correctly.
- Parameters:
issuing_ca_instance (dict[str, Any])
- Return type:
None
- pki.tests.test_models.test_issuing_ca_model.test_issuing_ca_delete(issuing_ca_instance, domain_instance)[source]¶
Tests that the issuing CA can be deleted only if it has no associated domains.
- Parameters:
issuing_ca_instance (dict[str, Any])
domain_instance (dict[str, Any])
- Return type:
None
- pki.tests.test_models.test_issuing_ca_model.test_chain_truststore_creation_on_new_issuing_ca()[source]¶
Test that a chain truststore is automatically created when creating a new issuing CA.
- Return type:
None
- pki.tests.test_models.test_issuing_ca_model.test_chain_truststore_single_ca()[source]¶
Test that a chain truststore is created even for a single root CA.
- Return type:
None