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

Unified Diff: net/tools/testserver/minica.py

Issue 2170643004: Add more buffer time in HTTPSOCSPVerifyTests. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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
« no previous file with comments | « no previous file | net/url_request/url_request_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/tools/testserver/minica.py
diff --git a/net/tools/testserver/minica.py b/net/tools/testserver/minica.py
index 7d7b06b634d5e3873dacd26200f05416532ccdde..d882b19483a949639a0f649aabebaef1abb983fd 100644
--- a/net/tools/testserver/minica.py
+++ b/net/tools/testserver/minica.py
@@ -287,20 +287,14 @@ def MakeOCSPSingleResponse(
thisUpdate = now - datetime.timedelta(days=1)
nextUpdate = thisUpdate + datetime.timedelta(weeks=1)
elif ocsp_date == OCSP_DATE_OLD:
- thisUpdate = now - datetime.timedelta(hours=1, weeks=1)
+ thisUpdate = now - datetime.timedelta(days=1, weeks=1)
nextUpdate = thisUpdate + datetime.timedelta(weeks=1)
elif ocsp_date == OCSP_DATE_EARLY:
- thisUpdate = now + datetime.timedelta(hours=1)
+ thisUpdate = now + datetime.timedelta(days=1)
nextUpdate = thisUpdate + datetime.timedelta(weeks=1)
elif ocsp_date == OCSP_DATE_LONG:
thisUpdate = now - datetime.timedelta(days=365)
- nextUpdate = thisUpdate + datetime.timedelta(hours=1, days=365)
- elif ocsp_date == OCSP_DATE_BEFORE_CERT:
- thisUpdate = now - datetime.timedelta(days=1)
- nextUpdate = thisUpdate + datetime.timedelta(weeks=1)
- elif ocsp_date == OCSP_DATE_AFTER_CERT:
timvolodine 2016/07/22 12:35:49 also seeing OCSP_DATE_AFTER_CERT in src/net/tools/
- thisUpdate = now - datetime.timedelta(days=1)
- nextUpdate = thisUpdate + datetime.timedelta(weeks=1)
+ nextUpdate = thisUpdate + datetime.timedelta(days=366)
else:
raise ValueError('Bad OCSP date: ' + str(ocsp_date))
« no previous file with comments | « no previous file | net/url_request/url_request_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698