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

Issue 1246703005: Add a script for formatting the VerifySignedData() test data. (Closed)

Created:
5 years, 5 months ago by eroman
Modified:
5 years, 4 months ago
Reviewers:
davidben, mattm
CC:
chromium-reviews, cbentzel+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@sign_openssl
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add a script for formatting the VerifySignedData() test data. Primarily it calls "openssl asn1parse -i" for each of the DER data fields and annotates the base64 with this. This is a one-off script intended to be called manually when adding new test data, or modifying existing test data. BUG=410574 Committed: https://crrev.com/bd530dfd6e9f7b2f4ce449325344563f9279a50a Cr-Commit-Position: refs/heads/master@{#340852}

Patch Set 1 #

Patch Set 2 : remove innacurate comment #

Patch Set 3 : cleanup a bit #

Total comments: 20

Patch Set 4 : Address Matt's comments #

Total comments: 2

Patch Set 5 : remove leading undercore from pattern name #

Patch Set 6 : switch to re.finditer() #

Total comments: 5

Patch Set 7 : use non-greedy matching #

Patch Set 8 : fix (don't use matching for comment) #

Unified diffs Side-by-side diffs Delta from patch set Stats (+202 lines, -0 lines) Patch
A net/data/verify_signed_data_unittest/README View 1 chunk +35 lines, -0 lines 0 comments Download
A net/data/verify_signed_data_unittest/annotate_test_data.py View 1 2 3 4 5 6 7 1 chunk +167 lines, -0 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 18 (3 generated)
eroman
I suspect I have a number of python style issues, but figured it would be ...
5 years, 5 months ago (2015-07-22 21:02:19 UTC) #2
eroman
Also add in Matt as a possible reviewer. Nothing real fancy in here, just a ...
5 years, 4 months ago (2015-07-27 23:24:21 UTC) #4
mattm
https://codereview.chromium.org/1246703005/diff/40001/net/data/verify_signed_data_unittest/annotate_test_data.py File net/data/verify_signed_data_unittest/annotate_test_data.py (right): https://codereview.chromium.org/1246703005/diff/40001/net/data/verify_signed_data_unittest/annotate_test_data.py#newcode40 net/data/verify_signed_data_unittest/annotate_test_data.py:40: if len(user_comment) != 0: "if user_comment:" https://codereview.chromium.org/1246703005/diff/40001/net/data/verify_signed_data_unittest/annotate_test_data.py#newcode49 net/data/verify_signed_data_unittest/annotate_test_data.py:49: result ...
5 years, 4 months ago (2015-07-28 00:51:15 UTC) #5
eroman
Thanks for the review and python tips! https://codereview.chromium.org/1246703005/diff/40001/net/data/verify_signed_data_unittest/annotate_test_data.py File net/data/verify_signed_data_unittest/annotate_test_data.py (right): https://codereview.chromium.org/1246703005/diff/40001/net/data/verify_signed_data_unittest/annotate_test_data.py#newcode40 net/data/verify_signed_data_unittest/annotate_test_data.py:40: if len(user_comment) ...
5 years, 4 months ago (2015-07-28 01:41:24 UTC) #6
mattm
https://codereview.chromium.org/1246703005/diff/40001/net/data/verify_signed_data_unittest/annotate_test_data.py File net/data/verify_signed_data_unittest/annotate_test_data.py (right): https://codereview.chromium.org/1246703005/diff/40001/net/data/verify_signed_data_unittest/annotate_test_data.py#newcode49 net/data/verify_signed_data_unittest/annotate_test_data.py:49: result += '\n' + generated_comment + '\n' On 2015/07/28 ...
5 years, 4 months ago (2015-07-28 04:22:14 UTC) #7
eroman
https://codereview.chromium.org/1246703005/diff/60001/net/data/verify_signed_data_unittest/annotate_test_data.py File net/data/verify_signed_data_unittest/annotate_test_data.py (right): https://codereview.chromium.org/1246703005/diff/60001/net/data/verify_signed_data_unittest/annotate_test_data.py#newcode139 net/data/verify_signed_data_unittest/annotate_test_data.py:139: _header_pattern = re.compile('-----BEGIN ([\w ]+)-----') On 2015/07/28 04:22:14, mattm ...
5 years, 4 months ago (2015-07-28 18:07:18 UTC) #8
eroman
https://codereview.chromium.org/1246703005/diff/40001/net/data/verify_signed_data_unittest/annotate_test_data.py File net/data/verify_signed_data_unittest/annotate_test_data.py (right): https://codereview.chromium.org/1246703005/diff/40001/net/data/verify_signed_data_unittest/annotate_test_data.py#newcode167 net/data/verify_signed_data_unittest/annotate_test_data.py:167: footer_end = footer_start + len(footer) On 2015/07/28 01:41:23, eroman ...
5 years, 4 months ago (2015-07-28 18:24:52 UTC) #9
mattm
https://codereview.chromium.org/1246703005/diff/100001/net/data/verify_signed_data_unittest/annotate_test_data.py File net/data/verify_signed_data_unittest/annotate_test_data.py (right): https://codereview.chromium.org/1246703005/diff/100001/net/data/verify_signed_data_unittest/annotate_test_data.py#newcode136 net/data/verify_signed_data_unittest/annotate_test_data.py:136: regex = re.compile(r'-----BEGIN ([\w ]+)-----(.*)-----END \1-----', re.DOTALL) probably want ...
5 years, 4 months ago (2015-07-28 22:27:01 UTC) #10
eroman
https://codereview.chromium.org/1246703005/diff/100001/net/data/verify_signed_data_unittest/annotate_test_data.py File net/data/verify_signed_data_unittest/annotate_test_data.py (right): https://codereview.chromium.org/1246703005/diff/100001/net/data/verify_signed_data_unittest/annotate_test_data.py#newcode136 net/data/verify_signed_data_unittest/annotate_test_data.py:136: regex = re.compile(r'-----BEGIN ([\w ]+)-----(.*)-----END \1-----', re.DOTALL) On 2015/07/28 ...
5 years, 4 months ago (2015-07-29 01:07:56 UTC) #11
mattm
https://codereview.chromium.org/1246703005/diff/100001/net/data/verify_signed_data_unittest/annotate_test_data.py File net/data/verify_signed_data_unittest/annotate_test_data.py (right): https://codereview.chromium.org/1246703005/diff/100001/net/data/verify_signed_data_unittest/annotate_test_data.py#newcode136 net/data/verify_signed_data_unittest/annotate_test_data.py:136: regex = re.compile(r'-----BEGIN ([\w ]+)-----(.*)-----END \1-----', re.DOTALL) On 2015/07/29 ...
5 years, 4 months ago (2015-07-29 01:17:47 UTC) #12
eroman
https://codereview.chromium.org/1246703005/diff/100001/net/data/verify_signed_data_unittest/annotate_test_data.py File net/data/verify_signed_data_unittest/annotate_test_data.py (right): https://codereview.chromium.org/1246703005/diff/100001/net/data/verify_signed_data_unittest/annotate_test_data.py#newcode136 net/data/verify_signed_data_unittest/annotate_test_data.py:136: regex = re.compile(r'-----BEGIN ([\w ]+)-----(.*)-----END \1-----', re.DOTALL) On 2015/07/29 ...
5 years, 4 months ago (2015-07-29 01:38:48 UTC) #13
mattm
lgtm https://codereview.chromium.org/1246703005/diff/100001/net/data/verify_signed_data_unittest/annotate_test_data.py File net/data/verify_signed_data_unittest/annotate_test_data.py (right): https://codereview.chromium.org/1246703005/diff/100001/net/data/verify_signed_data_unittest/annotate_test_data.py#newcode136 net/data/verify_signed_data_unittest/annotate_test_data.py:136: regex = re.compile(r'-----BEGIN ([\w ]+)-----(.*)-----END \1-----', re.DOTALL) On ...
5 years, 4 months ago (2015-07-29 01:55:23 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1246703005/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1246703005/140001
5 years, 4 months ago (2015-07-29 01:57:29 UTC) #16
commit-bot: I haz the power
Committed patchset #8 (id:140001)
5 years, 4 months ago (2015-07-29 05:15:28 UTC) #17
commit-bot: I haz the power
5 years, 4 months ago (2015-07-29 05:16:13 UTC) #18
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/bd530dfd6e9f7b2f4ce449325344563f9279a50a
Cr-Commit-Position: refs/heads/master@{#340852}

Powered by Google App Engine
This is Rietveld 408576698