Commit Graph

154 Commits (b921f7ba89477e2e0220d891256332bb0e22c26b)

Author SHA1 Message Date
jMyles d8a5a4a110 Verification logic by public address. Fixes #353. 2018-07-10 10:14:42 -07:00
jMyles bcc159367f Fixing up tests. 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
jMyles aab0e405a9 Cleaning up some uses of deprecated fixtures. 2018-07-02 20:44:09 -07:00
jMyles 90c0044394 There's really no point to specifying REST details - if you want to learn from a specific node, just make it your next teacher. 2018-07-02 20:44:09 -07:00
jMyles 590c4dbe75 Learning Loop eagerness now defaults to False, with a sanity check. Also, a skeleton of a test. See #311. 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 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 766acca7bf known_nodes is now private _known_nodes. 2018-06-22 20:18:06 -07:00
jMyles 0c7646fa94 Working known_nodes into fixtures and tests. 2018-06-20 10:13:26 -07:00
Kieran Prasch 4af2037bbf Decouple blockchain operations, expand Policy and Arrangement types. 2018-06-20 10:12:47 -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
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 ff17d1fedb Further integrate TokenActors and Characters with co-op scheme 2018-06-20 10:11:34 -07:00
Kieran Prasch 6e751f6775 Renames(mostly) NetworkyStuff to NetworkMiddleware. 2018-06-20 10:11:28 -07:00
jMyles 41805d5d06 Removing references to 'KMS' 2018-05-08 13:02:18 -07:00
K Prasch 7dcdf474f2
Merge branch 'master' into solc-pipeline 2018-04-23 00:02:08 -07:00
jMyles f4d43470d2 DelegatingPower now derives its Keypairs from a label. 2018-04-18 23:56:13 -07:00
jMyles 7890dcc2b2 Several touchups to Finnegan's Wake logic and the high-level APIs that power it. 2018-04-18 23:23:47 -07:00
jMyles 3f55470870 Tests for new Bob and TreasureMap logic. 2018-04-17 01:53:46 -07:00
jMyles 13ff2e642c Actors can now discover all known nodes from a given node. Fixes #175. 2018-04-17 01:52:30 -07:00
tuxxy 485d2a6f01 Start to update contract tests to pure web3 api; *borrowing* populus namespacs. 2018-04-15 16:05:12 -07:00
Kieran Prasch c9a7954e90 Consolidate test fixtures and utilities, optimize imports 2018-04-15 15:28:28 -07:00
Justin Holmes 0bae3d04df
Merge branch 'master' into master 2018-04-13 16:22:26 -07:00
jMyles 9cc25929c8 No more as_b64 for UmbralPublicKeys. 2018-04-12 19:18:42 -07:00
Kieran Prasch 6959516ba6 Consolidate test fixtures and utilities, optimize imports 2018-04-11 20:26:03 -07:00
Justin Holmes e27f174ad3
Merge branch 'master' into master 2018-04-10 19:30:06 -07:00
Kieran Prasch adfa29609e Manually merges inter-codebase tests, setup, pipfile, config classes, and sol source, respectively updates imports. 2018-04-10 17:03:21 -07:00
jMyles 5b46b9d17a Moves and fixes to support KMS logic with unified ETH codebase. 2018-04-10 00:34:18 -07:00
jMyles 6b3f9a797c This test just can't work for now. 2018-04-07 22:13:45 -07:00
tuxxy 95990bb839 Merge remote-tracking branch 'nucypher/master' into crypto-config 2018-04-05 17:59:23 -06:00
jMyles b3acaf50bc New verify_from() logic. Fixes #174.
Cleaning up and sanding kit and verify_from() logic.
2018-04-05 17:23:17 -06:00
jMyles 9c1e6c13cc cryptoKits is now its own project. 2018-04-05 17:23:17 -06:00
tuxxy 448e2d7223 Begin integration of KMS-Ethereum codebase into KMS 2018-04-05 17:21:23 -06:00
jMyles 11263663f3 Special value constants changed to constantSorrow; lengths adjusted. Also, new test for Signature comparison. 2018-04-05 10:23:28 -07:00
jMyles d3884518f2 Cleaning up and sanding kit and verify_from() logic. 2018-04-01 22:44:00 -07:00
tuxxy 06539daedd 'Contract' -> 'Arrangement' 2018-04-01 22:16:51 -06:00
jMyles f789aaf7f7 New verify_from() logic. Fixes #174. 2018-04-01 20:17:47 -07:00
jMyles 8d2bd2d77d cryptoKits is now its own project. 2018-04-01 18:50:53 -07:00
jMyles d35687907d Just use the keccak_digest function directly - this was never a good change really. 2018-02-28 17:37:27 -08:00
jMyles 139e767a2b All Characters need to know about Ursulas (and other information nodes if we ever run them). 2018-02-28 17:33:15 -08:00
jMyles 6fa7bd5823 Ursula's datastore now runs in a separate thread in all cases. 2018-02-28 17:32:19 -08:00
jMyles e1b4f242ab Tearing out all lookup_actor logic. Also, as @tuxxy pointed out a while ago, there's really no reason to have Character.hash(); we can just use keccak_digest. 2018-02-24 01:53:20 -08:00
jMyles 857a91855a We don't do lookup_actor anymore. 2018-02-24 01:45:50 -08:00
jMyles 872cef81a2 Smoothing out Powers; redlines through plenty of obselete functionality surrounding path keys in EncryptingPower. 2018-02-23 23:36:40 -08:00
jMyles f89d13c4a0 Seal -=> SignatureStamp 2018-02-23 22:39:10 -08:00
jMyles 1cdc0cad80 Some DHT cleanup. 2018-02-19 15:21:06 -08:00
jMyles dbac4ba586 Illegal keys are bytes, not str. 2018-02-18 17:34:38 -08:00
jMyles fd4accf3f5 Header lengths and types implemented in network. 2018-02-15 12:31:16 -08:00
jMyles 023d9705f0 Shortening headers to two bytes, and deprecating lstrip as a way to eat headers. See #111. Fixes #164. 2018-02-14 23:45:23 -08:00
jMyles 3b9ae94b5b Fixed those last two pesky tests - now that we're splitting with MessageKit, we don't need to split again. 2018-02-14 00:19:26 -08:00
jMyles 31dfbaa3e9 Moving over to MessageKit.to_bytes. 2018-02-14 00:18:31 -08:00
jMyles 84951c0a81 Grabbing contract from keystore in test. 2018-02-13 13:29:41 -07:00
jMyles 5b9f4a2a7a More MessageKit flow for tmap. Also, unwrapped an extraneous if. 2018-02-13 11:13:07 -08:00
jMyles 5415184d0b More questioning of actor lookup. 2018-02-13 11:11:26 -08:00
jMyles f420a02ad7 Removing tests that test things that no longer exist. 2018-02-07 10:52:38 -08:00
jMyles 032abed046 Cleaning up the rest of the tests to use the new models. 2017-12-14 21:21:51 -08:00
jMyles 20bac0393f Tests shifting from Policy to Contract. 2017-12-14 21:21:27 -08:00
jMyles ac10e6a3da Merge commit for various Policy and testing Work after PRs are merged. 2017-12-13 10:41:55 -08:00
jMyles 21c18ea5f8 Tests reflect publish_treasure_map living on PolicyGroup. 2017-12-13 10:33:34 -08:00
jMyles 699ec37f03 TreasureMap setting fixture implemented in a few tests. 2017-12-07 20:41:26 -08:00
jMyles fb5731fff4 Bob has a lot of logic surrounding his play with Frags - moving such tests to their own module. 2017-12-07 00:36:43 -08:00
jMyles 674197d30b Test for complete discovery and reencryption via REST. 2017-12-05 12:54:44 -08:00
jMyles 97a97c6b5c Bob Issues WorkOrders with pFrags, gets back cFrags. 2017-12-04 17:18:47 -08:00
jMyles a5e85576a7 Using PolicyGroup's encrypted_key instead of fake pfrags. 2017-12-04 17:17:28 -08:00
jMyles d90a2649e9 Can't represent pfrag as bytes; this is a blocker for now. See #137. 2017-12-04 17:17:28 -08:00
jMyles c4cbff3359 Tests that show Bob that Bob is able to issue a WorkOrder via REST. 2017-12-04 17:17:28 -08:00
jMyles 429743f1f4 Test that Bob can properly create a work order and send it over to Ursula. 2017-12-04 17:17:28 -08:00
jMyles 7a525b801e Move Alice REST test to proper module. 2017-12-04 17:17:28 -08:00
jMyles b1f9b72886 Session-wide fixture injection means we don't need to grab alice and bob from the PolicyGroup. 2017-12-04 17:17:28 -08:00
jMyles 167ee66aa0 Changing fixture 'fake_ursulas' to just 'ursulas'. 2017-11-21 22:06:52 -08:00
jMyles ceae904822 Tests with Bob getting the signature from Alice properly. 2017-11-21 22:03:31 -08:00
jMyles 0084b14a3d OK, fixtures are implemented in the tests that need them. 2017-11-21 20:22:16 -08:00
jMyles c44a46e416 Proper test fixtures. Phew! It was a brain-twister getting this right. 2017-11-21 20:19:31 -08:00
jMyles ae49b28249 Moving PolicyGroup creation to test fixture format. 2017-11-21 16:27:21 -08:00
jMyles 4ff94f385b Ursula can't just willy-nilly spin up an in-memory db anymore. 2017-11-21 12:04:33 -08:00
jMyles 8bd1e616d1 Showing that policy was transmitted via REST made it to Ursula's KeyStore. 2017-11-20 19:50:51 -08:00
jMyles 014d63805a Don't need this file for the moment; covered in other tests. 2017-11-20 19:24:25 -08:00
jMyles ac33d5eb4e Making sure that uri is unique for each execution. 2017-11-20 19:24:03 -08:00
jMyles 269063f1b1 Moving test Client logic over to test_utilities 2017-11-18 13:33:31 -08:00
jMyles 763bece3da Tests for Bob's invovlement in Policy. 2017-11-18 13:33:31 -08:00
jMyles 370757f8ee Testing set_kfrag - both tests fail for the moment. 2017-11-18 13:33:31 -08:00
jMyles 9a836e467e Beginnings of a test for Ursula to receive a kFrag. 2017-11-18 13:29:55 -08:00
jMyles 3409846983 Blanking this file; now that we do prop-stop we don't need this. 2017-11-18 13:29:55 -08:00
jMyles ad0eb40a4d PublicKey used for metadata instead of int literals throughout tests. Also some PEP8 cleanups and removal of type checks per #105. 2017-11-18 13:19:07 -08:00
jMyles ec8c225f7d Moved BytestringSplitter remainder logic to __call__; implemented throughout. 2017-11-11 18:00:32 -08:00
jMyles d23f10bfe7 Using HRAC and dht_value_splitter in tests. 2017-11-11 17:45:33 -08:00
jMyles e0f9995e4c Casting Signature to bytes for msgpack. Better to concat it in the future - see #114. 2017-11-10 16:29:28 -08:00
jMyles 49f99fc640 Added Bob's public key to secret part of TreasureMap DHT key. Also lots of sanding / code simplification. 2017-11-10 10:47:07 -08:00
jMyles b66eccb251 Working stop-propagation for both Ursula interfaces and TreasureMaps. 2017-11-10 02:04:01 -08:00
jMyles f88c182bd9 Test showing stop-propagation for illegal TreasureMap ID - see #109. 2017-11-09 16:23:38 -08:00
jMyles b312449895 Tests rewritten in narrative order with docstrings. 2017-11-09 16:23:38 -08:00
jMyles 6a5d0da4bf Test organization: moved utility functions to their own module. 2017-11-09 16:23:38 -08:00
jMyles 19aab328d0 Bob can now follow treasure map and get Ursula instances. 2017-11-07 14:25:03 -08:00
jMyles f704f93cbe KeyPairBasedPower to reuse logic for powers based on keypairs. 2017-11-07 12:51:30 -08:00
jMyles 10f3fc8e6c TreasureMap now contains real Ursula information. Fixes #59. Fixes #64. 2017-11-06 20:42:21 -08:00
jMyles 4c8d925b8a TreasureMap legitimacy test. 2017-11-06 18:11:03 -08:00
jMyles 2581c579e3 Fixes #98. 2017-11-06 13:44:59 -08:00