Commit Graph
15 Commits
Author SHA1 Message Date
Hornwitser 35546b4b18 Move loading of config in master to startServer
Move the loading of the config file in the master server to the
startServer function.  Remove config.json.test as it's no longer needed.
2019-09-04 20:43:13 +02:00
Hornwitser 651b09b613 Refactor database and item retreival
Change the ugly global slaves object to be a member of the db object and
implement the items database as a separate integrety verifying class in
lib/database.
2019-09-04 20:43:13 +02:00
Hornwitser 5d6f6de379 Export app as a separate entry from master.js
Change the module exports from master.js to allow additional objects to
be passed to allow better unit testing.
2019-09-04 17:36:06 +02:00
Hornwitser af2471b427 Remove config dependency in lib/authenticate
Restructure lib/authenticate to set the authentication secret at a later
point in time via setAuthSecret.  This breaks playerManager.
2019-09-04 17:36:06 +02:00
Hornwitser b73b202513 Remove remanent remoteMap code
Remove remoteMap specific code left behind after the removal of the
remoteMap plugin in 6415784.  The plugin interface should be versatile
enough to allow all of this code to reside inside the plugin itself.
2019-08-29 11:38:57 +02:00
Hornwitser 940a7b9180 Refactor getFactorioLocale spec
Fix the incorrect error validation, be more lenient about empty values
and convert the checks to use async functions instead of error prone
callbacks.

Remove excessive getFactorioLocale checks in master.spec.
2019-08-24 11:25:40 +02:00
Hornwitser a828f50e57 Refactor master.spec.js
Ensure exceptions are properly passed down to the unit test framework
with promises, check the return status of requests, use config to
generate an access token, reduce code duplication and reformat to be
consistent.
2019-08-21 12:43:09 +02:00
Danielv123 f131a83103 moved isFactorioCommand, more tests, researchSync stability 2018-04-13 12:32:09 +02:00
Danielv123 551a2ea6d7 Fixed failing tests and clutter generated by chunkStore test 2018-02-25 13:16:59 +01:00
Danielv123 ffe2df55c4 #61 added webpage to master, some more plugin work 2017-11-29 09:02:11 +01:00
Danielv123 01b317006c Made some slow tests run in parallel 2017-11-01 16:56:57 +01:00
Danielv123 cfbf281b42 #58 added even more tests for /api/remove 2017-10-31 20:48:06 +01:00
Danielv123 ea603c61fd #58 added test for /api/remove 2017-10-31 20:04:59 +01:00
Danielv123 bfbe7e7d1c Added tests for /api/inventory and /api/place 2017-10-29 23:09:37 +01:00
Danielv123 a1db24bd91 Added the first tests for master.js 2017-10-25 11:24:57 +02:00