Commit Graph

48 Commits (7098933a4751bcf8feb8eca061dda80befb51a14)

Author SHA1 Message Date
derekpierre e1eb8cb0c1 Ensure that test Ursulas set their provider public key after being initialized. 2023-09-14 16:26:05 -04:00
Kieran Prasch fc543c49dc dehydrate multichain test mocks and utilities for fixture resuse in multiple suites. 2023-08-24 14:26:29 +02:00
derekpierre 39b808a52d Re-add test `test_invalid_operators_tolerance` to get test mostly running. Unclear how to fix the code at the end of the test - so commented for now.
Remove unused testing utils method.
2022-12-22 15:23:33 -05:00
jMyles ff2b98c30c The 'big_testerchain' concept didn't work out; cleaning it up. Leaving it in the history for research purposes. 2022-12-07 11:29:26 +00:00
jMyles 97b19ea3e4 Fake addresses for fake Ursulas. Good enough for these highperf tests. 2022-12-07 11:29:26 +00:00
Kieran Prasch fda5c86db2 Removes "decentralized" and "blockchain" differentiation from "federated" 2022-12-07 11:29:26 +00:00
Kieran Prasch 7b7f2f071f Atomically unfederate (most of) the tests; Restores "federated" functionality by way of mocking. Takes advantage of fixture overriding to intercept testerchain. 2022-12-07 11:28:40 +00:00
derekpierre 37ddd90830 Use thread-safe set for caching active ports.
Stop the use of MOCK_URSULA_START_PORT constant which may cause inadvertent port reuse.
Adjust rules for selecting ports to ensure early short circuit for invalid ports.
2022-11-24 10:51:01 -05:00
Kieran Prasch baac3db5fa Attempt to prevent network port reuse in tests 2022-11-24 10:00:16 -05:00
Kieran Prasch 6ca73c2849 remove lisence header from tests 2022-11-16 13:27:47 +00:00
Kieran Prasch febc6093c1 Removes lmdb datastore usage 2022-10-27 10:12:17 +01:00
Kieran Prasch 73b238a587 Removes staking entities 2022-02-21 17:17:11 -08:00
Kieran Prasch b193465f98 adjust tests 2022-02-08 11:03:50 -08:00
Bogdan Opanchuk a276cfec25 Disband umbral_adapter 2022-01-08 15:29:22 -08:00
Bogdan Opanchuk 8cb8f16370 Clean up Python parts moved to Rust
And some unused imports
2022-01-08 15:29:22 -08:00
Bogdan Opanchuk 1d3642d960 Retrieval rework 2021-09-08 08:21:03 -07:00
jMyles 7c4cd47844 Partial restoration of the work to remove IndisputableEvidence and related concepts; it had been added back as part of a rebase to create a linear history. 2021-07-03 18:46:50 -07:00
Kieran Prasch e13fae0526 Combating freefriders and evil Bobs with a KFrag writ authorization. 2021-07-03 18:46:36 -07:00
Kieran Prasch a22b403a08 Partial tets update for modified map and order handling; Continue handling of publisher/authorizer keys. 2021-07-03 18:40:10 -07:00
David Núñez cdb825bdbc Bob includes the encrypted KFrag in the WorkOrder, which we previously used in Ursula's side to get the Kfrag from the re-encryption request 2021-07-03 17:50:43 -07:00
Kieran Prasch 8a54bd7e6d Post rebase cleanup for PR #2612; Umbral 0.2.x compatibility. 2021-06-30 15:14:10 -07:00
Kieran R. Prasch 4f7bdf5c46 tests respect the Keystore API 2021-06-28 14:33:31 -07:00
Bogdan Opanchuk 6090a755b0 Gate the choice of Umbral implementation in a single file 2021-06-22 18:31:08 -07:00
Bogdan Opanchuk 15333ddca2 Dissolve umbral_adapter 2021-06-17 14:38:51 -07:00
Bogdan Opanchuk e6fcdbbff6 Minimal fixes to make CI pass, using an adapter for Umbral 2021-06-17 14:38:51 -07:00
Bogdan Opanchuk 26076b1d98 Remove IndisputableEvidence and related functions and tests 2021-05-18 13:14:04 -07:00
Kieran Prasch 7e07bd267e Handle injected transacting power in tests. 2021-02-26 13:38:37 -08:00
Kieran Prasch 2ac8d276aa Respond to RFCs for PR #2536; Holdover for future work; Post rebase cleanup. 2021-02-18 18:35:56 -08:00
Kieran Prasch 0b164b6df7 Test adjustments and code touch ups 2021-02-18 18:07:43 -08:00
Kieran Prasch 37774897bc Understand Ursula.run as the coordinated single point of service startup. 2021-02-18 18:06:31 -08:00
Kieran R. Prasch 2daa9b499d Closes #2424 2021-01-12 13:10:15 -08:00
Bogdan Opanchuk 2e0efe451e Use in-memory mock LMDB environment for most tests 2021-01-02 17:19:13 -08:00
vzotova 96e959f60a Fix after rebasing 2020-12-03 16:48:33 +03:00
Kieran Prasch 6f04cef63d Rescues a test utility from fixtures and modifies estimate gas metrics to use standard compiler output. 2020-12-03 16:48:31 +03:00
David Núñez 2acb8f642e Add references to issue with initial commitment on make_decentralized_ursulas utility. See 2424 2020-11-06 12:19:34 +01:00
jMyles 34a5ad910d Removing stale debugging tooling. 2020-08-18 12:05:55 -07:00
jMyles b18dfd9a69 Evolving test. 2020-08-18 05:10:44 -07:00
jMyles e0918764d8 Big fixup for the remaining errors blocking integration.learning. 2020-08-10 12:54:35 -07:00
jMyles 5fd14a7109 make_federated_ursulas gets called from a few places of varying depths in the stack - accounting for that. 2020-08-10 12:54:05 -07:00
jMyles eaf7fbca37 Some debugging breadcrumbs for Ursula. 2020-08-10 12:54:04 -07:00
jMyles 4ffecd85fd Going back to defined ports in the hopes of working out #1546 / #1689. 2020-08-10 12:49:26 -07:00
jMyles 645533421e If the port is too high, try again. Attempting to deal with #1546. 2020-08-10 12:49:26 -07:00
jMyles 86b24373ac Setting checksum_address to staker address, and looking up TransactingPower in the usual (albeit private) way. 2020-08-10 12:49:26 -07:00
tuxxy f5a7577290 Fix tests with new datastore changes
Use a unique temp directory for each blockchain_ursula and fix the flunky test query

Fix test_decentralized_grant test

Catch RecordNotFound errors in test_freerider_attacks

Provide a db_filepath for the test_collect_rewards_integration Ursula

Add unique temp directory for Ursula in test_collect_rewards_integration
2020-08-10 15:38:58 +02: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