Commit Graph

1911 Commits (232a171506b05b37fe88ca4c10e9832ae8d4bb38)

Author SHA1 Message Date
David Núñez f5816de34b
Merge pull request #1672 from vzotova/fix-1671
Fixes bug in PolicyManager #1671
2020-02-13 14:08:04 +00:00
vzotova 9aa49f57f0 Ignoring broken state in `PolicyManager.rewardState` with possibility to fix it later 2020-02-11 21:48:16 +03:00
vzotova b7098590e6 Reproduce scenario from #1671 2020-02-11 19:15:12 +03:00
vzotova c17653b535 Restrict checks in `PolicyManager.register()` and `PolicyManager.createPolicy()` to prevent inconsistent state 2020-02-11 17:17:35 +03:00
damon c d389e075e3
Merge pull request #1330 from nucypher/birdcage
[EPIC] Birdcage: A PR for people who want to pretend to like Bob.
2020-02-10 15:34:46 -08:00
jMyles 90a3c26298 Finishing the layup for which @michwill set me up vis a vis TreasureMaps being passed through Bob's controller. 2020-02-10 13:09:15 -08:00
jMyles 4f8e266bf6 Use live message kit in spec test for forward compatibility. 2020-02-10 13:09:15 -08:00
jMyles f164382164 Use live TreasureMap in spec test for forward compatibility. 2020-02-10 13:09:15 -08:00
jMyles 40f329db1b Now that we're resetting the side channel in a fixture, each tests starts with the first message. 2020-02-10 13:09:15 -08:00
jMyles 6b6e07ec46 An empty or intentionally misleading TreasureMap warrants a more severe Exception than NotEnoughUrsulas: introducing TreasureMap.IsDisorienting 2020-02-10 13:09:15 -08:00
jMyles fb2f03e307 Resetting side channel bewteen fixture runs so that message is unchanged. 2020-02-10 13:09:15 -08:00
jMyles 76e83cda50 Reducing scope of fixture. See: https://ptb.discordapp.com/channels/411401661714792449/411401661714792451/667904759956504577 2020-02-10 13:09:15 -08:00
jMyles 6490af67c8 Touch-ups around failing tests. 2020-02-10 13:09:15 -08:00
jMyles 3ce055561d Test compatibility for unpacking message kits. 2020-02-10 13:09:15 -08:00
tuxxy 96aab3701f Add JSON serialization methods to 'PolicyCredential' 2020-02-10 13:09:15 -08:00
tuxxy 32a95ffd71 Add 'credential' method on 'Policy' w/ consistency tests 2020-02-10 13:09:15 -08:00
Michael Egorov 16ad56c934 Fix merge conflicts 2020-02-08 04:27:34 -08:00
Michael Egorov 99681680d6 Check text returned by federated_bob.retrieve 2020-02-08 04:27:34 -08:00
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 f87eb322f9 Pausing console logging instead of stopping and starting. 2020-02-08 04:27:34 -08:00
jMyles e73e1e5765 Temporarily ceasing console logging right before click invocation. 2020-02-08 04:27:34 -08:00
jMyles bd679888d9 Adding logging around consecutive retrieval test. 2020-02-08 04:27:34 -08:00
jMyles 7a115f65f0 Logging statements around Bob patching. 2020-02-08 04:27:34 -08:00
jMyles 1e33857dd5 Battle of the mocks: another finally block. 2020-02-08 04:27:34 -08:00
jMyles 7ac8374c07 Passing ciphertext(s) as positional. 2020-02-08 04:27:34 -08:00
jMyles 0cdcc523b7 Re-patching LocalContractRegistry.read in a finally block. Fixes #1346. 2020-02-08 04:27:31 -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 c3ea0377e0 Have Bob retrieve again, just to be absolutely clear that it now works back-to-back by default. 2020-02-08 01:18:51 -08:00
jMyles 6c73075867 I don't like the sound of that. 2020-02-08 01:18:51 -08:00
jMyles 1a34a2a60a New Bob CLI test to show retrieve(). 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 dc202da06e Include enrico instance when resetting capsule_side_channel for test convenience. 2020-02-08 01:18:51 -08:00
jMyles 447b9b6e5c We don't need the temporary download_registry fix anymore. 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