1
0
mirror of https://github.com/laurivosandi/certidude synced 2024-12-22 16:25:17 +00:00

tests: More checks for CRL validation

This commit is contained in:
Lauri Võsandi 2017-05-01 19:18:50 +00:00
parent 26876ed972
commit 9668fa549b

View File

@ -71,6 +71,7 @@ def certidude_request_certificate(server, system_keytab_required, key_path, requ
# Fetch certificate revocation list # Fetch certificate revocation list
r = requests.get(revoked_url, headers={'accept': 'application/x-pem-file'}, stream=True) r = requests.get(revoked_url, headers={'accept': 'application/x-pem-file'}, stream=True)
assert r.status_code == 200, "Failed to fetch CRL from %s, got %s" % (revoked_url, r.text)
click.echo("Fetching CRL from %s to %s" % (revoked_url, revocations_path)) click.echo("Fetching CRL from %s to %s" % (revoked_url, revocations_path))
revocations_partial = tempfile.mktemp(prefix=revocations_path + ".part") revocations_partial = tempfile.mktemp(prefix=revocations_path + ".part")
with open(revocations_partial, 'wb') as f: with open(revocations_partial, 'wb') as f: