Commit Graph

1940 Commits (8f5f1bdc8a9b44f3da844edc322a3fa1a6d37a1c)

Author SHA1 Message Date
Kieran R. Prasch f858ede235 Setup optional bonding timeout and settable poll rate for Workers. 2020-02-23 19:20:17 -07:00
Kieran R. Prasch 728793b24a Monkeypatch registry source fetching in CLI reconfiguration tests. 2020-02-23 19:20:17 -07:00
tuxxy 0a0a083f62 Going a different direction, make block_until_bonded a staticmethod for Worker init 2020-02-23 19:20:17 -07:00
tuxxy 44739108c6 Add worker_is_bonded static method and include in worker tests 2020-02-23 19:20:17 -07:00
vzotova 0dd1f90c14 Apply suggestions from code review #1730
Co-Authored-By: Derek Pierre <derek.pierre@gmail.com>
Co-Authored-By: K Prasch <kieran@nucypher.com>
2020-02-22 11:38:31 +03:00
vzotova 7a25f2ca0d Fix #1726 2020-02-21 15:49:25 +03:00
Kieran R. Prasch bcbbec9016 Fixes missing bytes caster on CLI test. 2020-02-19 20:53:39 -07:00
Kieran R. Prasch 3f3386d360 Allow for forcible blockchain interface registration for tests. 2020-02-19 20:53:39 -07:00
jMyles 0a1d2a5282 Compatibility with changes to middleware and side channel fixture. 2020-02-16 18:42:09 -07:00
jMyles 18ce406bce Pushing arrangement query down to new agent methods. 2020-02-16 17:47:25 -07:00
jMyles dbcbc26cba Test showing that paying the wrong nodes results in Ursula noticing and refusing to service the Policy. 2020-02-16 16:33:15 -07:00
jMyles e7e26c5cc3 Moving freeriding attacks to their own module. 2020-02-16 12:29:10 -07:00
jMyles ed56c78d74 Test showing the 'safeguards removed' variant of trying not to pay. 2020-02-16 11:06:10 -07:00
jMyles 624242d791 Don't need capsule side channel here anymore. 2020-02-15 19:47:09 -07:00
jMyles cf07c3add6 Why wasn't blockchain side channel always compatible with the federated one? 2020-02-15 17:58:48 -07:00
jMyles f0d7781ef5 Fixing up sinpa test to use Amonia. 2020-02-15 17:57:58 -07:00
David Núñez 0faff6f45a Test demonstrating how Alice can do a "sinpa" (dine and dash)
Fake it till you make it

(This commit was modified by @jMyles to depict the attack in a separate test rather than modifying test_decentralized_grant in place.)
2020-02-14 12:26:39 -07:00
vzotova 9f13dc81d9 StakingEscrow: separate event for `prolongStake` 2020-02-13 23:16:08 +01:00
vzotova 030eda725f Apply suggestions from code review #1652
Co-Authored-By: Derek Pierre <derek.pierre@gmail.com>
2020-02-13 23:16:03 +01:00
vzotova ab0bad144e Small fixes for duration ranges in stake cli 2020-02-13 23:15:22 +01:00
vzotova b26f3993eb Fix for duration of sub-stake in case when winding down is disabled 2020-02-13 23:14:28 +01:00
vzotova 16757e32a2 Contracts: public -> external where possible 2020-02-13 23:14:28 +01:00
vzotova 546fc83b44 Rename _totalSupply to _totalSupplyOfTokens to prevent variables shadowing 2020-02-13 23:14:28 +01:00
Kieran R. Prasch 6f9e89d826 Cleanup grant lifecycle tests 2020-02-13 13:40:42 -07:00
Kieran Prasch 18be53f5a5 Tests backing up CLI inline config; worker IP envvar to support. 2020-02-13 13:40:42 -07:00
Kieran Prasch eb916afa52 Special handling of Alice grant CLI options; 2020-02-13 13:40:42 -07:00
David Núñez a91f0d26a2 Since we use agency_local_registry fixture now, remove registry mock in test_felix
Really closes #1346
2020-02-13 11:19:55 -07:00
David Núñez 4b161121c2 WorkLock deployment parameters for tests are hard-coded in token_economics fixture
TODO: do something better about it
2020-02-13 11:19:55 -07:00
David Núñez de0ced9518 Fix problems with bidder initialization in WorkLock CLI 2020-02-13 11:19:55 -07:00
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