Commit Graph

307 Commits (11c8be9b6d1bf0e14dfc200ae376860d3cb34559)

Author SHA1 Message Date
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
tuxxy dac9f72c0a Defenestrate 'nucypher remove' from the CLI 2019-06-19 17:28:17 -06:00
Kieran Prasch 9e96b1191a
Fixes miscalculated first period reward rate (See #1063), Improves depth of reward collection integration testing 2019-06-08 20:23:16 -07:00
Kieran Prasch f643f3ae78
Cleanup policy and arrangement value code paths - Fixes Issue #1015 - BlockchainPolicy value must be greater than 0. 2019-06-08 15:34:25 -07:00
K Prasch d743e3b791
Respond to RFCs in PR #984; Apply suggestions from code review
Co-Authored-By: David Núñez <david@nucypher.com>
Co-Authored-By: Derek Pierre <derek.pierre@gmail.com>
2019-06-08 14:32:35 -07:00
Kieran Prasch cc345404c7
Thin out web3 client syncing, Use configuration classes for default controller ports 2019-06-08 14:30:01 -07:00
Kieran Prasch 807ffd3eaf
Passing decentralized grant CLI lifecycle test 2019-06-08 14:30:01 -07:00
Kieran Prasch 459bc033b0
Alice restores default policy values from configuration file 2019-06-08 14:26:07 -07:00
Kieran Prasch 6097c83eb7
Almost all of checksum_public_address -> checksum_address 2019-06-08 14:25:35 -07:00
Kieran R. Prasch 2ab9c303d4
Ensure node discovery verification and identity_evidence remian compadible with federated nodes 2019-06-03 23:47:05 +03:00
Kieran R. Prasch 58302eb7db
Adding domains to Alice and Bob in examples, to aviod using the production defaults. 2019-06-03 22:52:22 +03:00
Kieran R. Prasch 4fd55ab6cb
Implement deploy_user input fixture for CLI deployments in-test. 2019-06-03 22:52:22 +03:00
Kieran R. Prasch 62c7df293a
Understand labels to be handled as unicode in interfaces. 2019-06-03 22:52:22 +03:00
Kieran R. Prasch 51319ec6f7
Straggler invalid interactive input at deploy-time 2019-06-03 22:52:22 +03:00
Kieran R. Prasch 0574cfd908
Ensure alice and bob remember the manually controlled non-staking node in reward integration cli test. 2019-06-03 22:52:22 +03:00
Kieran R. Prasch d2ff928f9d
Removes base64 label encoding via CLI interface. Style updates for debugging ease. 2019-06-03 22:52:22 +03:00
Kieran R. Prasch 8cd12e0e0e
Update deployment interactive input to match the latest CLI design. 2019-06-03 22:52:22 +03:00
Kieran R. Prasch bb30fcb5ae
Attempting to restore broken tests from refactoring side-effects of web3 client abstractions 2019-06-03 22:52:22 +03:00
Bogdan Opanchuk e83ad3d186
Make domain names `str` instead of `bytes` throughout the code, and only convert to bytes on serialization
Fixed #1026
2019-06-03 22:52:22 +03:00
Kieran R. Prasch f5a45b71d3
Uses --pay-with for alice cli lifecycle tests. 2019-06-03 22:52:22 +03:00
Kieran R. Prasch 610f8cb59d
Adjust Ursula CLI tests for non-federated as a default 2019-06-03 22:52:22 +03:00
Kieran R. Prasch c6edf8278e
mock auto-ip failure in test 2019-06-03 22:52:22 +03:00
Kieran R. Prasch a4e6480512
Understand ethrbase to be the default checksum address in non-federated mode 2019-06-03 22:52:22 +03:00
Kieran R. Prasch af812be748
Smoothing over auto-ip detection 2019-06-03 22:52:22 +03:00
tuxxy c6f0caf64a
Fix missing condition from rebase 2019-06-03 22:52:22 +03:00
tuxxy 882ce735ab
Add test for checking automatically determining IP 2019-06-03 22:52:20 +03:00
tuxxy cfeb0fa6d7
Implement mechanism to automatically find/confirm Ursula's public IPv4 address 2019-06-03 22:51:39 +03:00
Kieran R. Prasch 2e022461af
Handles more ethereum client node info strings; Fixes NameError 2019-06-03 22:51:39 +03:00
Kieran R. Prasch f64401be8c
Fix botched rebase in CLI rollback tests 2019-06-03 22:51:39 +03:00
Kieran R. Prasch c7d6696bce
Be a little more gentle with domain-based seeding (Ursulas); Skip and modifiy tests (needs follow-up) 2019-06-03 22:51:37 +03:00
Kieran Prasch 75daa85c20
Picking up the pieces- new --sync/--no-sync deploy flag, dehydrate deployment tests. 2019-06-03 22:50:40 +03:00
Kieran Prasch db94cb52dd
Felix tests passing - Bug fixes for chain syncing and accounts managemtn; Begin the movement to integrate BlockchainPower. 2019-06-03 22:50:40 +03:00
Kieran Prasch 60c2f06c54
SMall fixes and changes in tests 2019-06-03 22:50:40 +03:00
Kieran Prasch ba996f5d0c
Alter CLI deply tests to tests geth provder, First pass. 2019-06-03 22:50:40 +03:00
Kieran Prasch eab86fc3ad
Estimate gas updates to latest test constants; Additional commentary 2019-06-03 22:50:40 +03:00
Kieran Prasch 09db480312
Baseline rollback CLI scenerio tests 2019-06-03 22:50:40 +03:00
Kieran Prasch a317e7f5e4
Formalize upgrade, rollback, and deploy as deploy CLI actions, dehydrate tests and check every upgrade / rollback opportunity. 2019-06-03 22:50:40 +03:00
Kieran Prasch cffbf1f5b1
Upgradability for UserEscrowProxy depoyers API/CLI; Refine proxy contract handling and retargeting 2019-06-03 22:50:40 +03:00
Kieran Prasch 3454361251
Estimate gas updates to latest test constants; Additional commentary 2019-06-03 22:50:40 +03:00
Kieran Prasch 4c1af5b5ab
Baseline rollback CLI scenerio tests 2019-06-03 22:50:40 +03:00
Kieran Prasch 28e5c78e49
Formalize upgrade, rollback, and deploy as deploy CLI actions, dehydrate tests and check every upgrade / rollback opportunity. 2019-06-03 22:50:40 +03:00
Kieran Prasch 5bb79793d4
Upgradability for UserEscrowProxy depoyers API/CLI; Refine proxy contract handling and retargeting 2019-06-03 22:50:40 +03:00
Kieran Prasch 230cc7e0c2
Contract upgrade CLI integration test 2019-06-03 22:50:40 +03:00
Bogdan Opanchuk cbff090d68 Disallow creating persistent character configurations in --dev mode 2019-05-28 21:00:58 +02:00
David Núñez 4d0e34d545 Improved API for Character.from_public_bytes(). 2019-05-16 16:12:07 +02:00
David Núñez 19d3a8cf14 Touchups to some blockchain-related fixtures 2019-05-16 16:07:34 +02:00
David Núñez 7684bb103c Constructs funded_blockchain fixture from testerchain fixture
Gets rid of deployed_blockchain fixture
2019-05-16 16:07:33 +02:00
David Núñez a11d12a494 Move some local fixtures from CLI blockchain ursula to global fixtures 2019-05-16 16:07:33 +02:00
David Núñez 9698e43ae3 Simplify test_collect_rewards_integration in test_blockchain_ursula.py 2019-05-16 16:07:33 +02:00
Damon C ad532d9b78 remove unneeded key arguments 2019-04-30 11:09:47 -07:00
Damon C 5b1953f404 #937 decryption endpoint for Alice 2019-04-29 12:58:23 -07:00
Kieran Prasch 896b88213a
Respond to RFCs in PR #866 2019-04-24 20:05:51 +03:00
Kieran Prasch 593a852471
Cleanup CLI env var loading, include mining adjudicator in existing CLI env var tests. 2019-04-22 23:18:51 +03:00
Kieran Prasch e1e79c67ef
Updates estimate_gas to utilize TokenEconomics; Straggler renames and updates. 2019-04-22 23:18:51 +03:00
Kieran Prasch a0bfb22c05
Introduce MiningAdjudicator deployer & agent; Deployment entry points and integration testing. 2019-04-22 23:18:51 +03:00
Kieran Prasch 2d943e6afb
Refactor stake as a self-validating insnatce; Introduce token economincs via dep. injection throughout tests and blockchain API. 2019-04-22 23:18:49 +03:00
David Núñez 41f60099d3 Use TesterBlockchain's test accounts 2019-04-12 07:52:15 +02:00
David Núñez 01c466554a Don't use TesterBlockchain.ether_airdrop if it's already funded or can be done in the constructor 2019-04-12 07:52:15 +02:00
Kieran Prasch 9abd4e27fb
Respond to RFCs in PR #861 2019-04-06 12:40:34 -07:00
Kieran Prasch 13024ed048
Check for config root before removal; Run an ursula via mixed configs in test. 2019-04-06 12:38:09 -07:00
Kieran Prasch ed184942e3
Increase test coverage for nucypher help commands 2019-04-06 12:38:09 -07:00
Kieran Prasch ea20f88be4
Move destruction management before character initialization to handle failure modes involving semi-working configurations. 2019-04-06 12:38:09 -07:00
Kieran Prasch dd7f992277
nucypher remove docstring 2019-04-06 12:38:09 -07:00
Kieran Prasch e110632bb1
All characters destroy thier own config files, considering force 2019-04-06 12:38:09 -07:00
Kieran Prasch b691339f50
Destroy the configuration file itself; Attaching console emitter to click config. 2019-04-06 12:38:09 -07:00
Kieran Prasch 1479c78ea9
Tests show keyring multi-tennancy with config-based destruction 2019-04-06 12:38:09 -07:00
Kieran Prasch d59b9d63c1
Test describing a multi-tenant installation 2019-04-06 12:38:09 -07:00
Kieran Prasch b0eb41e5ea
Twisted clock testing for the faucet 2019-03-26 11:35:57 -07:00
Kieran Prasch 06311630d2
Patch distribution interval in faucet testing 2019-03-26 11:35:57 -07:00
Kieran Prasch 87ba9c7b42
Beter exception handling for missing address when running from config ; Reprs for db models 2019-03-26 11:35:57 -07:00
Kieran Prasch 052c7346b0
deploy contracts via CLI in Felix tests 2019-03-26 11:35:57 -07:00
Kieran Prasch 40b9b204ac
Setting flask secret; Improved documentation and logging; Utilize constant_sorrow 2019-03-26 11:35:57 -07:00
Kieran Prasch 5686a8a889
Felix CLI entry point adjustments; Allow provider URI restoration from File 2019-03-26 11:35:57 -07:00
Kieran Prasch 2946024dec
Felix tests passing with database management 2019-03-26 11:35:57 -07:00
Kieran Prasch 3fbb5ef426
Felix database skeleton and registrtion view stubbing 2019-03-26 11:35:57 -07:00
Kieran Prasch ce39f92555
Felix CLI itself and tests to suit. 2019-03-26 11:35:57 -07:00
Kieran Prasch b74d6e548a
NuWei -> NuNit 2019-03-18 12:31:08 -07:00
Kieran Prasch 2d518f8e62
Currency -> Token; Improve readability of blockchain constants 2019-03-18 12:31:08 -07:00
Kieran Prasch 091adbae71
Move NU and Stake to currency.py 2019-03-17 12:47:35 -07:00
Kieran Prasch 01bb9c1ef4
Upgrade to a dictionary for Ursula stake tracking. 2019-03-14 19:32:06 -07:00
Kieran Prasch 215bf5ad7f
Denomination management implementation with NU and Web3. 2019-03-14 13:38:19 -07:00
Kieran Prasch ec0104c444
Console painting for stake staging 2019-03-11 19:24:21 -07:00
Kieran Prasch 91c5f565dc
Allow rewards to be collected to an alternate address. Tighter assertions on reward collection. 2019-03-09 18:29:44 -08:00
Kieran Prasch 0b62b288e9
Minimal gas price manage ment in tests; Assertions for reward collection via CLI. 2019-03-09 17:32:07 -08:00
Kieran Prasch 88ff212f3c
Post-rebase cleanup Pt. II. 2019-03-09 17:32:04 -08:00
Kieran Prasch 244f0e0885
Update tests to accomodate staking CLI requirements: orders blockchain Ursulas, better fixture organization; Staking CLI integraton tests. 2019-03-09 17:31:28 -08:00
Kieran R. Prasch 2ebd3fc2d1
Missing integration test for BlockchainPolicy - working towards bug fixes. 2019-03-09 17:31:28 -08:00
Kieran R. Prasch bebe4db85c
Integrate native CLI and Staking CLI; numerous bugfixes. Failing reward collection test. 2019-03-09 17:31:26 -08:00
Kieran R. Prasch 46f674475e
Post rebase cleanup for stakling CLI over native CLI 2019-03-09 17:29:54 -08:00
Kieran R. Prasch bd9532bd87
post-rebase cleanup 2019-03-09 17:29:54 -08:00
Kieran R. Prasch dceabd8d04
Ensure allocation registry is passed onto test agency 2019-03-09 17:29:54 -08:00
Kieran R. Prasch 4073614229
Update nucypher-deploy tests to suit I/O changes 2019-03-09 17:29:54 -08:00
Kieran Prasch 12ee590085
Update deploy CLI to use string based domains; Add better registry management 2019-03-09 17:29:54 -08:00
Kieran Prasch 3b9c229963
Collect staking reward CLI 2019-03-09 17:29:54 -08:00
Kieran Prasch be885c237c
Divide stake CLI 2019-03-09 17:29:54 -08:00
Kieran Prasch 75bc63fd89
Tear wallets and wallet generation out of NucypherKeyring 2019-03-09 17:29:54 -08:00
Kieran Prasch 62a9c31f23
Examine stakes written via CLI on-chain 2019-03-09 17:29:54 -08:00
Kieran Prasch d7e42656df
Ursula CLI staking integration tests 2019-03-09 17:28:57 -08:00
Kieran Prasch a4b4928ea7
Toying with tests built for pygeth 2019-03-09 17:28:57 -08:00
Kieran Prasch 84ef320a4c
Updates policy encrypting key derivation language. 2019-03-06 16:39:02 -08:00
Kieran Prasch 1be1dab6c8
Respond to RFCs in PR #802. 2019-03-06 16:29:33 -08:00
Kieran R. Prasch 5a4f0e3bbc
Completed E2E CLI lifecycle tests with the 'ETHDenver demo' narrative. 2019-03-06 13:52:45 -08:00
Kieran R. Prasch dae7d59768
Updates key languagse and key encodings in test; Uses latest modifer flags ordering 2019-03-06 13:52:45 -08:00
Kieran R. Prasch 37483fd481
Mock side channel class in CLI lifecycle test.... back to Unexpected Response DB Issues with Alice threading 2019-03-06 13:48:22 -08:00
Kieran R. Prasch ea4de4d95a
Top-level character controller class: Generic Controller usage (works for any character) 2019-03-06 13:48:22 -08:00
Kieran R. Prasch bef3eacb92
E2E CLI Lifecycle test draft 2019-03-06 13:48:22 -08:00
MacLane Wilkison 86116706ff Change license notices in module headers to AGPL 2019-03-04 18:55:28 -08:00
MacLane Wilkison 9ed5b1e6f6 Remove unused variables+imports and make PEP 8 fixes in tests 2019-02-15 15:12:33 -07:00
jMyles 9ff5f7b6f8 Some rapid crazy changes with @kprasch to fix failing tests. 2019-02-15 00:30:44 -07:00
Kieran R. Prasch c43cdd573b Update Tests with corrected naming conventions for Flask test client - bug fixes for CLI tests. 2019-02-15 00:28:53 -07:00
Kieran R. Prasch 0da9d5cadd Fix filename spelling error in examples 2019-02-15 00:28:53 -07:00
Kieran R. Prasch bf2a5669d3 Test Alice CLI module 2019-02-15 00:28:53 -07:00
Kieran R. Prasch 86f9720461 Organize CLI Tests by Character 2019-02-15 00:28:53 -07:00
jMyles 3204427d4e Remaining formatting, reprs, imports, and cleanups from my work following @tuxxy's rebase. 2019-02-15 00:28:53 -07:00
jMyles 83bbf5b03b Tests and fixtures for Alice control via config. 2019-02-15 00:28:53 -07:00
tuxxy 37d4e1799f Add first draft of alice CLI for character control 2019-02-15 00:28:53 -07:00
Kieran R. Prasch ad5da13cd9 First draft of Moe provisioning with ansible 2019-02-14 11:32:34 -07:00
Kieran R. Prasch 162af4b51b CLI + Learner Integration tests for Ursula and Moe 2019-02-13 13:09:53 -07:00
Kieran Prasch 329114db29 Update and test Moe. 2019-02-12 15:19:42 -08:00
Kieran R. Prasch 90764287fe Update cli.config usage within the nucypher codebase. 2019-02-12 09:19:11 -07:00
Kieran Prasch 35d4d23405
Fixes and lightly tests Issue #711 2019-01-30 11:46:00 -08:00
jMyles 150d73da4e Accounting for an earlier refactor by @KPrasch. 2019-01-22 17:04:23 -05:00
Kieran Prasch 4fa2fa8e42
Handles Alice database in config subclass, Use sqlalchemy default development database instead of pure in-memory (#662) 2019-01-16 11:21:32 -08:00
Kieran Prasch be456e09ff
Fixes Issue #583: Allow 'nucypher ursula run' to destroy invalid nucypher system configurations. 2019-01-05 09:27:48 -08:00
Kieran Prasch 46f76ad21c
Fixes Issue #634: Restore CLI test for nucypher ursula run --dev --federated-only. 2019-01-05 09:27:48 -08:00
Kieran Prasch d6ad99a8e0
Ensure that operating mode is determined via configuration. 2018-12-11 10:01:35 -08:00
Kieran Prasch 3b436588a4
Restore the usage of --federated-only in CLI tests; Dedicate federated ursula CLI test module. 2018-12-11 10:01:35 -08:00