Commit Graph

201 Commits (2f5e514d1f525e6cb2d69e8ac0a900726a20c39e)

Author SHA1 Message Date
Kieran Prasch 8922af389c
Updates Web3 python API usage to v5.0.0-alpha.3 2019-01-15 11:47:40 -08:00
Kieran Prasch 787e0eebbd
Remove stale (hopefully) cleanup fixture in favor of ephemeral nodes in 'development mode' 2019-01-05 09:27:48 -08:00
Kieran Prasch c235bb45bb
Select a possibly open non-default port for running tests 2018-12-11 10:01:35 -08:00
Kieran Prasch c90026c7a2
Seperates config.produce from init-parameter generation; DRY up shared blockchin config log on NodeConfiguration and NodeStorage 2018-12-11 10:01:35 -08:00
Kieran Prasch 1c86a07a13
Integrate FleetState into NodeConfiguration; checksum_address -> checksum_public_address 2018-12-05 16:17:03 -08:00
Kieran Prasch ed23e08df1
Update tests to use thinned keyring and configuration API 2018-12-05 15:59:50 -08:00
Kieran Prasch 305eadc8d8
Updates tests with NodeStorage internal API usage; passphrase -> password 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
David Núñez 4ab7ad1252 DataSource.encapsulate_single_message() --> DataSource.encrypt_message() 2018-12-03 12:07:33 +01:00
Kieran Prasch 2f1e6eec20
Test database teardown logic 2018-11-09 09:30:15 -08:00
Tux 883ad1dda1 Merge branch 'cedar' into install-communism 2018-11-05 06:09:49 -07:00
tuxxy 7feabb6cb2 Add GPLv3 -- nucypher is free as in freedom 2018-11-04 13:16:42 -07:00
David Núñez 310e2f3a55 Move certificates_temdir fixture to fixtures module 2018-10-29 01:52:01 +01:00
David Núñez e13ef06787 Some pending renamings (uri -> label, signing_key -> verifying_key) 2018-10-29 01:51:56 +01:00
David Núñez 1819f9b1af Fixture for Data source must include the label 2018-10-28 20:08:59 +01:00
Kieran R. Prasch eec736d340 Deprecate arming in favor of readiness checks; Generate a default DB name for Ursulas. 2018-10-27 21:51:32 +02:00
Kieran Prasch 4c01385416 Tests deployment and agency components with layering in mind, (Includes UserEscrow) mirrors lower level tests with higher-level integration points 2018-10-27 21:51:28 +02:00
Kieran Prasch b3b644f7a0 Agent and deployer layer testing, including beneficiary contracts 2018-10-17 09:33:30 -07:00
Kieran Prasch 5f84157b96 Derive HostingPower from Keyring 2018-10-14 20:19:02 -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 f13910c365 Dont load metadata in test configurations 2018-10-08 11:22:28 -07:00
Kieran Prasch 888a4d4382 Character pre-init logic for keying in dev mode and for pre-existing accounts 2018-10-05 20:17:13 -07:00
Kieran Prasch 3a31468512 Running multi-host env via CLI; Temp config keyring handling 2018-10-05 20:17:13 -07:00
Kieran Prasch fe84935768 Create configurations to/from JSON files 2018-10-05 20:17:13 -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 4ab2807a9f Update test fixture to testerchain netloc URI; Inreaces test coverage for deployer and agent. 2018-10-02 11:32:55 -07:00
Kieran Prasch 8663bae64e Dedicated method for writing the default blank registry at installation-time; Use no_seed_registry configuration during tests 2018-10-02 11:32:44 -07:00
jMyles 217d7b49a8 A few test things: Adding MockRestMiddleware where appropriate and expressly setting Ursula's verified_stamp status to False to show that it gets set to True during verification. 2018-10-02 17:33:53 +02:00
Kieran Prasch 7e04dd117b Use static blockchain constants, removes ConstantSorrow usage for static values 2018-09-25 20:26:44 -07:00
Kieran Prasch 4b7fcd318e split Alice.grant test by operating mode; Cleanup BlockchainPolicy in preperation for futher integration. 2018-09-24 18:43:01 -07:00
Kieran Prasch d02a8bc0bf split Alice and Bob fixtures by operating mode; Cleanup cleanup logic, everywhere 2018-09-24 18:43:01 -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 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 2384cbf7a0 Update fixture chatacter configurations to use local tmpdir 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 c2d35c887d Remove temporary databases by database engine path reference 2018-09-19 16:26:15 -07:00
Kieran Prasch 7e403f39a2 Use pytest fixtures to cleanup temporary directories 2018-09-19 15:25:54 -07:00
Kieran Prasch a63a99c3d9 Auto-initialize temp configuration in fixtures 2018-09-19 13:36:16 -07:00
Kieran Prasch 5b34800761 Use lazy and dynamic runtime path generation, with temp storage options 2018-09-19 13:21:11 -07:00
Kieran Prasch 47d50a9e1a Use character configuration test fixtures. 2018-09-19 21:40:04 +02:00
Kieran Prasch acd2bc1dc6 pass only certificate filepath through rest middleware. 2018-09-19 21:40:04 +02:00
jMyles 5b1cb02f2d Erasing test certs in finally clause. 2018-09-19 21:40:04 +02:00
jMyles e93e259eab Once we have the work order, we don't separetly need the cert path, as it is affixed to the work order's Ursula. 2018-09-19 21:40:04 +02:00
Kieran Prasch cbe7bc79e3 Bifurcate up federated and non-federated ursula generation in tests 2018-09-18 09:19:51 -07:00
Kieran Prasch 96865929b0 Updates to use namespaced sandbox utilities; Prepare to split make_ursulas. 2018-09-18 09:19:51 -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 ff90af5a06 Some tidying up after all the shifting around. 2018-09-12 14:04:02 +02:00
jMyles 4413dc952c More hacking and slashing on the DHT removal and config sanity. 2018-09-11 00:41:44 +02:00
Kieran R. Prasch a6a219cbb0 Integrate downstream changes, from PR #424 2018-09-10 16:13:06 +02:00
K Prasch d558c43e4a
Merge pull request #423 from tuxxy/flag-utils
Flag some utilities as testing-only utilities
2018-09-06 06:07:27 -07:00
tuxxy d0301a7818 Fix imports for restructured test utilities 2018-09-06 06:55:28 -06:00
szotov e1b4c82723 Added checking of secret in the upgrading method in the dispatcher contract 2018-09-01 15:46:40 +03:00
Kieran R. Prasch 06e0575642 Small bug fixes, post-rebase madness 2018-08-31 15:17:12 -07:00
Kieran R. Prasch 4de47ddd3d remove stale module 2018-08-31 12:30:57 -07:00
Kieran R. Prasch 390b01fb2d Use kprasch's fork of eth-tester; Integrate the downstream changes from PR #123 2018-08-31 12:22:42 -07:00
jMyles bd41f34a70 Undoing some of @kprasch's partial pasting practice. 2018-08-31 12:20:30 -07:00
Kieran Prasch 136b485664 Update pyevm backend subclass, use URI for provider connection 2018-08-31 12:20:29 -07:00
Kieran Prasch d23a05536c Project-wide automated import optimization, followed-up with some hand-tweaking 2018-08-31 12:15:55 -07:00
Kieran Prasch 0cc2f3792f CircleCI: directly use install solc script to dodge pipenv api changes 2018-08-31 12:11:45 -07:00
Kieran Prasch 3154fb97b6 Project-wide automated import optimization, followed-up with some hand-tweaking 2018-08-31 11:55:04 -07:00
Kieran Prasch 8e1c8eb375 CircleCI: directly use install solc script to dodge pipenv api changes 2018-08-31 11:50:19 -07:00
Kieran Prasch d8d227309f Bifurcate interfaces module; Circumflex -> Interface 2018-08-31 11:47:42 -07:00
Kieran Prasch 98f9b7f4c9 Update pyevm backend subclass, use URI for provider connection 2018-08-31 11:47:38 -07:00
Kieran Prasch a71cb13730 Project-wide automated import optimization, followed-up with some hand-tweaking 2018-08-31 11:33:43 -07:00
Kieran Prasch c177260684 CircleCI: directly use install solc script to dodge pipenv api changes 2018-08-31 11:31:47 -07:00
Kieran Prasch f5c9f19b70 Project-wide automated import optimization, followed-up with some hand-tweaking 2018-08-31 11:27:59 -07:00
Kieran Prasch f1917560a6 CircleCI: directly use install solc script to dodge pipenv api changes 2018-08-31 11:19:45 -07:00
Kieran Prasch 0601094d3f Fix several bad imports post-rebase 2018-08-31 11:16:07 -07:00
Kieran Prasch b5e029a4ca Support dynamicly added, lazy, multiple blockchain providers 2018-08-31 11:16:07 -07:00
Kieran Prasch 4df1f077fb add demo action to simulation command 2018-08-31 11:16:07 -07:00
Kieran Prasch ffa70a117d Running federated ursula from CLI - Centralizes runtime cruft with injectable overrides while still considering ini config values. 2018-08-31 11:16:07 -07:00
Kieran Prasch 905a0151fb keep contract tests passing alongside api changes (intermediate) 2018-08-31 11:03:54 -07:00
Kieran Prasch 979d5e8def Eliminate __init__.py under any test directory; Relocate utilities. 2018-08-31 11:03:54 -07:00
Kieran Prasch 177cca303e Delay the initialization of agents during CLI runtime + small missing kwarg fix. 2018-08-31 11:03:54 -07:00
Kieran Prasch 2f19b262c4 Small bug fixes 2018-08-31 11:03:54 -07:00
Kieran Prasch 4fd09802ff CircleCI: directly use install solc script to dodge pipenv api changes 2018-08-31 10:53:18 -07:00
Kieran Prasch 9535a80c52 clean-up test utils modules 2018-08-31 10:52:19 -07:00
Kieran Prasch 12148a8d57 Clean-up imports, fixes downstream changes from pyUmbral; re-handle key importing util. 2018-08-31 10:52:19 -07:00
jMyles 188d301f61 Blockchain test compatibility in make_ursulas. 2018-07-19 20:19:24 -07:00
jMyles b551067603 Making a distinction between blocking until some number of nodes (any nodes) are learned and blocking until some specific set of nodes are learned. 2018-07-18 20:20:20 -07:00
jMyles 417884a791 Some cleanup for make_ursulas. Lots more to do. #347 2018-07-18 20:20:20 -07:00
szotov d991ca7ba3 Minor improvements for Windows compatibility 2018-07-17 22:39:12 +03:00
jMyles a88052c9a2 Separating blockchain Alice from regular ole' Alice. Style touch-ups. 2018-07-10 10:14:42 -07:00
Kieran Prasch 162c542df4 Combine and reorganize fixture modules 2018-07-05 11:54:45 -07:00
jMyles 7cf5bbf3f2 Fixed up args and kwargs for Character (although needs some organization). 2018-07-05 11:54:45 -07:00
jMyles 303b4dfc8c More test touchups and fixture organization, in anticipation of #338. 2018-07-02 20:44:09 -07:00
Kieran Prasch 8204351b6f Integrate three agents with existing fixtures, restore token airdrop as a utility function. 2018-06-26 01:10:45 -07:00
jMyles edba3a336d Using to_canonical_address instead of unhexlify. 2018-06-23 14:33:46 -07:00
jMyles cced06514d Catching tests up with federated logic. 2018-06-22 20:28:08 -07:00
jMyles 742a00e799 Deprecating testerchain in favor of three_agents. Using three_agents in ursulas fixture. This fixture now returns a set. 2018-06-22 20:27:15 -07:00
jMyles 2d9d25ab8a Using token airdrop and dropping MockTokenAgent. 2018-06-22 20:23:18 -07:00
jMyles e7375e0d98 Removing is_federated and using federated_only instead. 2018-06-22 20:18:06 -07:00
jMyles b2e5d9958e Evolved tests and fixtures. Mocking some blockchain logic and discovered Ursulas with learning loop. 2018-06-22 20:18:06 -07:00
jMyles e4253b6c5d Including Ursula ether address as part of public information. 2018-06-20 10:13:26 -07:00
jMyles 0c7646fa94 Working known_nodes into fixtures and tests. 2018-06-20 10:13:26 -07:00
Kieran Prasch 7a35c4b24b Hack together MockRestMiddleware, temp fix until implementing node learning. 2018-06-20 10:12:50 -07:00
Kieran Prasch e2eb556e10 Middleware -> RestMiddleware 2018-06-20 10:12:27 -07:00
Kieran Prasch 94d94d3407 Additional deprecation of alice DHT usage. 2018-06-20 10:12:27 -07:00
jMyles 00d0e64c7e Goodbye nucypher_test_config. 2018-06-20 10:12:26 -07:00