mirror of
https://github.com/certbot/certbot.git
synced 2026-06-08 16:22:18 -04:00
Test common name is listed first in storage.py
This commit is contained in:
parent
562802bfd0
commit
bb1d2c0a1f
1 changed files with 7 additions and 0 deletions
|
|
@ -353,6 +353,13 @@ class RenewableCertTests(BaseRenewableCertTest):
|
|||
self.assertEqual(self.test_rc.names(12),
|
||||
["example.com", "www.example.com"])
|
||||
|
||||
# Testing common name is listed first
|
||||
self._write_out_kind(
|
||||
"cert", 12, test_util.load_vector("cert-5sans.pem"))
|
||||
self.assertEqual(
|
||||
self.test_rc.names(12),
|
||||
["example.com"] + ["{0}.example.com".format(c) for c in "abcd"])
|
||||
|
||||
# Trying missing cert
|
||||
os.unlink(self.test_rc.cert)
|
||||
self.assertRaises(errors.CertStorageError, self.test_rc.names)
|
||||
|
|
|
|||
Loading…
Reference in a new issue