pki.tests.test_servicesΒΆ
Tests for PKI services.
ClassesΒΆ
Test the CertificateService class. |
|
Test the TruststoreService class. |
|
Test TruststoreService with different intended usage values. |
Module ContentsΒΆ
- class pki.tests.test_services.TestCertificateService[source]ΒΆ
Test the CertificateService class.
- test_get_certificates_empty()[source]ΒΆ
Test get_certificates returns empty queryset when no certificates exist.
- class pki.tests.test_services.TestTruststoreService[source]ΒΆ
Test the TruststoreService class.
- test_get_all_ordering()[source]ΒΆ
Test that get_all returns truststores ordered by created_at descending.
- test_create_with_invalid_cert_data()[source]ΒΆ
Test create raises ValidationError with invalid certificate data.
- test_create_with_duplicate_name()[source]ΒΆ
Test create raises ValidationError with duplicate unique_name.