Closed Bug 949241 Opened 11 years ago Closed 11 years ago

enhance HAWK tests

Categories

(Cloud Services :: Server: Firefox Accounts, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
mozilla29

People

(Reporter: warner, Assigned: warner)

References

Details

(Whiteboard: [qa?])

Attachments

(1 file)

Attached patch hawk-test.diffSplinter Review
This patch adds an extra test for the HAWK code inside services/crypto/modules/utils.js . Unlike the rest of our code, HAWK uses a non-URL-safe base64 encoding for its payload ".hash" and HMAC output ".mac" fields. The test cases in the upstream (node.js) HAWK source code don't exercise the /+ characters in the payload hash, so this adds one that does.

This is aimed at mozilla-central.
Attachment #8346246 - Flags: review?(rnewman)
Whiteboard: [qa?]
Comment on attachment 8346246 [details] [diff] [review]
hawk-test.diff

Review of attachment 8346246 [details] [diff] [review]:
-----------------------------------------------------------------

Always nice to see test-only patches!
Attachment #8346246 - Flags: review?(rnewman) → review+
https://hg.mozilla.org/integration/fx-team/rev/bc1774f6eece

Thanks for the patch, Brian! One request - in the future, please make sure you patches include the necessary commit information. Makes life much easier for those checking in on your behalf. Thanks! :)
https://developer.mozilla.org/en-US/docs/Mercurial_FAQ#How_can_I_generate_a_patch_for_somebody_else_to_check-in_for_me.3F
Flags: in-testsuite+
Keywords: checkin-needed
Whiteboard: [qa?] → [qa?][fixed-in-fx-team]
https://hg.mozilla.org/mozilla-central/rev/bc1774f6eece
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Whiteboard: [qa?][fixed-in-fx-team] → [qa?]
Target Milestone: --- → mozilla29
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: