diff --git a/certbot-ci/certbot_integration_tests/certbot_tests/test_main.py b/certbot-ci/certbot_integration_tests/certbot_tests/test_main.py index 96566e377..78f5c7408 100644 --- a/certbot-ci/certbot_integration_tests/certbot_tests/test_main.py +++ b/certbot-ci/certbot_integration_tests/certbot_tests/test_main.py @@ -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):