Commit Graph

433 Commits (cf008b29d17613a9f9c7ed277ab83d36b5593b0d)

Author SHA1 Message Date
Kieran R. Prasch 5d267e4fa5 Remove test allocation files at the end of deployer tests involving preallocations. 2019-12-04 17:45:50 -08:00
Kieran R. Prasch e814cc464e Include min password length when asking for it. 2019-12-04 17:44:57 -08:00
derekpierre e3acb7788b Remove Moe CLI test. 2019-12-02 10:45:02 -05:00
derekpierre 83ca610c6a Initial separation of Moe crawler vs dashboard 2019-11-25 16:22:50 -08:00
Kieran R. Prasch fede665c49 Fixes for #1463. 2019-11-22 15:08:43 -08:00
vzotova 1dee796bbd Added marker for "light" client to blockchain interface, used "light" parameter for pagination, test for pagination 2019-11-19 16:12:37 +03:00
David Núñez e124fe50e6 Merge remote-tracking branch 'upstream/master' into biznaga
Fix conflicts in nucypher stake and nucypher-deploy
2019-10-22 22:53:23 +02:00
derekpierre e84f3b56a7 RFC changes based on reviews for PR 1417. 2019-10-21 09:27:23 -04:00
David Núñez 0a3683286d RFCs to PR #1402 2019-10-19 23:59:42 +02:00
David Núñez 09591a1a78 Simplify UX of CLI when staking via contract
* Remove --escrow flag
* No account selection; use individual allocation file or explicit addresses
2019-10-19 23:59:37 +02:00
David Núñez d363108661 Stake should be the locked tokens, not locked + rewards. Fix #1369 2019-10-19 23:59:36 +02:00
David Núñez d968cdd848 Add account selection to collect-reward. Complete tests for stake via contract. 2019-10-19 23:59:30 +02:00
David Núñez 8e2bb3e217 Don't use a ContractAdministrator for painting nucypher-deploy inspect 2019-10-19 22:54:24 +02:00
szotov d8621c17be Fixed tests after renaming 2019-10-19 22:48:47 +02:00
szotov dd0be915c4 Rename UserEscrow in python 2019-10-19 22:48:47 +02:00
David Núñez 3515dad296 Fixes to assorted comments: docs, tests, etc. 2019-10-19 22:48:47 +02:00
David Núñez 8433316b0d Better integration of registry when selecting accounts and logging 2019-10-19 22:48:47 +02:00
David Núñez cfe6504393 More tests for staking via contract: set-worker, restake. Assorted fixes 2019-10-19 22:48:47 +02:00
David Núñez 0c4ce00d16 CLI tests for staking via a UserEscrow contract
* Based on tests/cli/ursula/test_stakeholder_and_ursula.py
2019-10-19 22:48:47 +02:00
David Núñez 3c33fe8281 New mock_allocation_registry fixture. Fix mock_allocation_infile and broken tests 2019-10-19 22:48:47 +02:00
David Núñez b726b8ce9d Improve regex in test_status. Solve pytest regex warnings. 2019-10-19 22:48:47 +02:00
David Núñez aed5d14bee Touches to nucypher-deploy 2019-10-19 22:48:46 +02:00
David Núñez 137db286ee Touches to allocation tests 2019-10-19 22:48:46 +02:00
derekpierre b1039a3e78 Added test to ensure that options and parameters for commands match. 2019-10-18 11:16:13 -04:00
derekpierre b9ae88979e Improve cli command help testing 2019-10-18 11:16:13 -04:00
derekpierre 4580a0bcc1 Changed CLI format for "stake" command - improve help and detection of invalid commands
Update unit tests.
2019-10-18 11:16:13 -04:00
derekpierre 802f56d2eb Code cleanup and improvement of test code coverage 2019-10-18 11:16:13 -04:00
derekpierre ae6ac4b2aa Fixed broken CLI tests based on refactor 2019-10-18 11:16:13 -04:00
derekpierre 16bf950020 Changed CLI format for "ursula" command - improve help and detection of invalid commands
Update unit tests.
2019-10-18 11:16:13 -04:00
derekpierre 068f02e2af Changed CLI format for "bob" command - improve help and detection of invalid commands
Update unit tests
2019-10-18 11:16:13 -04:00
Kieran R. Prasch 82c377234b
Respond to RFCs in PR #1344 2019-09-30 11:45:51 -07:00
Kieran R. Prasch c3be5a7854
Basic upgrade and re-target deployer CLI painting. 2019-09-30 09:04:09 -07:00
Kieran R. Prasch 2e7a886391
Clean-up on isle 4... the registries are spraying all over the codebase 2019-09-30 09:04:09 -07:00
Kieran Prasch de61088faa
Extact deployer CLI registry acquisition to actions 2019-09-30 09:04:09 -07:00
Kieran Prasch dab1a13e11
Registry In/Out file management, CLI test integration with proxy retargeting. 2019-09-30 09:04:09 -07:00
Kieran Prasch 0a713c1e51
Bare deployment and Retargeting tests for deployer and CLI 2019-09-30 09:04:09 -07:00
Kieran Prasch 22be285fb2
Buildout deployer proxy contract retargeting via CLI 2019-09-30 09:04:09 -07:00
Kieran R. Prasch 6761fde377
Respond to RFCs in PR #1339: Remove duplicated restaking methods, Docs touchups; ContractAgency, restaing agency layer assertions. 2019-09-19 10:54:25 -07:00
Kieran R. Prasch 00a52f0ca7 Stronger restaking CLI assertions. 2019-09-17 22:42:18 -07:00
Kieran Prasch 80382ad88c
Use LocalContractRegistry in deployment command tests; Add ID to registry repr. 2019-09-17 14:34:58 -07:00
Kieran Prasch 3af265916c
Crafting CLI access to enable/diable restaking. 2019-09-16 21:42:29 -07:00
Kieran Prasch ab20afc45c
Test modifications for CLI lifecycle to accomodate ImMemoryRegistry as the default. 2019-09-14 10:01:27 -07:00
Michael Egorov 2ba62bbf5b
CLI test bugfix - cli bug revealed 2019-09-13 23:31:39 -07:00
David Núñez 9614646593 Use regex matching in tests for nucypher status output. Fix broken stuff here and there. 2019-09-10 22:14:29 +02:00
David Núñez e1b4de272e Tests for `nucypher status stakers` and `nucypher status network` 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 baf55630d2
Passing ownership transfer CLI tests + consolidation. 2019-09-09 14:51:12 -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 ec5fab3b4f
UserEscrowProxy is now part of agency. Divergence amendments for status testing. 2019-09-09 14:50:46 -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 Prasch a3be973700
Extract ownership transfer CLI tests to new test module. 2019-09-09 14:49:38 -07:00
Kieran Prasch d5c5412f42
nucypher-deploy status command detailing contract deployment ownerships; introduce nucypher-deploy transfer-ownership entry point. 2019-09-09 14:49:38 -07:00
Kieran Prasch c2bde46878
Tests describing nucypher-transfer and status commands. 2019-09-09 14:47:49 -07:00
szotov 5588600ada Factory for economics, fixed tests 2019-09-04 18:20:02 +03:00
damon 4120d6f293 reinstate felix eth distribution test 2019-09-03 11:45:52 -07:00
Damon C 5cec6ca322 amount tweaks 2019-09-03 09:08:07 -07:00
Kieran Prasch 307bfe3ad6
Fixes #1283 - Allow staking to maximum amount per address. 2019-09-01 09:41:19 -07:00
Kieran Prasch c70ed348c0
Test replicating #1279 using the CLI. 2019-08-30 15:41:32 -07:00
Kieran R. Prasch f6cf2b6dfd Fixes missing default filepath call; Better Exception handling for outdated configuration file. 2019-08-27 09:56:41 -07:00
Kieran R. Prasch feeeee133a new-stakeholder -> init-stakeholder 2019-08-27 09:56:41 -07:00
Kieran R. Prasch 64d40a7f80 Whoops! Restores 'address' and respectively 2019-08-27 09:56:41 -07:00
Kieran Prasch 58f34dac7b Checkpoint #4 - Fixes policy sampling bugs - continue reflow fixes. 2019-08-27 09:56:41 -07:00
Kieran Prasch 2a299aaca1 Checkpoint #3 - Reflow StakeHolder, Stake and Wallet Management. 2019-08-27 09:56:36 -07:00
Kieran Prasch 324c2805f5 Checkpoint #2 - Refactor Policy, and Blockchain / Registry Reflow. 2019-08-27 09:54:14 -07:00
Kieran Prasch 69aea3f725 Checkpoint: Refactors lifecycle of Blockchain and Registry. 2019-08-27 09:54:13 -07:00
David Núñez 29a7fd8407 NUCYPHER_WORKER_ETH_PASSWORD envvar for Ursula. Workaround for #1205.
Require existence of at least one ETH account when prompted.  Fix #1207.
2019-08-18 11:59:37 +02:00
damon c 126c44a5fc
Merge branch 'master' into status 2019-08-08 12:52:45 -07:00
K Prasch 002a373189
Merge pull request #1203 from vepkenez/sync-fix
Improved Blockchain Syncing UX
2019-08-08 12:50:31 -07:00
Kieran Prasch 73c6da3ffe
Restore nucypher status CLI: Error handling and console painting; implement worker-staker speration. 2019-08-08 12:43:18 -07:00
Damon C d93f9c8947 squashed test fixes, addressed PR review comments 2019-08-08 11:49:25 -07:00
David Núñez c21448d547 Improve UX of nucypher stake set_worker and detach_worker 2019-08-04 02:41:04 +02:00
David Núñez f0c28f8c0c Action nucypher felix destroy should come earlier 2019-08-04 02:41:04 +02:00
David Núñez 965a473bb5 Make sure bare contracts are updated in deployers' upgrade tests 2019-08-04 02:41:04 +02:00
David Núñez 23d84ae22b Passing --no-registry correctly to characters' config 2019-08-03 21:49:01 +02:00
David Núñez 1bd2aae362
Adapt Ursula CLI tests to being asked for worker account password 2019-07-29 11:27:14 -07:00
David Núñez ca732b5a50
Add test_transfer_tokens to nucypher-deploy tests. Remove unused stuff. 2019-07-29 11:27:14 -07:00
Kieran Prasch 6392c1f42a
Do no ask for client passwork in stake CLI when using hw wallet flag, or dev chain is auto detected. 2019-07-26 10:15:34 -07:00
Kieran Prasch d8e6486283
Split keyring password collection into two functions and implement in CLI; Provides interactive account selection for Alice. 2019-07-26 10:14:41 -07:00
Kieran Prasch 2dd3e92868
Shortens CLI flag names to --provider and --teacher. 2019-07-26 10:14:41 -07:00
David Núñez a9f5c4a12b Implement and test nucypher stake detach-worker 2019-07-26 14:08:01 +02:00
Bogdan Opanchuk 0ce9458bf0
Create a console emitter only once (in NucypherClickConfig) and propagate it everywhere 2019-07-25 15:19:42 -07:00
Bogdan Opanchuk 3e17cd7c74
Remove duplicate options, move shared options definition and processing to NucypherClickConfig 2019-07-25 15:18:29 -07:00
Kieran Prasch 30aa51c1f2
Mock to_config_file briefly to avoid writing to the default config root. 2019-07-25 15:18:29 -07:00
Kieran Prasch c4f14cb1f0
Deprecates funding account and account creation options. Touch up stake CLI. 2019-07-25 15:18:29 -07:00
Kieran Prasch 1b3e3e45e5
Respond to RFCs in PR #1111: Remove deployment transaction gas limit. 2019-07-25 15:18:29 -07:00
David Núñez d317a7d1b0
Add missing AdjudicatorAgent assertion in test_deploy_cli 2019-07-25 15:18:29 -07:00
David Núñez 718a5244dc
PolicyAgent --> PolicyManagerAgent 2019-07-25 15:18:29 -07:00
David Núñez f100d39630
"Deployer" actor is now called "DeployerActor", to avoid confusion with deployers 2019-07-25 15:18:29 -07:00
Kieran Prasch 4ee8c70860
Respond to RFCs in PR #1056. 2019-07-25 15:18:29 -07:00
Kieran Prasch c8a95fba30
Skip transfer of rewards back to funding account for now. 2019-07-25 15:18:29 -07:00
Kieran Prasch c0f166e56a
Fix keyring checksum address multiple kwarg passing, add withdraw of inflation rewards to specified account or funding account. Touch up reward collection assertions. 2019-07-25 15:18:29 -07:00
Kieran Prasch 7508dc24c3
Use mocked blockchain interface connection within CLI subprocesses in two tests. 2019-07-25 15:18:29 -07:00
Kieran Prasch f947e6f747
Extracts manual staker and worker fixtures, Fixes incorrect address in to/from UrsulaConfiguration; Attempting to fix reward collection CLI integration tests. 2019-07-25 15:18:29 -07:00
Kieran Prasch 4b9b5f0559
Respond to RFCs in PR #1056; Test and CLI touch-ups. 2019-07-25 15:18:29 -07:00
Kieran Prasch fd5e5b236c
Adds CLI controls for inflation v. policy reward collection, extracts deployer action. 2019-07-25 15:18:29 -07:00
Kieran Prasch 2e70aebd01
Bug Fix: Functional inflation reward collection; Refactors internal stakeholder stake tracking 2019-07-25 15:18:29 -07:00
Kieran Prasch 879afef6a7
Restore Federated CLI functionality; Refactor CLI lifecycle integration testing to implement --work-address 2019-07-25 15:18:29 -07:00
Kieran Prasch 73f606a31d
Restores staking CLI tests post #1029 via Stakeholder API. 2019-07-25 15:18:29 -07:00
Kieran Prasch 17aa2edd9f
Update ursula CLI tests to use new stake entry points 2019-07-25 15:18:29 -07:00
Kieran Prasch 2e26f5753f
Respond to further RFCs in PR #1092.
Apply suggestions from code review

Co-Authored-By: David Núñez <david@nucypher.com>
2019-07-15 12:21:12 -07:00
Kieran Prasch 16e464fff5
Bug Fix: Allow TransactingPower to use cached password at activation time - credit to @cygnusv. 2019-07-15 12:06:44 -07:00
Kieran Prasch 98c04d1738
Remove nucypher deploy destroy-registry 2019-07-15 12:06:44 -07:00
Kieran Prasch 688572d5d3
Allows CLI-made characters to connect their blockchain interface through consuming the TransactingPower. 2019-07-15 12:06:44 -07:00
Kieran Prasch dc22bdede0
post rebase BlockchainPower -> TransactingPower 2019-07-15 12:06:44 -07:00
Kieran Prasch d1980f9662
Remove Trezor Imports and presence in setup.py; Deprecate libusb1 suport in-test. 2019-07-11 16:59:23 -07:00
tuxxy a21b01da18 Remove more deprecated device code 2019-07-11 15:39:06 -06:00
tuxxy 09f3370c1b Hack usb1 import to work on CI machines without libusb 2019-07-11 15:39:06 -06:00
tuxxy f107980c25 Add tests for device CLI skeleton 2019-07-11 15:39:06 -06:00
tuxxy c8e3a63a98 Move mock_trezorlib et al to conftest in tests.cli 2019-07-11 15:39:06 -06:00
tuxxy 44c218743b Move tests from wallet to device 2019-07-11 15:39:06 -06:00
tuxxy e4182b2b05 Add test for _reset and other unimplemented methods 2019-07-11 15:39:06 -06:00
tuxxy 438fe9ba7d Add test for call_handler_decorator and fix method declarations 2019-07-11 15:39:06 -06:00
tuxxy 632aa8c3e6 Add passing tests for trezor backend and change imports to work with mocking 2019-07-11 15:39:06 -06:00
Kieran Prasch 68b8a2735d Returning to a single-account BlockchainPower;TODO annotations for BlockchainPower. 2019-07-04 11:23:50 +02:00
Kieran Prasch 552fc461fc Updates estimate gas with new Testerchain API, completely removes calls to .transact() in nucypher nameapce. 2019-07-04 11:23:50 +02:00
Kieran Prasch bb3cce8465 Mock registry reads from disk in Felix CLI integration testing. 2019-07-04 11:23:50 +02:00
Kieran Prasch ebb6b422ac Add the ability to save an in-memory registry to disk. 2019-07-04 11:23:50 +02:00
Kieran Prasch 19d30b355c Adapting Felix to consume BlockchainPower at init-time. 2019-07-04 11:23:50 +02:00
Kieran Prasch 2ccc46b86a Refactor contract registry CLI integration testing to implement condensed Blockchain API. 2019-07-04 11:23:50 +02:00
Damon C aebac62dd8 remove most other direct blockchain.w3 references 2019-07-04 11:23:50 +02:00
Kieran Prasch 898925c8ad Integrating more tests with condensed blockchain interface, straggler Mock BlockchainPower. 2019-07-04 11:23:50 +02:00
Kieran Prasch 5fb4aee80b Deployers implement BlockchainInterface.send_transaction 2019-07-04 11:23:50 +02:00
Kieran Prasch 08fe94fea7 Moving (mocked) BlockchainPower usage in the direction of TransactingPower; Touch-ups. 2019-07-04 11:23:50 +02:00
Kieran Prasch cd9b2366c8 Blockchain -> BlockchainInterface 2019-07-04 11:23:50 +02:00
Kieran Prasch 963edebd74 Refinements for Testerchain, Integration with Capitalism, Touch-ups. 2019-07-04 11:23:50 +02:00
Kieran Prasch 1a2dabd095 Use Condensed Blockchain API in tests. credit to @vepkenez. 2019-07-04 11:23:50 +02:00
David Núñez 2150723cca Skip other tests affected by the lack of CLI for staking 2019-07-04 11:23:49 +02:00
David Núñez c9f7057dd3 Skip staking ursula tests until #1056 2019-07-04 11:23:49 +02:00
David Núñez 1387683e35 First stub of Worker class, extracted from Staker 2019-07-04 11:22:39 +02:00
Kieran Prasch 66b0e25165 Robust tests for BaseConfiguration API; Second layer for character configurations; Return of ABC. 2019-07-04 11:22:39 +02:00
Kieran Prasch 09c8847c14 Dehydration and cleanup of keyring attachment and checksum address selection. Touch ups. 2019-07-04 11:22:39 +02:00
Kieran Prasch add336af3f Ensure that known_nodes passed into configs are retained for re-use 2019-07-04 11:22:38 +02:00
Kieran Prasch b7012f607f NodeConfiguration -> CharacterConfiguration 2019-07-04 11:22:38 +02:00
Kieran Prasch 568420a9c6 Refinine NodeConfiguration to handle only common parameters; Dehydration and reorg. Optimize character config production file I/O. 2019-07-04 11:22:38 +02:00
Kieran Prasch 65d1b7aa51 Allow contract registry to write to a globally default location (config root) despite using a custom configuration root at init time. 2019-07-04 11:22:38 +02:00
Kieran Prasch 0565893be6 Accurately reflect destruction operations; Simplify usage; UrsulaConfiguration implements BaseConfiguration. 2019-07-04 11:22:38 +02:00
Kieran Prasch 701c7b5f15 CharacterConfiguration subclasses implemnt BaseConfiguration class attrs; Reorganize tests.config 2019-07-04 11:22:38 +02:00
Kieran Prasch d888c60607 Adds BaseConfiguration and Ursula standard configurations tests; Style touchups, Preserving 'checksum_address'. 2019-07-04 11:22:38 +02:00
David Núñez 9638dc86bf Fix name of StakingEscrowAgent. It was StakingEscrow 2019-07-04 11:22:38 +02:00
David Núñez 9eee8e6c9d Removing some re-emerging garbage, probably from a rebase 2019-07-04 11:22:38 +02:00
David Núñez 398896d2ab Leftovers: Miner --> Staker, MiningAdjudicator --> Adjudicator, etc. 2019-07-04 11:22:38 +02:00
Kieran R. Prasch 877833aaf3 Understand Staker and Staking to be separate ideas. 2019-07-04 11:22:38 +02:00
Kieran R. Prasch 3a80eec247 Goodbye, Three Agents. Hello, Agency. 2019-07-04 11:22:38 +02:00
Kieran R. Prasch 5551ce950c MinerEscrow -> StakingEscrow, and MiningAdjudicator -> Adjudicator in agency, and in-test 2019-07-04 11:22:38 +02:00
jMyles 523fde54b4 Our Ursula from config is also supposed to be interactive per the test spec. 2019-06-28 20:11:55 -07:00
jMyles 54249ebb5e Adding --interactive for the moment in order to display command prompt, on which test assertion relies. 2019-06-28 20:11:55 -07:00
Bogdan Opanchuk 39ecedd724 Rename TesterBlockchain on import in tests to prevent py.test from trying to pick it up 2019-06-26 22:48:33 -07:00
Kieran Prasch 9bf50e8eff
Use common control request fixture in tests for both web + RPC controllers. 2019-06-26 08:50:54 -07:00
Kieran Prasch 403c093fac
RPCController test client and stdio transport unit testing 2019-06-26 08:50:54 -07:00