Commit Graph

242 Commits (57b4450d59f2dacccc5f4b994b5a417e7eda827a)

Author SHA1 Message Date
jMyles a5579f1af7 grant test 2017-12-09 17:21:43 -08:00
jMyles fd38b2421e Alice gets a PolicyManager at __init__. 2017-12-09 17:19:30 -08:00
jMyles c2a111c2b5 Tests showing that Bob doesn't repeat WorkOrders for CFrags he already has. 2017-12-07 20:41:48 -08:00
jMyles 699ec37f03 TreasureMap setting fixture implemented in a few tests. 2017-12-07 20:41:26 -08:00
jMyles fc66f43b3b Pushing TreasureMap setting down into a fixture. 2017-12-07 20:41:04 -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 647e0e4fd7 Bob can now lookup past work orders by PFrag since #137 is closed. 2017-12-07 00:36:35 -08:00
jMyles 4de6ff736a More mock network logic for testing. 2017-12-05 12:54:59 -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 df9f24e612 Mock network stuff to call reencrypt. 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 ff04578dc3 CFrag and tests. 2017-12-04 17:17:13 -08:00
jMyles 1de9a97628 Tests use PFrag. 2017-12-04 16:27:08 -08:00
jMyles 4fab47cac3 Proper dunders with tests for kfrag retrieval and deserialization. Fixes #138. 2017-12-04 15:23:40 -08:00
jMyles e6556f54f1 Test for KFrag class compatibility with BytestringSplitter. 2017-12-04 13:08:40 -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 c0639349c7 Changed method to 'enact_policy'. Move HRAC to URL instead of HTTPS payload. 2017-11-20 19:23:25 -08:00
jMyles 8be498629b Fixed length of test bytes for keystore. 2017-11-20 19:20:18 -08:00
jMyles 522c016f53 Moving REST App from test_utilities to Ursula. 2017-11-19 11:58:33 -08:00
jMyles 63a10aef67 Changing 'animate' to 'enact'. 2017-11-18 19:21:32 -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
tuxxy 9fb0aad603
Add test for test_keyfrag_sqlite 2017-11-11 18:35:39 -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 3901f13750 Test showing that trying to split too many bytes raises ValueError. 2017-11-11 13:55:51 -08:00
jMyles 1f28a671fa BytestringSplitter now works with arbitrary types. 2017-11-11 13:50:51 -08:00
jMyles 1ed6e6d30b Test showing BytestringSplitter taking arbitrary bytes. 2017-11-11 13:21:24 -08:00
jMyles 4f803ba2df BytestringSplitter for #114. 2017-11-11 01:10:29 -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