Commit Graph

258 Commits (1bd2aae362c217a5fd21580bb34e752e33361d2f)

Author SHA1 Message Date
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
Kieran Prasch 84a1283556
Restores blockchain interface connection configuration 2018-12-11 10:01:35 -08:00
jMyles f19601912d Fixed imports and some other formatting issues following merge commit. 2018-12-06 21:19:57 -05:00
jMyles a3fb853ffa Pre-arranged merge commit between @kprasch and myself to reconcile our branches.
Quite a few conflicts resolved.
2018-12-06 20:55:09 -05:00
jMyles ece4bf2808 Each Ursula in a concat'd bytestring is variable length. 2018-12-06 18:10:05 -05:00
Kieran Prasch 1c86a07a13
Integrate FleetState into NodeConfiguration; checksum_address -> checksum_public_address 2018-12-05 16:17:03 -08:00
Kieran Prasch 0afe4cc14a
Mock default installation to ensure rest_host it correctly set; Includes pytest-mock Pipfile update. 2018-12-05 16:17:03 -08:00
Kieran Prasch 3ea8c8269f
Extract cli fixtures: Test CLI help and status. Bug fixes to match. Optioal config_file envvar. 2018-12-05 16:17:03 -08:00
Kieran Prasch 0811666133
nucypher cli status automated test 2018-12-05 16:17:03 -08:00
Kieran Prasch 22f3921f38
Dedicated cli help test module 2018-12-05 16:17:03 -08:00
Kieran Prasch 0705e2f424
Disband cli.constants; Logging bug fixes. 2018-12-05 16:17:03 -08:00
Kieran Prasch 0192a1d16f
Tests and bug fixes for password collection via CLI 2018-12-05 16:17:03 -08:00
Kieran Prasch 3a840171b7
Through checking of config file existing; Mock line recv. transport. 2018-12-05 16:07:30 -08:00
Kieran Prasch b0170f1124
Add ursula command test job, remove 'unit' language from CI config 2018-12-05 16:04:32 -08:00
Kieran Prasch 8b2a33b48f
Basic tests for UrsulaCommandProtocol 2018-12-05 15:59:52 -08:00
Kieran Prasch 6ab8f4862f
bite-sized end-user CLI testing for Ursula CLI operations 2018-12-05 15:59:19 -08:00
Kieran Prasch b57d8cf88b
Deprecate accounts CLI tests 2018-12-05 15:58:20 -08:00
Kieran Prasch 14d5189787
First bout of testing for new Ursula CLI API 2018-12-05 15:58:20 -08:00
Kieran Prasch 1380fef5ea
Remove CLI config tests 2018-12-05 15:58:20 -08:00
Kieran Prasch d0e023ba03
Fixes nucypher-deploy entry point 2018-12-05 15:58:20 -08:00
Kieran Prasch 1f820e0659
Prepare test for cli namespace change and formal cli module 2018-12-05 15:58:20 -08:00
Kieran Prasch 03428ab412
relocate CLI script and remap entrypoint 2018-12-05 15:57:21 -08:00
Kieran Prasch 704f41a744 Refactor node storages backend tests; Accomodate pytest>4 2018-11-19 23:53:44 +01:00
Kieran Prasch c45e534823
Understand nucypher CLI to be a module 2018-11-09 09:29:49 -08:00
Kieran Prasch 21f8c4fb8a
Make federated-only the CLI default 2018-11-09 08:53:36 -08:00
Kieran Prasch 19350c524d
Understand cli.py to be a script 2018-11-09 07:49:31 -08:00
tuxxy 7feabb6cb2 Add GPLv3 -- nucypher is free as in freedom 2018-11-04 13:16:42 -07:00
Kieran Prasch b3b644f7a0 Agent and deployer layer testing, including beneficiary contracts 2018-10-17 09:33:30 -07:00
Kieran Prasch e1fdef9011 nucypher-cli -> nucypher; CLI cleanup 2018-10-14 20:25:37 -07:00
Kieran Prasch a945508a30 Keep default NodeStorages in memory, Unskip and resotre configuration cli tests 2018-10-09 23:42:43 -07:00
Kieran Prasch fe84935768 Create configurations to/from JSON files 2018-10-05 20:17:13 -07:00
Kieran Prasch 99532d581a Use click built-in tooling for more eager and through CLI input validation; Document all CLI options. 2018-10-02 21:29:23 -07:00
Kieran Prasch eea6e5ea01 Reintroduce skipped CLI tests; Cleaup non-critical or stale stubs. 2018-10-02 21:19:23 -07:00
Kieran Prasch ab798bb4f3 Carefully piece together NodeConfiguration that works for lazy, temp, test, and real configs; Read seed registry 2018-10-02 11:32:55 -07:00
Kieran Prasch e60706793a Optimize imports project-wide 2018-09-25 20:27:27 -07:00
Kieran Prasch 9b04aee6d0 Update tests with updates to configuration and missleware 2018-09-22 21:05:11 -07:00
Kieran Prasch aaba33290d Update tests to new learner names, help with cleanup a little. 2018-09-22 15:44:37 -07:00
Kieran Prasch 8387602295 Skip run_ursula test due to multi calls to reactor.run during tests 2018-09-21 09:39:12 -07:00
Kieran Prasch 2bcc485f93 Add local try/finally in cli.config test to cleanup a single test dir 2018-09-21 09:03:45 -07:00
Kieran Prasch e39ffc8461 Work on lazy default configurations; NetworkMiddleware default values 2018-09-21 09:03:02 -07:00
Kieran Prasch db0219ff24 straggler Teacher -> Learner 2018-09-20 12:57:23 -07:00
Kieran Prasch c0cde6778d Test coverage for run_ursula CLI: lone ursula 2018-09-20 12:54:16 -07:00
Kieran Prasch d1ffec14c2 CLI configuration test coverage; Mark unimplemented test as skip 2018-09-19 17:01:01 -07:00
Kieran Prasch c23ff73002 Working lonely federated node via CLI using UrsulaConfiguration API 2018-09-19 21:40:35 +02:00
Kieran Prasch f8ce7f5520 Extract learning logic into abstract Teacher class 2018-09-18 09:21:24 -07:00
Kieran Prasch f64cfc28f6 Improve accounts error handling; Trim non-essential test stubs 2018-09-18 09:19:51 -07:00
Kieran Prasch 31705a7fe6 Use temp config in CLI test; Add temp node config fixture 2018-09-18 09:19:51 -07:00
Kieran Prasch bdf522d0a1 Remove experimental pyfakefs code 2018-09-18 09:18:41 -07:00
Kieran R. Prasch 7a725fe0ab Include NodeConfiguraion in CLI - Fixup constants, naming, and imports wlongside DHT removal. 2018-09-18 09:18:41 -07:00
jMyles 4413dc952c More hacking and slashing on the DHT removal and config sanity. 2018-09-11 00:41:44 +02:00