fxa-customs-server/test
Shane Tomlinson 6f73c3c8b8
refactor(server): Extract and simplify record retreival/storage, user defined rules.
server.js has a whole bunch of mixed concerns, part of which was record retreival
and loading/checking user defined rules.

This PR extracts record handling logic as well as user defined rules logic
into their own modules.

Loading/saving records can now be done through a common interface. fetchRecords no longer
holds the assumption that an ip address will be passed in. setRecord no longer requires
passing in a key as the key is stored on the record, and setRecords now only accepts records
instead of it's confusing signature.  It's now possible to define non-enumerable
properties on a record that are not saved when serialized.

I started to use async/await to simplify logic where it made sense as well as
started down the path to using native promises in places.

Note, no remote tests are modified, so functionality should be the same.

This is groundwork to simplify the DataFlow integration where a simple API is
needed to fetch records of varying types.
2019-03-21 12:28:56 +00:00
..
integration/reputation feat(deps): Update to the newest restify. (#264) 2018-08-24 08:38:44 -04:00
local refactor(server): Extract and simplify record retreival/storage, user defined rules. 2019-03-21 12:28:56 +00:00
mocks feat(blocklist): Add support to specify the block level for multiple blocklists (#167), r=@rfk 2017-02-20 09:51:21 -05:00
remote feat(code): add custom rate limits for token code 2018-09-06 21:39:56 -04:00
customs_server_stub.js fix(tests): remove old code coverage tool (#173), r=@vbudhram 2017-02-10 23:59:54 -05:00
memcache-helper.js test(reputation): adds compose based integration test with iprepd (#253) r=@vladikoff 2018-06-26 17:30:11 -04:00
test_reputation_server.js Fix rep service config (#172), r=@vbudhram, @jrgm 2017-02-15 09:09:36 -05:00
test_reputation_server_stub.js feat(deps): Update to the newest restify. (#264) 2018-08-24 08:38:44 -04:00
test_server.js refactor(tests): Add ability to debug child processes (#162), r=@rfk 2017-02-01 15:53:23 -05:00
utils.js fix(tests): fix dependent tests (#234), r=@rfk 2018-04-13 00:04:22 -04:00