feat: add ability to output just the sans in a space separated list

tests: add test for --san-only
This commit is contained in:
Alex Kelly 2021-10-04 09:58:43 -04:00
parent 61a92c5c63
commit 157da703b7
2 changed files with 17 additions and 1 deletions

View file

@ -48,6 +48,12 @@ def test_san():
assert response.exit_code == 0
def test_san_only():
"""verify --san outputs correctly"""
response = runner.invoke(cert_main, ["www.franklin.edu", "--san-only"])
assert response.exit_code == 0
def test_bad_cert():
"""verify an expired certificate works"""
response = runner.invoke(cert_main, ["support.bluequill.com", "--san"])