undouble counts

This commit is contained in:
Brad Warren 2021-05-27 11:09:34 -07:00
parent 34deb46625
commit 53d67d46e0

View file

@ -687,9 +687,9 @@ def test_ocsp_status_stale(context):
sample_data_path = misc.load_sample_data_path(context.workspace)
stdout, _ = context.certbot(['certificates', '--config-dir', sample_data_path])
assert stdout.count('TEST_CERT') == 4, ('Did not find two test certs as expected ({0})'
assert stdout.count('TEST_CERT') == 2, ('Did not find two test certs as expected ({0})'
.format(output.count('TEST_CERT')))
assert stdout.count('EXPIRED') == 4, ('Did not find two expired certs as expected ({0})'
assert stdout.count('EXPIRED') == 2, ('Did not find two expired certs as expected ({0})'
.format(output.count('EXPIRED')))
@ -701,7 +701,7 @@ def test_ocsp_status_live(context):
context.certbot(['--domains', cert])
stdout, _ = context.certbot(['certificates'])
assert stdout.count('VALID') == 2, 'Expected {0} to be VALID'.format(cert)
assert stdout.count('VALID') == 1, 'Expected {0} to be VALID'.format(cert)
assert stdout.count('EXPIRED') == 0, 'Did not expect {0} to be EXPIRED'.format(cert)
# OSCP 2: Check live certificate OCSP status (REVOKED)
@ -711,8 +711,8 @@ def test_ocsp_status_live(context):
time.sleep(5)
stdout, _ = context.certbot(['certificates'])
assert stdout.count('INVALID') == 2, 'Expected {0} to be INVALID'.format(cert)
assert stdout.count('REVOKED') == 2, 'Expected {0} to be REVOKED'.format(cert)
assert stdout.count('INVALID') == 1, 'Expected {0} to be INVALID'.format(cert)
assert stdout.count('REVOKED') == 1, 'Expected {0} to be REVOKED'.format(cert)
def test_ocsp_renew(context):