Page MenuHomePhabricator

[keyserver] Add password sanitization tests
ClosedPublic

Authored by michal on Apr 18 2023, 8:13 AM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Nov 29, 8:54 AM
Unknown Object (File)
Fri, Nov 29, 8:42 AM
Unknown Object (File)
Fri, Nov 29, 8:13 AM
Unknown Object (File)
Mon, Nov 25, 6:28 PM
Unknown Object (File)
Wed, Nov 20, 11:52 AM
Unknown Object (File)
Tue, Nov 5, 4:32 AM
Unknown Object (File)
Mon, Nov 4, 11:20 PM
Unknown Object (File)
Mon, Nov 4, 11:20 PM
Subscribers

Details

Summary

The sanitizeInput function will be abstracted by a general function implementing a visitor pattern (which we will also use for the server_id<->client_id conversion function) in the later diffs. This diff adds some tests so we can check that the behaviour doesn't change.

Test Plan

Run yarn jest

Diff Detail

Repository
rCOMM Comm
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

keyserver/src/utils/validation-utils.js
64

Thanks for getting rid of the *

Is it possible to type this any better?

keyserver/src/utils/validation-utils.js
64

Ignore this comment, types are improved in D7488

This revision is now accepted and ready to land.Apr 21 2023, 1:39 AM