Commit Graph

372 Commits (0bb8d74636d07026c3e313c6f48e5fa47091835f)

Author SHA1 Message Date
Michael Egorov c920cf44a5 Test treasure_map in character control 2020-02-08 04:27:34 -08:00
Michael Egorov c70e8e2216 Bob.retrieve() accepting an optional treasure map works 2020-02-08 04:27:34 -08:00
Michael Egorov f5c85e9c72 Test if Bob can decrypt with the treasure map (he can't yet) 2020-02-08 04:27:34 -08:00
jMyles fe840cfd13 Test showing multiple messages from multiple Enricos in a single Adventure. 2020-02-08 04:27:34 -08:00
jMyles 04a96b54a2 Test showing failure of multiple-Capsule retrieval - see #1359. 2020-02-08 04:27:34 -08:00
jMyles ce86d7dd0f capsule_side_channel() doesn't return the Enrico anymore; it's composed. 2020-02-08 01:18:51 -08:00
jMyles bd49d39696 blockchain bob using new retrieve API. 2020-02-08 01:18:51 -08:00
jMyles 067369ed45 Various bugfixes and other accounting for changes since the cherry-picks below. 2020-02-08 01:18:51 -08:00
jMyles 70952329c3 Unpacking message kits into retrieve(). 2020-02-08 01:18:51 -08:00
jMyles 24ab7a6e4f Test showing multiple-Enrico retrieve. 2020-02-08 01:18:51 -08:00
jMyles 5f0c7ce5ef Several test fixes, most notable including that, in the capsule_side_channel fixture, we now keep the same enrico until it is reset(). 2020-02-08 01:18:51 -08:00
jMyles da2d2a0be1 Showing multiple retrievals in network without retaining CFrags. 2020-02-08 01:18:50 -08:00
jMyles 3b9cb9212a Better WorkOrder repr; updating tests to be more precise for replete WorkOrders. 2020-02-08 01:18:50 -08:00
jMyles 9acac0cb0d Saving replete WorkOrders where appropriate. 2020-02-08 01:18:50 -08:00
jMyles c4937b78bf Introducing designation of a WorkOrder that is 'replete' with CFrags for each PRETask. 2020-02-08 01:18:50 -08:00
jMyles 74fa1803ab Fixing up retrieve() params, adding type hints. 2020-02-08 01:18:50 -08:00
jMyles 404446b7ac Removing the 'cache' conceptr from work_orders_for_capsule. 2020-02-08 01:18:50 -08:00
jMyles 305fffdbf6 Single-track for incomplete WorkOrders. 2020-02-08 01:18:50 -08:00
jMyles 1957507a09 Not saving pending WorkOrders anymore; only completed. 2020-02-08 01:18:50 -08:00
jMyles c74f465e8d Always include completed WorkOrders. (Though we'll remove this entirely soon.) 2020-02-08 01:18:50 -08:00
jMyles f507952a14 Starting to separately store WorkOrders on Bob. 2020-02-08 01:18:50 -08:00
jMyles 55f96bdc38 Splitting the argument previously called 'cache' into three more coherent and granular parameters. 2020-02-08 01:18:50 -08:00
jMyles 677c8ddcfb When generating WorkOrder, if CFrags are being retained, return two tuples of WorkOrders - one complete, the other incomplete. Also some refactoring. 2020-02-08 01:18:50 -08:00
jMyles 577dc0fe0a Test showing complete flow of both Bob modes. 2020-02-08 01:18:50 -08:00
jMyles 7aab0c64c6 Test showing that Bob can't partially retrieve and then resume without caching. 2020-02-08 01:18:49 -08:00
jMyles 9aaf696fb5 Bob retrieves again! 2020-02-08 01:18:49 -08:00
jMyles adba29ec1b Affirmatively setting reuse_already_attached to False to show that this works the first time. 2020-02-08 01:18:49 -08:00
jMyles 630dec68c0 A test for Bob using a CFrag attached to a previously completed WorkOrder. 2020-02-08 01:18:49 -08:00
jMyles 78bad1cad1 Fixing up frag handling tests for new API. 2020-02-08 01:18:49 -08:00
jMyles a0b5ea7393 Testing show successful second retrieval. 2020-02-08 01:18:49 -08:00
jMyles 83e44a63f2 Not necessarily generating new WorkOrders anymore; maybe looking them up. And they aren't necessarily 'generated' anymore; they're instead just known to be useful. 2020-02-08 01:18:49 -08:00
jMyles 0cb4f71709 Beginnings of a test; clearer logs. 2020-02-08 01:18:49 -08:00
damon d656142974 field validation, tests, squashed 2020-02-06 03:23:19 -08:00
damon 75a84ffad9 remove specifications mappings
remove specifications references
remove bad idea
2020-02-06 03:22:06 -08:00
damon 44ce4b475f move nucypher command decorator to CharacterPublicInterface
fix rpc_control_blockchain test
2020-02-06 03:21:59 -08:00
Kieran R. Prasch 71a7fc7a1c Passing RPCController tests 2020-02-06 03:21:59 -08:00
Kieran R. Prasch 763e295299 Deprecates character control decorator in favor of new command specification API (successful policy creation by RPC controller) 2020-02-06 03:21:59 -08:00
Kieran R. Prasch d34e6df0b6 Aiming to unify command specifications, controllers, validations, serilaizers with schema modeling (Needs adiitional follow up). 2020-02-06 03:21:59 -08:00
damon c9f0d6c540 fix failing test on invalid rpc input
handle TypeError in invalid RPC input
2020-02-06 03:20:50 -08:00
damon 865b547ce3 more detailed validation test 2020-02-05 11:21:33 -08:00
damon e5688bdb42 update specification validation test with new exception 2020-02-05 11:21:33 -08:00
damon e26bb7a6cf all alice control refactored, tests working 2020-02-05 11:21:33 -08:00
damon 52551da5da initial specifications refactor commit 2020-02-05 11:21:33 -08:00
Kieran R. Prasch 6081e2f2f7 Include basic html and json rendering tests. 2020-01-31 20:09:21 -08:00
David Núñez 3da6bdf087 Don't set globally a default domain in tests
Otherwise, tests are not modeling real behavior, where we don't have a default.
2020-01-19 19:58:38 +01:00
vzotova 4c983fc045 Update character layer for new start/end policy time 2020-01-10 13:14:00 +03:00
jMyles 264b18e232 The end of automatic mixed operating mode. Removes and cleans up lots of federated_only kwargs. Closes #410. 2020-01-08 16:43:39 -08:00
Kieran R. Prasch eba53f3206 Prepare datastore models for storing WorkOrders 2019-12-11 17:14:40 -08:00
David Núñez fe11752e58 Introduce mock_transacting_power_activation fixture 2019-12-11 13:27:08 +01:00
David Núñez 72fca457c9 test_blockchain_ursulas_reencrypt now works for N=10. Also test for down nodes. 2019-10-21 01:56:35 +02:00