Commit Graph

188 Commits

Author SHA1 Message Date
Sergi Delgado Segura
3ee8d9f2cb Fixes common test imports 2020-02-17 13:06:19 +01:00
Sergi Delgado Segura
ead74199e5 Adds schema on cli and e2e tests 2020-02-13 19:36:33 +01:00
Sergi Delgado Segura
02e159faac Moves EncryptedBlob to common 2020-02-13 16:32:51 +01:00
Sergi Delgado Segura
036f879302 Monkeypatches load_keys in e2e tests since add_appointment calls it internally 2020-02-11 22:31:14 +01:00
Sergi Delgado Segura
ea4d6cf345 Updates e2e tests to derive pk from sk intead of using load_keys
Since we're creating a new set of keys in the e2e tests the hardcoded public key of the cli won't work
2020-02-11 21:55:02 +01:00
Sergi Delgado Segura
d447debe54 Temporal fix for Cryptographer logs. Close #91 2020-02-11 20:22:51 +01:00
Sergi Delgado Segura
e2794eff2a Modifies e2e tests to match alpha cli.load_keys 2020-02-11 19:27:33 +01:00
Sergi Delgado Segura
22ded55990 Renames pisa_cli to wt_cli 2020-02-11 18:37:12 +01:00
Sergi Delgado Segura
f492fe7cbb Updates e2e tests to use new cli methods 2020-02-10 16:31:51 +01:00
Sergi Delgado Segura
ee4269d047 Updates cli tests and adds some missing ones 2020-02-10 16:31:51 +01:00
Sergi Delgado Segura
ab21cbfc8f Moves load_key_file to Cryptographer and updates pisad to use it 2020-02-10 16:31:48 +01:00
Sergi Delgado Segura
6913d1cd18 Update tests to remove the asleep flags 2020-02-10 16:21:31 +01:00
Sergi Delgado Segura
6c957b067d Adds batch update unit tests for DBManager 2020-01-31 13:57:30 +01:00
Sergi Delgado Segura
c538ebadd0 Updates Clear unit tests to use dicts for completed_trackers instead of tuples 2020-01-31 13:10:06 +01:00
Sergi Delgado Segura
451311b765 Updates ChainMonitor unit tests to ititialize the db_manager
The Responder needs a DBManager instance to pull the last know block, so None is not valid anymore for this tests
2020-01-31 13:08:55 +01:00
Sergi Delgado Segura
1f88f70c9a Updates test_carrier with issued_receipts
The functionality expected in the test required the issued_receipts dict to be cleare, what is normally performed by the Responder
2020-01-31 13:05:49 +01:00
Sergi Delgado Segura
1a7464f31a Changes db_manager fixture from session to module 2020-01-31 13:04:23 +01:00
Sergi Delgado Segura
a8f2407df9 Updates tests for Responder.check_completed_trackers 2020-01-31 13:00:04 +01:00
Sergi Delgado Segura
b31e24f655 Adds unit tests for Builder.update_states 2020-01-31 12:46:12 +01:00
Sergi Delgado Segura
084295b889 Adds test for triggering appointment with pissad offline 2020-01-24 14:33:04 +01:00
Sergi Delgado Segura
5d068f5ecc Adds first test of dealing with pisa with a reboot in the middle 2020-01-24 13:40:08 +01:00
Sergi Delgado Segura
a718a5c6ae Updates Builder unit tests 2020-01-24 13:32:20 +01:00
Sergi Delgado Segura
3fd84a8d7f Modifies e2e tests so pisad can be run and stop from there 2020-01-23 20:16:39 +01:00
Sergi Delgado Segura
14724ceda9 Adds missing common/tools unit tests and removes pisad tests
`test_pisad.py` was only covering config parsing tests, that are now part of `common/tools.py`.
2020-01-23 20:16:32 +01:00
Sergi Delgado Segura
96ab0039e7 Updates config file params for testing 2020-01-23 18:36:18 +01:00
Sergi Delgado Segura
9be2c2475f Removes logger instance from test_appointment 2020-01-23 18:35:32 +01:00
Sergi Delgado Segura
3185ae124d Fixes paths on cli tests 2020-01-23 18:34:53 +01:00
Sergi Delgado Segura
245d5b49f3 Updates config files
Removes unused values from pisa config file and adds cli config file
2020-01-23 16:23:07 +01:00
Sergi Delgado Segura
852368a2ad Adds tests for sending two different appointments with the same locator to the tower 2020-01-22 16:25:52 +01:00
Sergi Delgado Segura
1027f48611 Splits create_txs in two simpler functions and refactors fixtures so setup_node is not called every test 2020-01-22 14:46:59 +01:00
Sergi Delgado Segura
93cb003360 Setup seed for cli and common unit tests to random values are replicable 2020-01-22 11:12:01 +01:00
Sergi Delgado Segura
14503dcebd Adds e2e tests encrypted blobs with wrong key 2020-01-21 19:12:01 +01:00
Sergi Delgado Segura
0f45e8fe11 Adds methods to get seeded random values and fixes create_txs 2020-01-21 19:11:50 +01:00
Sergi Delgado Segura
7bf65c40f5 Updates unit tests, adds tests to cover new methods and removes unused imports 2020-01-21 19:11:33 +01:00
Sergi Delgado Segura
3605590fa4 Updates cli unit tests to match the net post_data_to_add_appointment_endpoint method 2020-01-21 12:07:44 +01:00
Sergi Delgado Segura
d7e91d34e7 Updates cli test to expect an exception instead of False 2020-01-20 17:21:56 +01:00
Sergi Delgado Segura
18cd2a7499 Adds pisa conf for e2e testing and initial setup for the regtest node 2020-01-20 17:02:38 +01:00
Sergi Delgado Segura
4eb55eaacc Raises exception on missing cli keys
load_key_file_data was returning False on FileNotFound but get_pk was expecting an exception
2020-01-20 16:19:45 +01:00
Sergi Delgado Segura
2c8c8c7323 Updates circle-ci with basic e2e infraestructure 2020-01-20 11:53:13 +01:00
Sergi Delgado Segura
f91475c61b Updates life cycle tests and adds malformed tx tests 2020-01-17 17:51:09 +01:00
Sergi Delgado Segura
404952415d Creates conftest for e2e tests 2020-01-17 17:51:01 +01:00
Sergi Delgado Segura
15b31105e1 Adds basic E2E testing 2020-01-16 17:09:26 +01:00
Sergi Delgado Segura
db330ce353 Updates cli unit tests to match the bug fixes 2020-01-16 17:09:13 +01:00
Sergi Delgado Segura
fb8c6c80d3 Updates tests to work with new version of bitcoind_mock 2020-01-15 15:43:00 +01:00
Sergi Delgado Segura
a49f86dd88 Merge branch 'master' into 64-data-to-disk 2020-01-15 12:44:29 +01:00
Sergi Delgado Segura
42a957f555 Merge branch 'master' into chainmonitor 2020-01-15 11:38:32 +01:00
Sergi Delgado Segura
6bf2cb5379 Merge branch 'master' into isolate-config 2020-01-15 10:15:48 +01:00
Turtle
bd41c8b862 Add unit tests for remaining cli functions 2020-01-15 03:35:34 -05:00
Turtle
39208e4b14 Test new functions split off in pisa_cli 2020-01-15 03:35:34 -05:00
Turtle
40d7ca1912 Refactor add_appointment cli code 2020-01-15 03:35:31 -05:00