Commit Graph

204 Commits (f4727d809df0659d4e64d8cb04ee980b2d964adc)

Author SHA1 Message Date
Kieran Prasch d30b162208 Better support for CLI JSON responses and pretty printing. 2021-02-07 09:43:19 -08:00
vzotova 7c77aa65d0 Remove locking restake flag, throw error when node tries to commit twice in a row 2021-02-02 19:24:28 +03:00
vzotova 61d8dc1ec0 New deployment order: StakingEscrow dispatcher, then PolicyManager+Dispatcher -> Adjudicator+Dispatcher -> WorkLock and only after this StakingEscrow itself 2021-02-02 19:24:28 +03:00
vzotova 9815440464 New order of contracts deployment, StakingEscrow uses other addresses of main contracts in constructor 2021-02-02 19:24:28 +03:00
vzotova b384911e5d Remove batch deposits 2021-02-02 19:24:27 +03:00
Kieran Prasch 9cb7c1979b Bugfix and supporting tests for automated IP determination 2021-01-15 18:19:39 -08:00
damon c e907a598a2
Merge pull request #2462 from KPrasch/automagic
IP address checks on worker startup
2021-01-14 20:47:32 -08:00
Bogdan Opanchuk a2b99daa1d Merge proposals and enactment into a single method, return EnactedPolicy 2021-01-14 11:19:35 -08:00
Bogdan Opanchuk de0f933118 Make Arrangement stateless and get rid of BlockchainArrangement 2021-01-14 11:19:35 -08:00
Kieran R. Prasch 86d61b41f1 Test touchups for ursula startup 2021-01-12 13:10:15 -08:00
Kieran R. Prasch 2daa9b499d Closes #2424 2021-01-12 13:10:15 -08:00
Kieran Prasch 94bf887364 Soften the impact of unknown IP during checkup 2021-01-12 13:10:14 -08:00
Kieran Prasch 7d6b45a2e0 Advances automatic IP determination: Query known nodes. 2021-01-12 13:09:07 -08:00
Kieran Prasch 5b88afc7c6 localizes card mocking fixture so CLI test modules will propery run. 2021-01-12 11:08:45 -08:00
Kieran Prasch a9d3b6cf1e Deprecation of automated deployment series by ContractAdministrator 2021-01-12 11:08:45 -08:00
Kieran Prasch f2a1443457 Removes interactive commitment via UrsulaCommandProtocol 2021-01-09 16:55:44 -08:00
Kieran Prasch a9638ea6e1 Mock card save method (neded to run tests as suite). 2020-12-25 01:51:16 +01:00
K Prasch 0d7af8bd60
Apply suggestions from code review
Co-authored-by: Derek Pierre <derek.pierre@gmail.com>
2020-12-18 09:49:52 -08:00
Kieran Prasch fae2c05509 Use constants for cli password collection confirmation 2020-12-11 12:09:04 -08:00
Kieran Prasch 38c441dff0 Improves staker and ursula literature and help texts 2020-12-11 12:07:43 -08:00
Kieran R. Prasch 735dccce1e
Card CLI acceptance testing for 'alice/bob make-card' and card directory autocreation. 2020-12-09 16:52:15 -08:00
Kieran Prasch d21d7ee947 Additional help text and accompanying test; Relocate help test to CLI unit. 2020-12-09 14:10:03 -08:00
Kieran Prasch b342180d89 Additional CLI acceptance tests for non-interactive use cases. 2020-12-09 13:55:45 -08:00
Kieran Prasch e6af45eb26 CLI acceptance testing for character cards 2020-12-09 12:44:23 -08:00
Kieran Prasch 91e0accd20 Use ISO8601 for CLI expiration 2020-12-08 10:40:42 -08:00
Kieran Prasch 63d8c3555f Improves grant CLI: all policy values cascade from flags, to defaults, and interactively. Integrates with probationary period enforcement. 2020-12-08 10:40:42 -08:00
David Núñez b0997653ab Fixes #1704: CLI asks for confirmation before detaching worker 2020-12-08 10:40:42 -08:00
vzotova 96e959f60a Fix after rebasing 2020-12-03 16:48:33 +03:00
Kieran Prasch abc24eba8f Assertion for staking interface router ownership transfer via CLI. 2020-12-03 13:15:32 +01:00
Kieran Prasch 97aff893fb Hotfix for staking interface router ownership transfer 2020-12-03 13:15:32 +01:00
Kieran R. Prasch 9299ab186d
newsfragment for PR #2446 2020-11-18 20:07:19 -08:00
Kieran R. Prasch 1c96c33442
test --config help; Keep help tests in one test module 2020-11-18 19:50:13 -08:00
David Núñez d0334e029c Fix bug in test for local keystore caused by an Ursula too eager to work 2020-11-06 17:12:54 +01:00
jMyles 158e0ee62b Ursula needs an explicit domain in this test in order for Bob to be able to retrieve. 2020-11-03 19:11:37 -07:00
David Núñez 0b2dd001ba Correct problems when setting the min fee rate. Fix #2390
Also, simplifies usage by expressing rates in GWEI
2020-11-03 12:10:59 +01:00
vzotova d1ede31ebc CLI method to remove unused sub-stake 2020-10-20 20:33:39 +03:00
Bogdan Opanchuk 1557617afd Since web3=5.12.2 some of `eth` methods require positional arguments 2020-10-18 00:16:05 -07:00
derekpierre b4021faffa Ensure that testnet flag is set correctly for deployer. 2020-10-07 14:42:30 -04:00
Kieran Prasch ac34a79a7f Accepts --network as a required flags for nucypher-deploy commands. 2020-10-05 15:47:27 -07:00
Kieran Prasch c7f39ff484
A home for nucypher deploy CLI tests... 2020-09-30 21:18:43 -07:00
Kieran Prasch 81e401703c Respond to RFCs for PR #2315; Combating CI timeouts for deployer CLI tests. 2020-09-30 08:12:26 -07:00
Kieran Prasch b3462d2902 Show original and target contract version numbers during interactive upgrade 2020-09-29 21:45:45 -07:00
Kieran Prasch 1e63ce6b2c Test touch ups 2020-09-29 20:40:15 -07:00
Kieran Prasch e36d4da5d4 Deployment CLI plumbing adjustments: allow for domain-specefic pre-flight checks on upgrade. 2020-09-29 20:25:21 -07:00
Kieran Prasch 997a481738 Retire nucypher deploy contracts automated series test. 2020-09-29 20:25:21 -07:00
Kieran Prasch 79c360a5b9 Eager pre-flight checks for deployer upgrade CLI. 2020-09-29 20:25:21 -07:00
Kieran Prasch ea3584656c Implements --confirmations for deployer transactions, including defaults. 2020-09-29 20:25:21 -07:00
David Núñez 4cf7dcadc3 We're done with multiple domains, for the moment.
Closes #2144. Closes #1580.
2020-09-24 20:27:13 +02:00
K Prasch 1f5407e7d5
Merge pull request #2220 from KPrasch/signer
Trezorlib Transaction Signing
2020-09-24 08:06:54 -07:00
Kieran Prasch f526b72790 SLIP44 support and EIP-155 compliance for trezor testnet derivation paths 2020-09-22 21:19:24 -07:00
Kieran Prasch 6a186eb385
Adjusts tests for hasty commitments 2020-09-21 11:05:06 -07:00
K Prasch 7a26900976
Merge pull request #2258 from vzotova/remove-force-lock
Remove force re-stake lock
2020-09-17 08:27:13 -07:00
David Núñez 85c14b0819
Merge pull request #2253 from derekpierre/ursula-limpia
Provide periodic feedback to user about still waiting for bonding and funding
2020-09-17 13:58:31 +02:00
vzotova d51ad8db93 Remove force re-stake lock 2020-09-17 13:54:57 +03:00
derekpierre ee718fce75 Provide periodic feedback to user about still waiting for bonding and funding on Worker startup. 2020-09-15 14:33:30 -04:00
derekpierre 7a9c57dcb4 Ensure that --metrics-port is specified when --prometheus is used when running ursula.
Added/Cleaned up some tests
2020-09-14 10:23:16 -04:00
vzotova 719b35889e Stake command to control snapshots flag 2020-09-10 17:56:30 +03:00
jMyles d2cb974bc1 Merge commit integrating the deployer test fixes in an effort to get that green check. 2020-08-31 15:31:53 -07:00
jMyles 9db84e1260 Passing testerchain as a kwarg. 2020-08-31 15:30:12 -07:00
David Núñez 7d87a1f2c3 CLI defaults are tricky. See #2214
For the moment, we'll continue with the global default network being None, but setting `mainnet` as default for nucypher worklock and nucypher status
2020-08-31 20:58:17 +02:00
jMyles de266be0cf Resolving import conflicts with main. 2020-08-31 01:07:27 -07:00
jMyles 1f99d7c22c Making testerchain optional, and unused for federated lifecycle test. 2020-08-31 01:01:10 -07:00
David Núñez b08f4236a5 Some missing twisted.logger.Logger imports 2020-08-28 18:00:19 +02:00
jMyles 255a4cb67c Reworking test to assure that assertions are evaluated. While we're at it, also use verified open ports for the other tests. 2020-08-25 22:49:47 -07:00
vzotova bb8610b744 StakingEscrow: force re-stake locking in `batchDeposit` 2020-08-25 18:50:42 +03:00
jMyles 0de8e25132 Merge commit from main (and merge candidate into main.) 2020-08-21 20:32:45 -07:00
jMyles 2a901559d9 We remove these elsewhere now. 2020-08-21 12:46:10 -07:00
vzotova ef9665170d Show staked tokens in current and next periods for status command 2020-08-20 00:46:04 +03:00
vzotova bb6cee4613 Removed NO_WORKER_BONDED constant from `Staker.worker_address`, used NULL_ADDRESS instead 2020-08-20 00:46:03 +03:00
jMyles 0336e4d6e9 Mege commit uniting @fjarri sampling work and the rest of the async branch of TI. Done in order to provide a surface for blocking when sampling. See https://ptb.discordapp.com/channels/411401661714792449/411401661714792451/744248303528575037. 2020-08-18 05:14:05 -07:00
derekpierre 1d367c9442 Ensure that created ursula is stopped once local keystore test is completed. 2020-08-18 05:10:44 -07:00
Kieran R. Prasch 0a52158b59 Annotate several TODOs. 2020-08-18 05:10:43 -07:00
jMyles 4057608e68 Checking for zombified Characters and failing modules that leave them in state. 2020-08-18 05:10:43 -07:00
Kieran Prasch e594ff5e8c Test fixes: another manual tpower activation and attempt to fix tmap reference. 2020-08-18 05:10:43 -07:00
vzotova ada6824739 Command to merge stakes in agent, actor and CLI 2020-08-10 23:22:13 +03:00
vzotova 0d39b8a7b0 Flag to create and increase sub-stakes without deposit (using unlocked tokens) 2020-08-10 23:21:19 +03:00
Kieran R. Prasch 041622c40d Allow worker to attempt period commitment as part of it's initialization. 2020-08-10 12:52:31 -07:00
jMyles 2daa4a28e9 Lookup transacting_power in the typical public way. 2020-08-10 12:52:31 -07:00
jMyles dcbd882a9c Lifecycle logic - shared in federated and blockchain modules. 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 866e0e2e0a Skipping this test until we get the DB (#2099) worked out. 2020-08-10 12:52:31 -07:00
jMyles 4e68f532b5 Felix doesn't use a network domain. 2020-08-10 12:52:31 -07:00
jMyles 5f3eca5b4b Divide cli lifecycle tests into federated and decentralized in order to keep Ursula cache separated. 2020-08-10 12:52:31 -07:00
jMyles 16a7f90e27 Separating lifecycle tests for fixture hygiene. 2020-08-10 12:52:31 -07:00
jMyles 3db10ae5ff We're not connecting to seednodes at this stage anymore. 2020-08-10 12:49:26 -07:00
jMyles 98c63a2b54 Moving seednode loading logic inward. 2020-08-10 12:49:26 -07:00
jMyles 858345a58f Getting --lonely through each Character where it's used. 2020-08-10 12:49:26 -07:00
jMyles c6e004b870 Allow other Characters to be --lonely. 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
David Núñez e438f2f944 Use our new Logger replacement everywhere 2020-08-08 03:14:45 +02:00
vzotova f2acc2adda New command in CLI to increase value of specified sub-stake 2020-07-30 22:45:58 +03:00
David Núñez 001df65b3f Use the YES_ENTER constant in test_deploy 2020-07-21 22:26:00 +02:00
David Núñez 76f0147602 Change approve token allowance flag from --approve to --allowance
Co-authored-by: Derek Pierre <derek.pierre@gmail.com>
2020-07-21 22:15:43 +02:00
David Núñez bd8692d6a4 Approve token allowances with `nucypher-deploy transfer-tokens --approve` 2020-07-21 22:15:43 +02:00
David Núñez f5bee795d8
Merge pull request #2121 from mswilkison/worklock-terminology
Update WorkLock terminology
2020-07-15 17:46:44 +02:00
David Núñez 10ef0a1d62 Rename WorkLock commands and options 2020-07-08 17:13:05 +02:00
vzotova 796f297e93 Refactor `StakeHolder.assimilate()`, now `StakeHolder` instances from configuration and from interactive mode are the same 2020-07-07 17:19:02 +03:00
vzotova 2d0be22dec Apply suggestions from code review #2097
Co-authored-by: MacLane S Wilkison <maclane@nucypher.com>
Co-authored-by: David Núñez <david@nucypher.com>
Co-authored-by: K Prasch <kieran@nucypher.com>
2020-06-27 19:36:51 +03:00
vzotova 0e46140e8f Added `mint` command to CLI, added some warnings in `collecting-reward` command 2020-06-25 20:13:42 +03:00
Kieran Prasch 5909c37dd1 Apply API and interface updates to for enrico file handling. 2020-06-18 08:55:21 -07:00
vzotova b8b22e9cf0 Hide 'commit-next' from help messages 2020-06-04 20:33:21 +03:00
Kieran Prasch c86013ddb6 registry_contract_name -> contract_name 2020-05-28 17:46:33 -07:00
Bogdan Opanchuk 8b9d559113 Separate YES/NO (w/o linebreak) and YES_ENTER/NO_ENTER (with linebreak) in test constants 2020-05-28 14:42:02 -07:00
Kieran Prasch 28cce2fccc Reorganize tests into multiple suites. 2020-05-27 14:11:25 -07:00