Commit Graph

2729 Commits (0192a1d16fa66c248d3540be6e80c938371e2256)

Author SHA1 Message Date
tuxxy 0ddfa230de Refactor to use new RevocationKit 2018-11-19 16:44:38 -07:00
tuxxy 88054ecc8f Remove RevocationNotice and refactor RevocationKit to use a namedtuple for revocations 2018-11-19 16:44:38 -07:00
tuxxy 57db0e8639 Test alice_can_grant_and_revoke and add revoke_arrangement to MockRestMiddleware 2018-11-19 16:44:38 -07:00
tuxxy 8a55832bc7 Fill in revoke method on characters.lawful.Alice 2018-11-19 16:44:38 -07:00
tuxxy dfbbc2b9c0 Add revoke_arrangement to RestMiddleware 2018-11-19 16:44:38 -07:00
tuxxy 0a70345777 Add revoke_policy endpoint to network.server 2018-11-19 16:44:38 -07:00
Tux 27438d80cd
Merge pull request #565 from cygnusv/pinipon
Refactor node storages backend tests; Accomodate pytest>4
2018-11-19 16:42:26 -07:00
Kieran Prasch 704f41a744 Refactor node storages backend tests; Accomodate pytest>4 2018-11-19 23:53:44 +01:00
K Prasch 210168298c Merge pull request #564 from cygnusv/pinipon
Pin umbral==0.1.1a3 before new API-breaking release
2018-11-19 14:13:07 -08:00
David Núñez fe22af19fd Pin umbral==0.1.1a3 before new API-breaking release 2018-11-19 22:10:29 +01:00
Evalovelac3 f44f18a306
Merge pull request #556 from EvaLovlac3/openssl_err
capture openssl internal error for scyrpt
2018-11-19 09:25:00 -07:00
Kieran Prasch 844c2a4674 Refactor node storages backend tests; Accomodate pytest>4 2018-11-16 14:26:31 -08:00
jMyles 72c2b47222 Let's allow FleetStateTracker to be checked for addresses, not just VerifiableNodes. 2018-11-16 14:16:55 -08:00
jMyles fea6b6a258 Tests now reflect state changes. 2018-11-16 10:26:29 -08:00
jMyles 9f842473bb Putting new state metadata on template. 2018-11-16 10:26:29 -08:00
jMyles f25679523d Track states of teacher nodes. 2018-11-16 10:24:26 -08:00
jMyles 117c70eb26 FleetState is now FleetStateTracker; FleetState is a smaller idea communicated by a NamedTuple. We now track previous states. 2018-11-16 10:24:26 -08:00
jMyles 458b999ddd Moved away from treating known_nodes as a dict throughout. 2018-11-16 10:24:26 -08:00
jMyles fba0d2a99d Sometimes you just want the addresses in the fleet. 2018-11-16 10:24:26 -08:00
jMyles 7caee0dc91 Gonna need __len__ and __eq__ for state. 2018-11-16 10:24:26 -08:00
jMyles 71bbc2772c Nodes can directly iterate and introspect known_nodes now. 2018-11-16 10:24:26 -08:00
jMyles 7525cfa8a8 Filling out the dunders on FleetState. 2018-11-16 10:24:26 -08:00
jMyles 78aeee44c5 Actually, we can just go straight to learning from the teacher now. Fixes #557. 2018-11-16 10:24:26 -08:00
jMyles 852816e7ec Moved more logic into FleetState. 2018-11-16 10:24:26 -08:00
jMyles 9cc486d30a Touchups for status page. 2018-11-16 10:24:26 -08:00
jMyles 31f66cf071 Past fleet state as a param during learning; only learn if there's a difference. 2018-11-16 10:22:59 -08:00
jMyles 1635f00626 Providing snapshot as bytes, and splitter to reconcile it on the other end. 2018-11-16 10:22:59 -08:00
jMyles d03d5c6194 Grabbing snapshot from bytes representation and applying it to teacher. 2018-11-16 10:22:59 -08:00
jMyles ff1fc59a91 Adding snapshot to FleetStatus; we'll use this to get each node's view of the network. 2018-11-16 10:22:59 -08:00
jMyles 61633cf472 Using plain symbols so that they adopt proper color. 2018-11-16 10:22:59 -08:00
evalovelac3 d4275ea480 Merge branch 'openssl_err' of github.com:evalovlac3/nucypher into openssl_err 2018-11-14 11:36:40 -07:00
evalovelac3 2fc027fa9c replace RuntimeError with MemoryError 2018-11-14 11:34:36 -07:00
K Prasch 3fec404dff
Update nucypher/config/keyring.py
Co-Authored-By: EvaLovlac3 <evelyn.evergreene@protonmail.com>
2018-11-14 09:52:45 -07:00
Kieran Prasch fd084de0e6 Twisted log observer utilities; TextFile, Json, Sentry. 2018-11-14 17:42:16 +01:00
Kieran Prasch d65f1b0d36 clean up constant sorrow usage in CLI config 2018-11-14 17:42:16 +01:00
Kieran Prasch e8aa9c5f9a --debug ursula flag controls logging observers 2018-11-14 17:42:15 +01:00
Kieran Prasch db1e3b3573 Log outfile determined by appdirs, autocreated and removed via CLI. 2018-11-14 17:40:58 +01:00
Kieran Prasch 996c23ad5d global text file log publisher in CLI config 2018-11-14 17:40:56 +01:00
K Prasch a2d299fe6d
Merge pull request #550 from cygnusv/touch-ups
Touch-ups to CLI and status page
2018-11-14 06:50:41 -08:00
David Núñez 1e6a33c265 To end CLI, raise click.Abort() instead of return 2018-11-14 10:16:59 +01:00
David Núñez f265de61c3 Bob needs at least m cfrags, not more than that. 2018-11-13 12:05:51 +01:00
evalovelac3 7ef6c23323 capture openssl internal error for scyrpt 2018-11-12 15:45:09 -07:00
David Núñez f42c90090f Correct payload type hint in storages.py 2018-11-12 13:42:59 +01:00
David Núñez 9dbe7a7e31 Avoid text rewrapping in CLI
See http://click.palletsprojects.com/en/7.x/documentation/#preventing-rewrapping
2018-11-12 12:12:49 +01:00
David Núñez 29d84a76a2 Help text in CLI for actions of nucypher configure and nucypher stake 2018-11-12 12:12:49 +01:00
David Núñez b768f0c348 Do nothing with nucypher stake and nucypher account if no account is found 2018-11-12 12:12:49 +01:00
David Núñez fca75da7ef Touch-ups to the status page 2018-11-12 12:12:45 +01:00
K Prasch 25cd44596e
Merge pull request #547 from jMyles/learning-loop
Lots of little updates to status page, console output, and learning
2018-11-11 12:14:56 -08:00
jMyles 11f9a5d035 If at first you don't succeed (to connect to the Teacher node), try try again (and catch the appropriate errors). 2018-11-11 09:24:44 -08:00
jMyles 17d0a245da Small fixes for tests to match FleetState updating logic. 2018-11-11 06:25:53 -08:00