From 392725ff309609c7695de5860a409a9f794415d0 Mon Sep 17 00:00:00 2001 From: sayali Date: Mon, 26 Oct 2020 15:33:20 -0700 Subject: [PATCH] Add description check in reissue unit test --- lemur/tests/test_certificates.py | 1 + 1 file changed, 1 insertion(+) diff --git a/lemur/tests/test_certificates.py b/lemur/tests/test_certificates.py index c271a97e..583022eb 100644 --- a/lemur/tests/test_certificates.py +++ b/lemur/tests/test_certificates.py @@ -802,6 +802,7 @@ def test_reissue_certificate( assert new_cert.organization != certificate.organization # Check for default value since authority does not have cab_compliant option set assert new_cert.organization == LEMUR_DEFAULT_ORGANIZATION + assert new_cert.description.startswith(f"Reissued by Lemur for cert ID {certificate.id}") # update cab_compliant option to false for crypto_authority to maintain subject details update_options(crypto_authority.id, '[{"name": "cab_compliant","value":false}]')