Commit Graph

227 Commits (48a0acb41e48cfe057a6fa4f0a305d6f5dbaa94b)

Author SHA1 Message Date
K Prasch ae8c087cd4
Merge branch 'cedar' into install-communism 2018-11-06 16:23:52 +01: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 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 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
David Núñez 3526f18980 Renaming some variables 2018-10-19 03:11:34 +02:00
Kieran Prasch fe84935768 Create configurations to/from JSON files 2018-10-05 20:17:13 -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
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 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 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
jMyles f7447d50e9 Fixing the test by copying Ursula's stamp. 2018-09-20 14:06:45 +02:00
Kieran Prasch f5e0056b5f Update two tests to use ursula configuration fixture 2018-09-19 21:40:35 +02:00
Kieran Prasch a8516ec9ca Import Vladimir's eth keys to the keychain. 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 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
jMyles ff90af5a06 Some tidying up after all the shifting around. 2018-09-12 14:04:02 +02:00
jMyles 127c98816c Moving Characters to characters.lawful, in preparation for (now) the introduction of Vladimir and (not now) the introduction of a factory-style Character creation flow. 2018-09-12 13:58:13 +02:00
Kieran R. Prasch f7c0d7959e Entry points for saving TLS certs + Network Middleware updates for TLS verification. 2018-09-11 00:29:28 +02:00
Kieran R. Prasch a6a219cbb0 Integrate downstream changes, from PR #424 2018-09-10 16:13:06 +02:00
jMyles f80b0ca9e4 Fixes and smoothing the recent cherry-pick; making a smooth surface for Kokonusswasser. 2018-09-10 16:12:43 +02:00
jMyles 0b070ec38a Lots of test touch-ups. 2018-09-06 21:01:44 +02:00
jMyles 7bf42d8990 Uncorked stake (ie, Ursula doesn't stake really for tests) and removed skips. 2018-09-06 21:01:43 +02:00
jMyles f5a0b2cd95 These tests are a little funny for the moment. Need to skip them until we get stake() working properly again. 2018-09-06 20:56:17 +02:00
jMyles 6cc7194f95 Undoing some of @kprasch's partial pasting practice. 2018-09-06 20:56:16 +02:00
tuxxy d0301a7818 Fix imports for restructured test utilities 2018-09-06 06:55:28 -06:00
jMyles b40707eeeb Uncorked stake (ie, Ursula doesn't stake really for tests) and removed skips. 2018-08-31 12:21:05 -07:00
jMyles 785bc95626 Simpler InterfaceInfo. Loopback literals are now localhost. 2018-08-31 12:21:05 -07:00
jMyles 29039ddfa6 Powers no longer yield public keys specifically, but public material generally of any type. 2018-08-31 12:20:30 -07:00
jMyles 3329164f86 These tests are a little funny for the moment. Need to skip them until we get stake() working properly again. 2018-08-31 12:20:30 -07:00
jMyles bd41f34a70 Undoing some of @kprasch's partial pasting practice. 2018-08-31 12:20:30 -07:00
Kieran Prasch b6815f52ac Create blank ini config via cli command 2018-08-31 11:47:42 -07:00
Kieran Prasch a59990f022 Give UrsulaProcessProtocol some output, and store its run commands. 2018-08-31 11:34:21 -07:00
Kieran Prasch 9bc4b80984 Remove duplicated test ursula cache 2018-08-31 11:28:01 -07:00
Kieran Prasch f8e5d58f89 Project-wide automated import optimization, followed-up with some hand-tweaking 2018-08-31 11:24:08 -07:00
Kieran Prasch 0601094d3f Fix several bad imports post-rebase 2018-08-31 11:16:07 -07:00
Kieran Prasch 66e6517414 Deprecate old config usage, Remove bad imports 2018-08-31 11:16:07 -07:00
Kieran Prasch 979d5e8def Eliminate __init__.py under any test directory; Relocate utilities. 2018-08-31 11:03:54 -07:00
Kieran Prasch e7e4927175 Deprecate old config usage, Remove bad imports 2018-08-31 11:03:54 -07:00
Kieran Prasch db9775752e Strips old versions of from_config; CLI minor bug fixes 2018-08-31 10:52:19 -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 62a98a2b71 Test for Ursula announcing herself on launch. 2018-07-18 20:20:20 -07:00
jMyles de303c5244 Introducting TLSHostingPower. Ursula no longer needs to handle the cert or private_key - instead, she just generates a deployer. 2018-07-18 20:17:15 -07:00
tuxxy 5727898452 Remove from and fix tests 2018-07-16 19:44:46 -06:00
jMyles cb80379ff1 Bringing tests up to date with new semantics. 2018-07-13 12:12:28 -07:00
jMyles 0ca384c87e This test is irrelevant now that we test the learning loop directly. 2018-07-13 12:10:58 -07:00
jMyles f721d64d09 Finished fetching logic for Arrangements. Fixes #180. 2018-07-13 11:04:52 -07:00
jMyles 39e6433761 Passing bytes-in / bytes-out instead of eth_keys Signature object. 2018-07-10 10:14:42 -07:00
jMyles a88052c9a2 Separating blockchain Alice from regular ole' Alice. Style touch-ups. 2018-07-10 10:14:42 -07:00
jMyles d8a5a4a110 Verification logic by public address. Fixes #353. 2018-07-10 10:14:42 -07:00
jMyles eddcf0f5f0 Test for stamp evidence. 2018-07-10 10:14:42 -07:00
jMyles 8f8b28f0d2 Test fixups. 2018-07-05 11:54:45 -07:00
jMyles bcc159367f Fixing up tests. 2018-07-05 11:54:45 -07:00
jMyles cc5d6ef52a Beginnings of Character serialization tests. 2018-07-02 20:44:09 -07:00
jMyles 303b4dfc8c More test touchups and fixture organization, in anticipation of #338. 2018-07-02 20:44:09 -07:00
jMyles 2776928eda Fixing Bob up! 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
tuxxy 9696821a98 Add test for BlockchainPower 2018-06-26 01:58:04 -06:00
jMyles cced06514d Catching tests up with federated logic. 2018-06-22 20:28:08 -07:00
jMyles fb8747274a Totally new logic for test_grant for federated case. 2018-06-22 20:27:43 -07:00
jMyles 766acca7bf known_nodes is now private _known_nodes. 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 36b86eb6bb Implementing InterfaceInfo. 2018-06-20 10:13:26 -07:00
Kieran Prasch 27ffc557ad Updates tests and utilities with blockchain-representable characters 2018-06-20 10:12:50 -07:00
Kieran Prasch e37de07ec0 Begins deprecation of alice publishing Tmap to DHT; Post rebase cleanup. 2018-06-20 10:12:00 -07:00
Kieran Prasch 44952cd636 Introduces blockchain network elemtns to higher-level character tests; Additional high level blockchain setup fixtures. 2018-06-20 10:12:00 -07:00
Kieran Prasch 7891588fd0 Keep tests up-to-date; Create airdrop and deploy fixtures; Fix additional stray imports 2018-06-20 10:11:34 -07:00
Kieran Prasch 6e751f6775 Renames(mostly) NetworkyStuff to NetworkMiddleware. 2018-06-20 10:11:28 -07:00
Kieran Prasch 45bf82b033 Removes stale verify corectness params in character tests. 2018-06-19 15:35:36 -07:00
jMyles 8379b23a1f Stray import of Signature. 2018-06-02 19:54:08 -07:00
jMyles 57396ef1ca Fixing the setting of keys for cfrag correctness check, and explicitly passing a constant value so that these tests can be run in isolation. 2018-06-02 16:24:40 -07:00
K Prasch 05abf4dadf
Merge branch 'master' into actor-integration 2018-05-31 10:18:37 -07:00
jMyles 562ec6b95f Using expected_bytes_length for frags. 2018-05-28 10:46:48 -07:00
jMyles 65ade05855 We need a signer in a few places now - using Alice's stamp for that. 2018-05-28 10:34:29 -07:00
Kieran Prasch ae9917e779 Update actor and characters tests post-integration 2018-05-24 10:48:57 -07:00
Kieran Prasch 763c29eeac Merge Blockchain actors and Characters 2018-05-24 10:48:57 -07:00
Kieran Prasch 722cf9918f Nucypher and BlockchainConfig and it's tenticles; Related NucypherConstants and ContractInterface updates. 2018-05-24 10:48:57 -07:00
jMyles 3e76563c10 Using.get_size() for fragments. 2018-05-08 21:45:00 -07:00
jMyles 41805d5d06 Removing references to 'KMS' 2018-05-08 13:02:18 -07:00
jMyles f1b28a1c8e Variable length CFrag and CFrag validity checks in place. 2018-05-07 13:41:55 -07:00