Commit Graph

365 Commits (78eb904c1031f5923435566b42c201d1f84f0491)

Author SHA1 Message Date
jMyles 78eb904c10 Flagging test bob's origins for inspection on other threads. 2020-08-10 12:53:33 -07:00
jMyles 7362b4bfe2 Adding cancellation to keep_learning logic. 2020-08-10 12:53:32 -07:00
jMyles e7e710bb36 Stop Alice's publication threadpool in disenchant(). 2020-08-10 12:52:31 -07:00
jMyles 784814c4bb Don't ship blockchain_bob with known_nodes; he can use his domain hardcoded nodes. Also, don't start his learning loop after the fact. This caused this test to pass even when he was unable to actually find the nodes in join_policy. 2020-08-10 12:52:31 -07:00
jMyles a0db5ffb15 Moving federated tests into their own module to keep the cache cleaner. 2020-08-10 12:52:30 -07:00
jMyles fde4d9049b Fixturizing lonely_ursula_maker for cleanup purposes. 2020-08-10 12:51:42 -07:00
jMyles 046c8e3989 Reworked logic to determine good serials for mocks. 2020-08-10 12:49:54 -07:00
jMyles a69705475a Fixing up fixtures to fail fast and delete Ursulas when done. 2020-08-10 12:49:26 -07:00
jMyles babcd9174e No need to reset checksum_address in Worker - let's try to set it in as few places as possible. #1547. 2020-08-10 12:49:23 -07:00
jMyles 18993022ea Stop Alice's publication threadpool at the end of fixtures; otherwise tests hang. 2020-08-10 12:47:33 -07:00
jMyles 295518033e Refining both test and threadpooling. Looking pretty good now. 2020-08-10 12:45:22 -07:00
jMyles 359980288d Cleaning up here results in faster test run exit. 2020-08-10 12:45:22 -07:00
tuxxy 52038e36dc Create a MockLMDBEnv w/ fixture and fix up some tests
Patch the PolicyArrangement model to fix discovery phase tests
2020-08-10 15:38:12 +02:00
tuxxy 846625d917 Replace as much old datastore logic as possible 2020-08-10 15:37:30 +02:00
tuxxy 184b3bf563 Create a base 'DatastoreRecord' class and models with tests
Move the base models to base.py and add more datastore tests
Change key structure to 'RecordType:RecordField:RecordID'
Eliminate the db module
2020-08-10 15:37:30 +02:00
David Núñez e438f2f944 Use our new Logger replacement everywhere 2020-08-08 03:14:45 +02:00
David Núñez 519fc253bd First pass at improving block confirmation logic and tests 2020-06-05 04:02:46 +02:00
Bogdan Opanchuk 8dbaf2b206 Use `capsys` instead of `stdout_trap` 2020-05-28 14:42:04 -07:00
Kieran Prasch 6c9c1b7cd8 Holdover for flaky test. 2020-05-27 14:11:25 -07:00
Kieran Prasch 28cce2fccc Reorganize tests into multiple suites. 2020-05-27 14:11:25 -07:00
Bogdan Opanchuk ec376ff997 Remove a duplicate agency_local_registry() fixture 2020-05-26 10:26:42 -07:00
Kieran Prasch cf7cb682e0
RFCs for #1989; Transforms registry source manager into a formal context manager. 2020-05-21 18:54:40 -07:00
Kieran Prasch 5ce1134950
Keep CLI action module names verbs; Fixture cleanup. 2020-05-20 21:42:21 -07:00
Kieran Prasch c425ea6aa5
Tightening down config actions tests 2020-05-20 21:41:45 -07:00
Kieran Prasch 44de13d149
Cleanup and parameterize fixtures for FT coverage; Introduces test configuration factory functions for pyetst fixtures. 2020-05-20 21:41:44 -07:00
Kieran Prasch ed3b5b38ed
Fixes a bug in registry source management; Restore to original network inventory so it can be tested. 2020-05-20 21:40:53 -07:00
derekpierre c1d93d8941 Add "end-of-file-fixer" to pre-commit hooks 2020-05-19 14:28:29 -04:00
Kieran Prasch ecb773291a
Post rebase cleanup (#1959) 2020-05-15 09:05:09 -07:00
Kieran Prasch f263e4c2a0
Promote and clear constants modules;
Partly convert constants to Pathlib, Use safe mock IP address constants.
Accommodate more pathlib in tests
2020-05-15 08:36:11 -07:00
Kieran Prasch 3b4e9b47dc
Optimize imports for the entire codebase 2020-05-15 08:34:25 -07:00
Kieran Prasch a935dc8e2d
Annihilate the sandbox 2020-05-15 08:33:38 -07:00
Harry Arjun Hassard dfb9e11a33 1st attempt at clarifying universal fee range and limited service-provider control over their acceptable fee rates 2020-05-13 17:56:33 -07:00
vzotova c228c388c3 Rename `set worker` to `bond worker` everywhere 2020-05-13 20:21:53 +03:00
vzotova 4a0b79b2ca StakingEscrow: confirmActivity -> commitToNextPeriod, lastActivePeriod -> lastCommittedPeriod 2020-05-13 20:21:52 +03:00
vzotova 6039002408 Rename policy reward to policy fee 2020-05-13 20:21:51 +03:00
Kieran Prasch c177d2dca1 Introduce mock interfaces module 2020-05-08 19:20:54 -07:00
Kieran Prasch 1b49236deb Handle registry source manager via mock testerchain 2020-05-08 19:20:54 -07:00
Kieran Prasch 066f778dda Restore allocation handling in fixtures 2020-05-08 19:20:54 -07:00
Kieran Prasch e8fbd5956a Handle token economics and mock testerchain compadibility with the larger test suite as a whole. 2020-05-08 19:20:54 -07:00
Kieran R. Prasch a58af7daf3 Mock and functional-scoped test grouping (fixtures) 2020-05-08 19:20:54 -07:00
Kieran Prasch d7f99e7a53 Introduce MockBlockchain; pytestfixture tweaks. 2020-05-08 19:20:54 -07:00
Kieran Prasch 0c2f684d71 Neat layout for agent mocking and cli unit testing 2020-05-08 19:20:54 -07:00
Kieran R. Prasch cf1c40c919 Proof of Concept fast CLI test. 2020-05-08 19:20:54 -07:00
Kieran Prasch 923832b3c5 Hack and slash with mock web3 backend 2020-05-08 19:20:54 -07:00
K Prasch 6e1ae2fe8f
Merge pull request #1964 from KPrasch/squash
Bug Fixes: WSS Provider, Keystore file Handling
2020-05-08 09:59:27 -07:00
Kieran Prasch 20358ae9a2
Dont add test account twice in tests. 2020-05-07 10:10:34 -07:00
David Núñez d180d81c8a Batch deposit methods in StakingEscrowAgent and unit tests 2020-05-05 20:06:16 +02:00
David Núñez d3a88dc205 First test for Trustee: proposing MultiSig management operations 2020-04-15 02:36:22 +02:00
David Núñez e1dc124317 Adapt everything else to no secrets: deployers, tests, CLI, docs, etc 2020-04-09 17:59:56 +02:00
Kieran R. Prasch 64786b572d
Allow opt-out for uptime checks via configuration and disable it during tests by default. 2020-03-31 11:05:25 -07:00