Commit Graph

277 Commits

Author SHA1 Message Date
Sergi Delgado Segura
10da7d2a10 teos - feed_* -> btc_feed_* 2020-06-09 09:44:52 +02:00
Sergi Delgado Segura
88c19d5a0d teos - moves errors to common so it can be used by clients 2020-04-29 13:03:39 +02:00
Sergi Delgado Segura
75ca281cc4 api - updates errors and separates error from message in api errors responses 2020-04-27 19:51:38 +02:00
Sergi Delgado Segura
4c1f95ca77 e2e - updates e2e tests 2020-04-22 14:56:25 +02:00
Sergi Delgado Segura
f810607348 responder - wipes completed/expired data from the gatekeeper 2020-04-22 14:55:43 +02:00
Sergi Delgado Segura
e7141b295e watcher - wipes completed/expired appointments from the Gatekeeper 2020-04-22 14:55:10 +02:00
Sergi Delgado Segura
f66e4785f2 cleaner - adds delete_gatekeeper_appointments
delete_gatekeeper_appointments takes care of deleting data from the Gatekeeper once it has expired / it has been completed
2020-04-22 14:53:58 +02:00
Sergi Delgado Segura
69e9c12258 gatekeeper reformats update_available_slots to add_update_appointment
- add_update_appointment handles the slot count and also keeps a copy of the appointment uuid and slots taken.
- gatekeeper.appointments is turned to a dict uuid:slots so appointment updates can be computed with no further data
- deleting appointment will also allow to update the slot count with no further data from both the Watcher and the Responder
2020-04-22 14:50:13 +02:00
Sergi Delgado Segura
eb6d292d3c extended_appointment - deletes appointment size 2020-04-22 14:48:00 +02:00
Sergi Delgado Segura
5f7a909804 user_pk/client_pk -> user_id and cli/client -> user (when it does not reffer to the software) 2020-04-21 19:05:20 +02:00
Sergi Delgado Segura
7e800ade4a Fixes E2E tests 2020-04-20 18:09:08 +02:00
Sergi Delgado Segura
a1b0236c0a Adds new Responder tests 2020-04-20 17:59:56 +02:00
Sergi Delgado Segura
797cb9786e Adds new gatekeeper tests 2020-04-20 17:59:47 +02:00
Sergi Delgado Segura
eea12a695e Improves API returns for 404 and extends tests to cover it 2020-04-20 17:58:40 +02:00
Sergi Delgado Segura
eb8ffb4916 Adaps unit tests. Speeds up tests by removing unnecesary sleeps 2020-04-20 17:58:40 +02:00
Sergi Delgado Segura
8e3caadc5c Adds ExtendedAppointent unit tests and simplifies Appointment's 2020-04-20 17:58:40 +02:00
Sergi Delgado Segura
5c35ff1249 Fixes tests 2020-04-20 17:30:17 +02:00
Sergi Delgado Segura
a427b12799 Updates cli unit tests 2020-04-20 17:30:17 +02:00
Sergi Delgado Segura
08701f0fee Refactors Cryptographer to remove logs and avoid multi return types
Cryptographer now uses exceptions to report errors and does not use the log anymore
2020-04-20 17:30:16 +02:00
Sergi Delgado Segura
71507d4c32 Gets rid of blob classes. Close #66 2020-04-20 17:30:16 +02:00
Sergi Delgado Segura
ed8ff228d8 First commands with basic structure.
- Moves DBManager to common.
2020-04-20 17:30:15 +02:00
Sergi Delgado Segura
e4cd453860 Fixes test_appointment_malformed_penalty 2020-04-20 17:21:58 +02:00
Sergi Delgado Segura
bed21e9625 Adds API HOST and PORT as configurable parameters.
Uses API_BIND/API_PORT for the server and API_CONNECT/API_PORT for the user, for consistency.
2020-04-20 17:01:55 +02:00
Sergi Delgado Segura
2be433d589 Refactors cli to avoid multi-type returns (normal return + None). Adds exceptions for errors. 2020-04-20 17:00:49 +02:00
Sergi Delgado Segura
4a65b2524b Refactors cli to avoid multi-type returns (normal return + None). Adds exceptions for errors. 2020-04-20 16:06:38 +02:00
Sergi Delgado Segura
5f7eb9df10 Minor fixes 2020-04-20 13:58:09 +02:00
Turtle
ad078cf3af Test get_all_appointments e2e 2020-04-17 15:29:01 -04:00
Turtle
b6b95a9821 Add get_all_appointments cli command 2020-04-17 15:17:11 -04:00
Sergi Delgado Segura
dcb221ea36 Adds missing cli register test 2020-04-03 20:57:01 +02:00
Sergi Delgado Segura
10e856ae74 Fixes typos according to the review 2020-04-03 16:38:46 +02:00
Sergi Delgado Segura
fe73ee7298 Fixes comments, docstrings and some renamings 2020-04-02 15:20:09 +02:00
Sergi Delgado Segura
099ec5d1ce PEP8 fixes 2020-04-02 10:02:50 +02:00
Sergi Delgado Segura
7abb4ada00 Updates AppoitmentDBM unit tests and adds UserDBM's 2020-04-01 21:30:34 +02:00
Sergi Delgado Segura
f31f356a1a Adapts tests to use userDB and registered_users content as dict 2020-04-01 18:27:27 +02:00
Sergi Delgado Segura
4a3f4bc522 Addapts tests to match 7031b552f7. Improves DBManager tests. 2020-04-01 17:19:41 +02:00
Sergi Delgado Segura
0e392d1f2a Cryptographer.sigrec_decode assumed signatures where properly encoded.
- Fixes a bug in sigrec_decode where the decoding function assumend that the first by was formatted as 31 + SigRec. Non properly encoded signatures made the function to crash due to an overflow (int_to_bytes(x) for negative x)
2020-04-01 17:04:33 +02:00
Sergi Delgado Segura
2d67fe8638 rpc_passwd -> rpc_password. The former can be confusing since the bitcoind parameter is rpcpassword. Avoiding that. 2020-04-01 11:14:20 +02:00
Sergi Delgado Segura
0364dba5ca Fixes e2e tests to match the user authentication apporach
Last two tests are patched, user data must be stored between restarts
2020-03-31 16:56:52 +02:00
Sergi Delgado Segura
bf0ae36940 Removes old commented code 2020-03-31 16:55:40 +02:00
Sergi Delgado Segura
502f507b21 Adds missing size field in Builder when loading data from the database 2020-03-31 15:00:30 +02:00
Sergi Delgado Segura
b56123055d Adds flake8 and fixes style issues 2020-03-31 13:06:44 +02:00
Sergi Delgado Segura
03c8ad8c87 Improves API testing. Mocks data moving from Watcher/Responder instead of running them in the background. Closes #77. 2020-03-31 11:07:01 +02:00
Sergi Delgado Segura
31a25f3f60 Adds unit tests for register, and adaps existing tests to match the changes in the commands 2020-03-30 22:24:20 +02:00
Sergi Delgado Segura
746a78542f Adds missing tests to API and improves API testing by properly mocking the requests. Closes #77 2020-03-30 22:16:39 +02:00
Sergi Delgado Segura
9ecf98e0c5 Adds tests for appointments updates of different sizes 2020-03-30 22:16:21 +02:00
Sergi Delgado Segura
93a389508e Adds checks of decreasing slots for added appointments 2020-03-30 16:35:45 +02:00
Sergi Delgado Segura
f55e37b0fc Adds unit test for watcher.get_appointment_summary 2020-03-30 16:22:52 +02:00
Sergi Delgado Segura
709a40dc64 Fixes gatekeeper and common/tools tests according to 33966e59e1 2020-03-30 13:08:24 +02:00
Sergi Delgado Segura
02fd2e5149 Adds gatekeeper unit tests 2020-03-27 17:28:12 +01:00
Sergi Delgado Segura
ae68cd33da Captures TypeErrors in Cryptographer.get_compressed_pk and adds unit tests 2020-03-27 16:50:47 +01:00