Commit Graph

303 Commits (0a2dd3a2090a223cbc4411cff903f9db081efe95)

Author SHA1 Message Date
David Núñez 7e1dec2950
Merge pull request #1662 from vzotova/rate-range
[DO NOT MERGE YET] Reward rate range
2020-02-27 12:05:03 -08:00
vzotova 4188cc673f Set min rate for a staker in actor, agent and CLI layers 2020-02-20 12:05:50 +03:00
Kieran R. Prasch 3f3386d360 Allow for forcible blockchain interface registration for tests. 2020-02-19 20:53:39 -07:00
jMyles cf07c3add6 Why wasn't blockchain side channel always compatible with the federated one? 2020-02-15 17:58:48 -07:00
jMyles 6c73075867 I don't like the sound of that. 2020-02-08 01:18:51 -08:00
jMyles dc202da06e Include enrico instance when resetting capsule_side_channel for test convenience. 2020-02-08 01:18:51 -08:00
jMyles 447b9b6e5c We don't need the temporary download_registry fix anymore. 2020-02-08 01:18:51 -08:00
jMyles 5f0c7ce5ef Several test fixes, most notable including that, in the capsule_side_channel fixture, we now keep the same enrico until it is reset(). 2020-02-08 01:18:51 -08:00
jMyles 677c8ddcfb When generating WorkOrder, if CFrags are being retained, return two tuples of WorkOrders - one complete, the other incomplete. Also some refactoring. 2020-02-08 01:18:50 -08:00
David Núñez c756b4ef14 Use new agency_local_registry fixture for CLI tests, and fix broken tests
Previously, we were supporting the consistency of our registry usage in a weird combination of fixtures' side-effects. Not anymore. CLI tests should use agency_local_registry, since it's a file-based mirror of the test_registry fixture when agency is assumed.
2020-02-07 11:28:34 +01:00
Kieran Prasch 5570d20df5 Unblocked by dnunez - Init stake via worklock allocation and ind. registry. 2020-01-30 10:27:29 -08:00
Kieran Prasch 657bc0b9a5 Third pass on Worklock CLI under new design\ patterns 2020-01-30 10:27:29 -08:00
Kieran Prasch 355d7ff887 Deprecates TestEconomics; Adds worklock supply and funding management - Extracts statistical methods to worklock agent. 2020-01-30 10:27:29 -08:00
Kieran R. Prasch 82dbfcfe89 First steps to integrate worklock deployment params via economics 2020-01-30 10:26:37 -08:00
David Núñez f1daae2463 Relocate NetworksInventory to nucypher.blockchain.eth.networks 2020-01-19 23:20:11 +01:00
David Núñez 3da6bdf087 Don't set globally a default domain in tests
Otherwise, tests are not modeling real behavior, where we don't have a default.
2020-01-19 19:58:38 +01:00
David Núñez b802af8223 A RegistrySourceManager for tests that only uses a tailored MockRegistrySource
It assumes that the only valid network is TEMPORARY_DOMAIN
2020-01-19 02:59:14 +01:00
David Núñez fe55ffc42c Preoperative marking before replantation surgery
We want to connect learning to "registry" domains
2020-01-18 19:40:19 +01:00
vzotova 3f888c8b51 Fix cli tests with policy creation 2020-01-10 13:14:01 +03:00
vzotova 4c983fc045 Update character layer for new start/end policy time 2020-01-10 13:14:00 +03:00
jMyles b49dcf98b3 Some more optimizations to lower test time. 2020-01-08 16:43:39 -08:00
jMyles 91e757b021 highperf mocked ursula fleet is now variable in size. 2020-01-08 16:43:39 -08:00
jMyles 949cea211a Up and down in the water?! A mock Bob for working with highperf mock Ursulas. 2020-01-08 16:43:39 -08:00
jMyles 703aeeee02 Need mock message verification in more places than were initially obvious. 2020-01-08 16:43:39 -08:00
jMyles 5de196329a New fixture for high-performance mocked Alice, which is compatible with Ursulas fixture in previous commit. 2020-01-08 16:43:39 -08:00
jMyles 377d88c81c Making fixture out of high-performance mocked ursulas. 2020-01-08 16:43:39 -08:00
vzotova 686a977f43 Test flag for StakingEscrow in administrator class 2019-12-26 13:01:10 +03:00
David Núñez fe11752e58 Introduce mock_transacting_power_activation fixture 2019-12-11 13:27:08 +01:00
David Núñez da7a572549 Adapt tests to new registry fetching; extract common fixture. 2019-12-11 13:27:08 +01:00
Kieran R. Prasch 57df8069a4 use random worker private key in manual worker fixture; remove stale script. 2019-12-03 21:05:25 -08:00
Kieran R. Prasch aa2c6b191e Fixes #1343 - Move StakeHolder to blockchain Actors. 2019-12-02 18:28:02 -08:00
Kieran R. Prasch 6105ffe235 Accommodate inter-test-module transacting power unlocking where needed (eth-test =>0.3.0b0). 2019-11-25 13:32:04 -08:00
David Núñez 377eb0dcf9 Test IndividualAllocationRegistry. Fix some broken stuff. 2019-10-19 23:59:37 +02:00
szotov dd0be915c4 Rename UserEscrow in python 2019-10-19 22:48:47 +02:00
Michael Egorov f365c82627
Blockchainy RPC tests pass 2019-10-01 12:14:38 -07:00
Michael Egorov 1c5b579ef0
ursulas -> handpicked_ursulas 2019-10-01 12:14:38 -07:00
Michael Egorov baf964e83e
Test started being fixed (unfinished yet) 2019-10-01 12:14:38 -07:00
szotov 390bf0ba46 Remove unused import 2019-09-18 18:23:06 +03:00
szotov 800876638f Reset chain using block hash 2019-09-15 18:22:27 +03:00
szotov f58eb7a090 Monkey patch to prevent gas estimates 2019-09-12 11:09:00 +03:00
szotov c0a4f976c6 Reset state in testerchain 2019-09-12 11:08:59 +03:00
David Núñez 7b8b31df22 Getting rid of old `session_agency` fixture. Use `agency` instead. 2019-09-10 22:14:29 +02:00
David Núñez 812349ffd5 Reduce probability of skewed stake distribution in stakers fixture 2019-09-10 22:14:29 +02:00
Kieran Prasch 3b3c2f2f1c
Respond to RFCs in PR #1157 Pt. II. 2019-09-10 12:35:51 -07:00
Kieran R. Prasch fa3285a310
Use session-based deployment secrets for testing upgrades; Adjustments for ownership CLI tests. 2019-09-09 14:51:11 -07:00
Kieran R. Prasch 562e5c6b2d
Working ownership inspection and status commands. 2019-09-09 14:50:46 -07:00
Kieran Prasch f210ce0688
Details nucypher status output; Passing nucypher transfer-ownership tests; Deploy UserEscrowProxy in agency fixture. 2019-09-09 14:50:44 -07:00
Kieran R. Prasch 6bdfc6c331 Re-implements some ursula mocking via pytest-mock spy. 2019-09-06 11:59:01 +02:00
szotov e9d2b1f3c7 Combine TokenEconomics and SlashingEconomics 2019-09-04 13:24:02 +03:00
szotov a36bf80dc8 Fix after rebasing 2019-09-04 13:24:02 +03:00