Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3174)

Unified Diff: net/data/verify_certificate_chain_unittest/generate-expired-intermediate.py

Issue 2801813004: Refactor VerifyCertificateChain test data to include a key purpose (Closed)
Patch Set: Address mattm's comment Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: net/data/verify_certificate_chain_unittest/generate-expired-intermediate.py
diff --git a/net/data/verify_certificate_chain_unittest/generate-expired-intermediate.py b/net/data/verify_certificate_chain_unittest/generate-expired-intermediate.py
index 0a380828f846bb855589f0d8a0be6267994c4068..037bf013cbf13c19d775854484dcaaa130e9fd5e 100755
--- a/net/data/verify_certificate_chain_unittest/generate-expired-intermediate.py
+++ b/net/data/verify_certificate_chain_unittest/generate-expired-intermediate.py
@@ -27,10 +27,12 @@ trusted = common.TrustAnchor(root, constrained=False)
# Both the root and target are valid at this time, however the
# intermediate certificate is not.
time = common.MARCH_2_2015_UTC
+key_purpose = common.DEFAULT_KEY_PURPOSE
verify_result = False
errors = """----- Certificate i=1 (CN=Intermediate) -----
ERROR: Time is after notAfter
"""
-common.write_test_file(__doc__, chain, trusted, time, verify_result, errors)
+common.write_test_file(__doc__, chain, trusted, time, key_purpose,
+ verify_result, errors)

Powered by Google App Engine
This is Rietveld 408576698