Commit Graph

914 Commits (b7ea72b919613190c0ea57945124814d32356014)

Author SHA1 Message Date
jMyles c1edd537b2 Tests for decentralized metadata verification. #573 2018-12-06 18:04:11 -05:00
jMyles 2365f2b2d1 Don't save any previously saved states, even if the 'new' one is not the current one. 2018-12-06 18:04:11 -05:00
jMyles 854524c7ef Default LogLevel for tests is now 'info' 2018-12-06 18:04:11 -05:00
jMyles 9be9ac7370 Record node snapshots only at the end of a learning round, not every time a node is remembered. 2018-12-06 18:04:11 -05:00
Kieran Prasch 164d499884
Consolidate contract tests; further simplify job names. 2018-12-05 18:26:38 -08:00
Kieran Prasch 1c45b7b9d7
Update ursula web status template; Template Rendering Exception handling; Add simple template rending test. 2018-12-05 16:17:03 -08:00
Kieran Prasch 1c86a07a13
Integrate FleetState into NodeConfiguration; checksum_address -> checksum_public_address 2018-12-05 16:17:03 -08:00
Kieran Prasch 0afe4cc14a
Mock default installation to ensure rest_host it correctly set; Includes pytest-mock Pipfile update. 2018-12-05 16:17:03 -08:00
Kieran Prasch 3ea8c8269f
Extract cli fixtures: Test CLI help and status. Bug fixes to match. Optioal config_file envvar. 2018-12-05 16:17:03 -08:00
Kieran Prasch 0811666133
nucypher cli status automated test 2018-12-05 16:17:03 -08:00
Kieran Prasch 22f3921f38
Dedicated cli help test module 2018-12-05 16:17:03 -08:00
Kieran Prasch 0705e2f424
Disband cli.constants; Logging bug fixes. 2018-12-05 16:17:03 -08:00
Kieran Prasch 0192a1d16f
Tests and bug fixes for password collection via CLI 2018-12-05 16:17:03 -08:00
Kieran Prasch b2669b8edf
Extrapolate more testing steps for CI workflows; Skip publication steps (preversion). 2018-12-05 16:16:59 -08:00
Kieran Prasch 3806fe68f7
Integrated test entry point configuration and executable 2018-12-05 16:07:30 -08:00
Kieran Prasch 3a840171b7
Through checking of config file existing; Mock line recv. transport. 2018-12-05 16:07:30 -08:00
Kieran Prasch b0170f1124
Add ursula command test job, remove 'unit' language from CI config 2018-12-05 16:04:32 -08:00
Kieran Prasch 8b2a33b48f
Basic tests for UrsulaCommandProtocol 2018-12-05 15:59:52 -08:00
Kieran Prasch a866e4232e
Use sqlite :memory: db for dev configurations, as a fallback, and for tests. 2018-12-05 15:59:52 -08:00
Kieran Prasch ed23e08df1
Update tests to use thinned keyring and configuration API 2018-12-05 15:59:50 -08:00
Kieran Prasch 6ab8f4862f
bite-sized end-user CLI testing for Ursula CLI operations 2018-12-05 15:59:19 -08:00
Kieran Prasch b57d8cf88b
Deprecate accounts CLI tests 2018-12-05 15:58:20 -08:00
Kieran Prasch 305eadc8d8
Updates tests with NodeStorage internal API usage; passphrase -> password 2018-12-05 15:58:20 -08:00
Kieran Prasch 14d5189787
First bout of testing for new Ursula CLI API 2018-12-05 15:58:20 -08:00
Kieran Prasch 1380fef5ea
Remove CLI config tests 2018-12-05 15:58:20 -08:00
Kieran Prasch 9bd96cb64a
tiny touch ups 2018-12-05 15:58:20 -08:00
Kieran Prasch d0e023ba03
Fixes nucypher-deploy entry point 2018-12-05 15:58:20 -08:00
Kieran Prasch 1f820e0659
Prepare test for cli namespace change and formal cli module 2018-12-05 15:58:20 -08:00
Kieran Prasch 6070409045
Disable file logging during tests 2018-12-05 15:57:21 -08:00
Kieran Prasch 03428ab412
relocate CLI script and remap entrypoint 2018-12-05 15:57:21 -08:00
jMyles 1a9a9cb83e
Don't save any previously saved states, even if the 'new' one is not the current one. 2018-12-05 15:57:21 -08:00
jMyles b314345c36
Default LogLevel for tests is now 'info' 2018-12-05 15:57:21 -08:00
jMyles cb202ff371
Record node snapshots only at the end of a learning round, not every time a node is remembered. 2018-12-05 15:57:21 -08:00
K Prasch 892f926e6e
Merge pull request #584 from cygnusv/alice-decrypts
Alice can decrypt data encrypted for her policies
2018-12-03 15:29:20 -08:00
David Núñez 6de99512eb
Merge pull request #521 from tuxxy/fourth-annual-updated-revoke
Implement Revoke
2018-12-03 23:23:53 +01:00
David Núñez 4ab7ad1252 DataSource.encapsulate_single_message() --> DataSource.encrypt_message() 2018-12-03 12:07:33 +01:00
David Núñez bb0de18dac Some type hints here and there 2018-12-03 12:07:28 +01:00
tuxxy 398d854f7f Add revocation integration test (thanks @cyngusv) to test_bob_joins_policy_and_retreives 2018-11-30 13:18:13 -07:00
David Núñez bad8d9062b Delegator's verifying key should already be as correctness key in the capsule 2018-11-29 16:14:34 +01:00
David Núñez 92ce6321fa Test Alice can decrypt . It fails. (yikes!) 2018-11-29 16:14:18 +01:00
tuxxy da7ca8d13e Move Revocation to its own class 2018-11-21 12:07:13 -07:00
tuxxy db96bb13c0 Return a tuple of (Revocaton, None) when revoke_arrangement returns 404 2018-11-19 16:44:38 -07:00
tuxxy a12c9b1134 Use DELETE method for RESTful call to revoke_arrangement 2018-11-19 16:44:38 -07:00
tuxxy c130df05f3 Add test_revocation 2018-11-19 16:44:38 -07:00
tuxxy 0ddfa230de Refactor to use new RevocationKit 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
Kieran Prasch 704f41a744 Refactor node storages backend tests; Accomodate pytest>4 2018-11-19 23:53:44 +01:00
Kieran Prasch 844c2a4674 Refactor node storages backend tests; Accomodate pytest>4 2018-11-16 14:26:31 -08:00
jMyles fea6b6a258 Tests now reflect state changes. 2018-11-16 10:26:29 -08:00
jMyles 458b999ddd Moved away from treating known_nodes as a dict throughout. 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 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 17d0a245da Small fixes for tests to match FleetState updating logic. 2018-11-11 06:25:53 -08:00
jMyles e9804e2fb0 Tests specifically for learning. 2018-11-10 20:55:26 -08:00
jMyles 6bdfd1e3cd Once Ursula is fully loaded, then we'll update FleetState. 2018-11-10 20:52:36 -08:00
Kieran Prasch 6de086b2a9
skip leaky string validator 2018-11-10 12:47:30 -08:00
K Prasch 7b6a65f37b
Merge pull request #531 from cygnusv/keyring
Persistent DelegatingPower
2018-11-10 12:17:45 -08:00
Kieran Prasch 2f1e6eec20
Test database teardown logic 2018-11-09 09:30:15 -08:00
Kieran Prasch c45e534823
Understand nucypher CLI to be a module 2018-11-09 09:29:49 -08:00
Kieran Prasch 21f8c4fb8a
Make federated-only the CLI default 2018-11-09 08:53:36 -08:00
Kieran Prasch 1444650230
Include pytest fixtures via plugin injection method. 2018-11-09 07:49:31 -08:00
Kieran Prasch 19350c524d
Understand cli.py to be a script 2018-11-09 07:49:31 -08:00
Kieran Prasch d316796aff
Use conventional top-level package structures 2018-11-09 07:43:31 -08:00
David Núñez 3773acd432 Generalize Alice's DelegationPower test to other powers 2018-11-08 12:50:13 +01:00
David Núñez 15269d5d0e Initial testing of Keyring 2018-11-08 12:50:13 +01:00
David Núñez 608d468b26 Testing persistence of Alice's DelegatingPower 2018-11-08 12:07:12 +01:00
David Núñez b64ad0de46 Base64 encoding of serialized public keys in Keypairs 2018-11-08 12:06:50 +01:00
David Núñez a2c6618b41 Janitorial stuff 2018-11-08 12:06:35 +01:00
Kieran Prasch ce5ed3dc76 Further reduce sentry scope. Thin CLI API; Pretty Loggers; Cleanup cruft 2018-11-06 23:17:46 +01:00
Kieran Prasch 0fefd7d64e Tasty breadcrumbs; Cleanup stale logging methods, make pretty. 2018-11-06 23:17:46 +01:00
jMyles ef0ccff29b Sentry logging in CLI only. 2018-11-06 23:17:46 +01:00
Kieran Prasch 7124364415 Skip S3 Storages Tests - Bump Solc version. Organize Pipfile. 2018-11-06 16:30:35 +01:00
K Prasch 6bf1a2d90f
Merge pull request #516 from tuxxy/naughty-sentry
Don't report to Sentry if pytest is running
2018-11-06 16:27:36 +01:00
K Prasch ae8c087cd4
Merge branch 'cedar' into install-communism 2018-11-06 16:23:52 +01:00
tuxxy 98f7d3e213 Remove Sentry logging if pytest is running 2018-11-05 06:15:38 -07:00
Tux 883ad1dda1 Merge branch 'cedar' into install-communism 2018-11-05 06:09:49 -07:00
K Prasch e987b0badd
Merge pull request #496 from KPrasch/deployment
Federated Deployment Automation
2018-11-05 11:57:09 +01:00
tuxxy 7feabb6cb2 Add GPLv3 -- nucypher is free as in freedom 2018-11-04 13:16:42 -07:00
jMyles dbd96f3689 Stopping learning at end of tests; using Twisted logs for tests. 2018-11-03 22:48:11 +01:00
David Núñez f878e5d910 Clarification of some tests for Bob 2018-11-02 21:03:36 +01:00
David Núñez 69515ff97a Fix missing steps for test federated Bob.retrieves() 2018-10-29 12:40:34 +01:00
David Núñez 812a2b0c91 Test for Bob.join_policy() in a separate test module. Fixes #233 2018-10-29 12:10:00 +01:00
David Núñez 310e2f3a55 Move certificates_temdir fixture to fixtures module 2018-10-29 01:52:01 +01:00
David Núñez 7f6b791d0d Umbral release already has KFrag.__repr___ 2018-10-29 01:52:01 +01:00
David Núñez e13ef06787 Some pending renamings (uri -> label, signing_key -> verifying_key) 2018-10-29 01:51:56 +01:00
David Núñez 1819f9b1af Fixture for Data source must include the label 2018-10-28 20:08:59 +01:00
David Núñez dddd76e023 High-level test of Bob.retrieves() 2018-10-28 20:05:19 +01:00
David Núñez ef21977cb6 Update tests/characters/test_bob_handles_frags.py
Co-Authored-By: jMyles <justin@justinholmes.com>
2018-10-27 23:27:35 +02:00
jMyles 59ff623949 Ursulas signs CFrags. Fixes #141. 2018-10-27 23:27:35 +02:00
jMyles 6ee0c606f5 Fixing test race condition. 2018-10-27 23:26:33 +02:00
jMyles b1aef7fdb3 Changing remaining 'bootnode' references to 'seednode'. 2018-10-27 22:36:02 +02:00
jMyles a71784a8c6 A real test showing the seed node giving its cert via hendrix. 2018-10-27 22:36:02 +02:00
jMyles 2eb27f3f68 Better test for node storage in learning loop. 2018-10-27 22:36:02 +02:00
jMyles 0ba7db7970 node storage commented out, lots of slow tests skipped, but things pass now. 2018-10-27 22:20:05 +02:00
jMyles eae0e12ed5 Initial test for firstula situation. 2018-10-27 22:20:05 +02:00
jMyles 34f6c73b2e Seed nodes can now be passed separately to bootstrap learning loop. 2018-10-27 22:20:05 +02:00
Justin Holmes 4e3054a020
Merge pull request #484 from KPrasch/user-escrow
`UserEscrow` Agent & Deployer; Entity layer testing
2018-10-27 22:14:05 +02:00
Kieran R. Prasch eec736d340 Deprecate arming in favor of readiness checks; Generate a default DB name for Ursulas. 2018-10-27 21:51:32 +02:00
Kieran R. Prasch dafb181513 Tests UserEscrow Agency 2018-10-27 21:51:32 +02:00
Kieran R. Prasch 46c0e96d81 Seed node discovery contract and tests 2018-10-27 21:51:32 +02:00