Commit Graph

269 Commits (0fc1e7cebb174494f6be2206f2f21c9f2f62ccc6)

Author SHA1 Message Date
jMyles 0fc1e7cebb Not uding nkms.db anymore. 2018-02-09 13:05:00 -08:00
jMyles 12dc83f5b6 Creating KFrag for test in canonical way. 2018-02-07 16:30:03 -08:00
jMyles 650b38d2c1 Setting default curve for tests. 2018-02-07 16:29:53 -08:00
jMyles 50aca7d66f Reflecting new location for fragments. 2018-02-07 16:22:28 -08:00
jMyles f420a02ad7 Removing tests that test things that no longer exist. 2018-02-07 10:52:38 -08:00
jMyles 6d2c9e3d7b Reflecting deprecated crypto modules. 2018-02-07 02:16:45 -08:00
jMyles 0d964ca080 Removing various imports of the ole' fragments module. 2018-02-07 02:16:44 -08:00
jMyles c6d050aca7 Making explicit which address and port are for Ursula's DHT interface. 2018-02-06 17:16:21 -08:00
jMyles cc80a065e0 Character.from_public_keys now takes a list of tuples. 2018-02-06 17:15:53 -08:00
jMyles 12f7990a09 Alice script properly sends a Contract and then, subsequently, sends a KFrag. 2018-02-06 03:08:23 -08:00
jMyles 1ff8d51515 Better doctstring for Policy. And something something agreement. 2018-02-05 23:40:21 -08:00
jMyles 2a27661765 Test showing that Alice can get an Ursula's public keys via REST and create an Ursula object from them. 2018-02-05 23:30:07 -08:00
jMyles 3db71115f6 Characters can now be created from either a signing or encryption key. Fixes #156. 2018-02-05 11:25:17 -08:00
jMyles a393d42e8e Removing the rest of PolicyManager; changed PolicyOfferResponse to ContractResponse. 2017-12-15 21:50:51 -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 e486d5a2b1 Cleaned up fixtures and reduced their scope to "module." 2017-12-14 21:21:09 -08:00
jMyles 9cf06c58e5 New names for things! 2017-12-14 21:20:49 -08:00
jMyles 7dec865094 Updating some fixture names to remove PolicyGroup. 2017-12-14 20:36:52 -08:00
jMyles d372010e0c Cleaned up assertions to comport with new models. 2017-12-14 20:36:35 -08:00
jMyles 791312c9d4 Method for finding Ursulas needs a rewrite (and, of course, later, to have the blockchain component plugged in). 2017-12-14 16:53:54 -08:00
jMyles 1c677efb6a Moving the rest of the enact logic to Policy. 2017-12-14 12:15:36 -08:00
jMyles f68bd91510 Policy ID is immaterial now. Closes #38 wontfix. 2017-12-14 11:40:46 -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 e891653fde With PolicyGroup logic simplified for Bob, we can reduce the scope of several fixtures. 2017-12-13 10:33:01 -08:00
jMyles 3a1bab4b1d Fixed up tests to use hrac instead of PolicyGroup. 2017-12-11 17:03:47 -08:00
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