Commit Graph

835 Commits (03428ab4125d2ef58abfd5504294b9cfeef50a8f)

Author SHA1 Message Date
David Núñez f878e5d910 Clarification of some tests for Bob 2018-11-02 21:03:36 +01:00
David Núñez 69515ff97a Fix missing steps for test federated Bob.retrieves() 2018-10-29 12:40:34 +01:00
David Núñez 812a2b0c91 Test for Bob.join_policy() in a separate test module. Fixes #233 2018-10-29 12:10:00 +01:00
David Núñez 310e2f3a55 Move certificates_temdir fixture to fixtures module 2018-10-29 01:52:01 +01:00
David Núñez 7f6b791d0d Umbral release already has KFrag.__repr___ 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
David Núñez dddd76e023 High-level test of Bob.retrieves() 2018-10-28 20:05:19 +01:00
David Núñez ef21977cb6 Update tests/characters/test_bob_handles_frags.py
Co-Authored-By: jMyles <justin@justinholmes.com>
2018-10-27 23:27:35 +02:00
jMyles 59ff623949 Ursulas signs CFrags. Fixes #141. 2018-10-27 23:27:35 +02:00
jMyles 6ee0c606f5 Fixing test race condition. 2018-10-27 23:26:33 +02:00
jMyles b1aef7fdb3 Changing remaining 'bootnode' references to 'seednode'. 2018-10-27 22:36:02 +02:00
jMyles a71784a8c6 A real test showing the seed node giving its cert via hendrix. 2018-10-27 22:36:02 +02:00
jMyles 2eb27f3f68 Better test for node storage in learning loop. 2018-10-27 22:36:02 +02:00
jMyles 0ba7db7970 node storage commented out, lots of slow tests skipped, but things pass now. 2018-10-27 22:20:05 +02:00
jMyles eae0e12ed5 Initial test for firstula situation. 2018-10-27 22:20:05 +02:00
jMyles 34f6c73b2e Seed nodes can now be passed separately to bootstrap learning loop. 2018-10-27 22:20:05 +02:00
Justin Holmes 4e3054a020
Merge pull request #484 from KPrasch/user-escrow
`UserEscrow` Agent & Deployer; Entity layer testing
2018-10-27 22:14:05 +02: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 R. Prasch dafb181513 Tests UserEscrow Agency 2018-10-27 21:51:32 +02:00
Kieran R. Prasch 46c0e96d81 Seed node discovery contract and tests 2018-10-27 21:51:32 +02:00
Kieran Prasch 4f2c8a8352 Let Deployer attach an allocation registry or deployer address to it's interface at startup. 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
Tux a86677bb6a
Merge pull request #480 from KPrasch/keyring-hosting-power
Keyring Derived TLSHostingPower
2018-10-25 14:10:33 +02:00
David Núñez 3526f18980 Renaming some variables 2018-10-19 03:11:34 +02:00
Kieran Prasch 0fad80a3e3 Draft of test for deployment actor 2018-10-17 09:34:53 -07:00
Kieran Prasch b3b644f7a0 Agent and deployer layer testing, including beneficiary contracts 2018-10-17 09:33:30 -07:00
Kieran Prasch db384bf7c2 Keep compiler test module from being left beind: needs cleanup 2018-10-16 12:54:02 -07:00
Kieran Prasch 974cc23058 Agency transaction usage bug fixes 2018-10-16 12:51:49 -07:00
Kieran Prasch c37683ee35 Builds out test agent test layer; Reorganizes non-federated test modules 2018-10-16 12:46:30 -07:00
Kieran Prasch 92d4434df6 Prepare to subdivide non-federated test suite modules; Cleanup 2018-10-16 12:43:29 -07:00
Kieran Prasch e1fdef9011 nucypher-cli -> nucypher; CLI cleanup 2018-10-14 20:25:37 -07:00
Kieran Prasch 5f84157b96 Derive HostingPower from Keyring 2018-10-14 20:19:02 -07:00
K Prasch ab22d5db93
Merge pull request #476 from KPrasch/storages
Configurable Node Storages
2018-10-12 09:23:51 -07:00
K Prasch d0316ca7da
Merge pull request #473 from tuxxy/impeach-kademliavanaugh
Remove Kademlia digest function
2018-10-11 11:47:40 -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 c31906b067 Improved NodeStorage test accuracy and coverage; Mock S3 2018-10-09 23:41:23 -07:00
Kieran Prasch 1edc9773d7 Test coverage for NodeStorages; Mocked LocalFile and S3 Backends 2018-10-09 23:41:23 -07:00
Kieran Prasch f13910c365 Dont load metadata in test configurations 2018-10-08 11:22:28 -07:00
tuxxy b6d555e7d2 Remove kademlia digest function and replace it with keccak_digest 2018-10-07 14:44:04 -06: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 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 5b0eb0003d Allow Vladimir to claim a BlockchainPower on the target Ursula's node; Use EvilMiddleware (skip Vladimir's SSL) 2018-10-02 21:19:23 -07:00
Kieran Prasch 76d8a2efd5 deprecate usage of certificates_dir from TLSKeypair and HostingPower 2018-10-02 21:19:23 -07:00
Kieran Prasch f9cfd597d4 Pass TLS certificate filepaths into node_information endpoint 2018-10-02 11:32:55 -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 6aeb36ef70 (failing) test showing Alice only accepting latest node by timestamp. 2018-10-02 19:41:02 +02: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
jMyles 369e87e829 Signed interface info messages includes timestamp. 2018-10-02 17:32:46 +02:00
tuxxy bd3f19c7e7 Add test for Ursula serialization 2018-09-28 12:47:12 -06:00
Kieran Prasch e60706793a Optimize imports project-wide 2018-09-25 20:27:27 -07:00
Kieran Prasch f8aa879ac1 touch-up character function signitures; touch-up blockchain test assertion errors 2018-09-25 20:26:49 -07:00
Kieran Prasch 7e04dd117b Use static blockchain constants, removes ConstantSorrow usage for static values 2018-09-25 20:26:44 -07:00
Kieran Prasch d84014a35f Cast constant_sorrow constant to int 2018-09-25 10:15:01 -07:00
Kieran Prasch ef31fb944c Resolve CI ImportErrors 2018-09-25 09:47:42 -07:00
Kieran Prasch d6fc416a79 remove extra time travel (moved to ursula fixture) 2018-09-25 09:28:48 -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 293f9c158c Deprecate CLI demo module; Respond to RFC & cleanup 2018-09-24 18:42:42 -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 13764517ac Reflect character initialization logic in NodeConfiguration subclasses; Integrate with local filesystem paths in dev and non-dev modes. 2018-09-22 15:43:35 -07:00
Kieran Prasch 4c02e5cd9e A huge slew of type hints and annotations to help resolve mypy checks 2018-09-21 10:16:38 -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 2384cbf7a0 Update fixture chatacter configurations to use local tmpdir 2018-09-20 12:54:16 -07:00
Kieran Prasch c0cde6778d Test coverage for run_ursula CLI: lone ursula 2018-09-20 12:54:16 -07:00
jMyles f7447d50e9 Fixing the test by copying Ursula's stamp. 2018-09-20 14:06:45 +02: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 d311c397a1 Include dbatabase filepath as a configuration option; Stop spraying databases during tests. 2018-09-19 14:30:53 -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 c23ff73002 Working lonely federated node via CLI using UrsulaConfiguration API 2018-09-19 21:40:35 +02:00
Kieran Prasch f5e0056b5f Update two tests to use ursula configuration fixture 2018-09-19 21:40:35 +02: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
Kieran Prasch a8516ec9ca Import Vladimir's eth keys to the keychain. 2018-09-19 21:40:04 +02:00
jMyles d92c6fe5c3 Bob actually uses federated Ursulas for this test. 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 e4fd0647e2 Removes anything that mentions the DHT. Kademlia remains. 2018-09-18 09:23:31 -07: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 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 Prasch f69380a3dd Namespace and modularize nucypher sandbox utilities 2018-09-18 09:19:46 -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 6389cb329b Much more solid test for Vladimir posing as Ursula. 2018-09-12 14:04:33 +02:00
jMyles ff90af5a06 Some tidying up after all the shifting around. 2018-09-12 14:04:02 +02:00