diff --git a/lemur/plugins/lemur_email/templates/authority_expiration.html b/lemur/plugins/lemur_email/templates/authority_expiration.html index 7c343417..30cfb3fd 100644 --- a/lemur/plugins/lemur_email/templates/authority_expiration.html +++ b/lemur/plugins/lemur_email/templates/authority_expiration.html @@ -94,7 +94,7 @@ {% if certificate.self_signed %} Root {% else %} - Subordinate + Intermediate {% endif %} CA
{{ certificate.issued_cert_count }} issued certificates
{{ certificate.owner }} diff --git a/lemur/tests/test_certificates.py b/lemur/tests/test_certificates.py index 7c96c491..c33743d0 100644 --- a/lemur/tests/test_certificates.py +++ b/lemur/tests/test_certificates.py @@ -1383,6 +1383,8 @@ def test_issued_cert_count_for_authority(authority): from lemur.tests.factories import CertificateFactory from lemur.certificates.service import get_issued_cert_count_for_authority + assert get_issued_cert_count_for_authority(authority) == 0 + # create a few certs issued by the authority CertificateFactory(authority=authority, name="test_issued_cert_count_for_authority1") CertificateFactory(authority=authority, name="test_issued_cert_count_for_authority2")