Commit Graph

3514 Commits (7befe20cf372a85d5db2495337f64d966bc1d7a2)

Author SHA1 Message Date
Kieran Prasch e55bafe6db all tests passing 2023-05-02 10:23:24 -07:00
derekpierre 2b492ffd20 Add pytest options for ape_test to run successfully. Update testpath values. 2023-05-02 10:23:24 -07:00
Kieran Prasch a6d5335449 Reorganizes tests betweeen acceptance/integration. Ape project is now /tests/acceptnace. 2023-05-02 10:23:24 -07:00
Kieran Prasch cfba9be307 simple in-memory test regitry for unit tests, mock out middleware for mock clients. 2023-05-02 10:23:24 -07:00
Kieran Prasch dc51407c0f relocates ursulas fixture (is uses transparently in different scopes) 2023-05-02 10:23:24 -07:00
Kieran Prasch c85f1f2f59 assorted bugfixes related to fixtures and testerchain arising from the migration to ape. 2023-05-02 10:23:24 -07:00
Kieran Prasch 6617e08527 disable ape test plugin during unit and integration tests. 2023-05-02 10:23:24 -07:00
Kieran Prasch 93e45bc612 get ape contract ABIs from an in-memory vs. on-disk source. 2023-05-02 10:23:24 -07:00
Kieran Prasch 39929d0aa3 relocates ape fixtures to local conftest 2023-05-02 10:23:24 -07:00
derekpierre d42b445d63 Fix use of ape project fixture. 2023-05-02 10:23:24 -07:00
Kieran Prasch df86485efa removes several unused pytest fixtures 2023-05-02 10:23:24 -07:00
Kieran Prasch 21fa6edc7b new ape testing utils module 2023-05-02 10:23:24 -07:00
derekpierre 67a7bb7da6 Code testing cleanup. 2023-05-02 10:23:24 -07:00
derekpierre c157c8ccf7 Fix some tests; ERC721 contract needs to be deployed on APE, and MockContractAgency import is now inlined. 2023-05-02 10:23:24 -07:00
derekpierre e0286d13c5 Get `nucypher-contracts` dependency from github by default. 2023-05-02 10:23:24 -07:00
Kieran Prasch a19c50ec69 ape checkpoint 1 2023-05-02 10:23:24 -07:00
derekpierre ba766100b0 bugfix: sync coordinator mocks, use StartRitual event instead of StartTranscriptRound for signalling posting of transcripts. 2023-05-02 10:23:24 -07:00
derekpierre a4798e3a6a bugfixes: ensure poiive start block number, MockCoordinatorAgent to be in line with latest logic in Coordinator contract. 2023-05-02 10:23:24 -07:00
Kieran Prasch 25d4efd870 improves logging and error handling during tdec req/res. 2023-05-02 10:23:24 -07:00
Kieran Prasch 4a9c59a055 bugfixes: pertaining to tdec request/response cycle 2023-05-02 10:23:24 -07:00
Kieran Prasch 19229ab08c exposes ferveo keypair derivation from secre randomness on the ritual power 2023-05-02 10:23:24 -07:00
Kieran Prasch 08be039e42 start the event scanner from a block estimation based on on-chain ritual timeout 2023-05-02 10:23:24 -07:00
derekpierre 3b990e38b4 Make DKG failing tests pass. 2023-05-02 10:23:24 -07:00
derekpierre a3f039e13c Nodes post the dkg public key when posting their aggregated transcripts. 2023-05-02 10:23:24 -07:00
Kieran Prasch e20cc7f96f public exposure of per-request ferveo variant, ferveo==0.1.7 and nucypher-core integration of ThresholdDecryptionRequest and Response 2023-05-02 10:23:24 -07:00
derekpierre b4673ac39f Got some dkg unit and integration tests passing. There are more tests to make pass. 2023-05-02 10:23:24 -07:00
Kieran Prasch c654e45367 updates for web3.py 6+ 2023-05-02 10:23:24 -07:00
Kieran Prasch 35baaad87c fervero/node integration test with mocked blockchain 2023-05-02 10:23:00 -07:00
Kieran Prasch 7cc1e476e3 cleanup ritual acceptance test 2023-05-02 10:23:00 -07:00
Kieran Prasch 536728dc05 Improves ritual acceptance test with fully integratd Enrico/Bob 2023-05-02 10:23:00 -07:00
Kieran Prasch 09a971c1a2 Update ritual acceptance test to use Enrico/Bob and networking. 2023-05-02 10:23:00 -07:00
Kieran Prasch 33bcea650d DKG encryption functionality for Enrico 2023-05-02 10:23:00 -07:00
Kieran Prasch 0320468082 Adds transcript test data, ensure tls certs are derived. 2023-05-02 10:22:28 -07:00
Kieran Prasch 9cccb32fdd Improves stack coverage of ritual acceptance test 2023-04-20 07:10:46 -07:00
Kieran Prasch 27e8cc83cf decrypt checkpoint 2023-04-20 07:10:46 -07:00
Kieran Prasch 735eec6739 improves order preservation of nodes during ritutal rounds 2023-04-20 07:10:46 -07:00
Kieran Prasch fff6728a32 three-layered testing of DKG rituals 2023-04-20 07:10:45 -07:00
Kieran Prasch 3d16cecaa5 updates nucypher-core and umbral usage 2023-04-20 07:10:45 -07:00
Kieran Prasch 5ab634688b hacking on ritual acceptance tests 2023-04-20 07:10:45 -07:00
Kieran Prasch a08ca63eef ferveo usage unit tests 2023-04-20 07:10:45 -07:00
Kieran Prasch a25d97f11d Updates internal API for Coordinator contract updates 2023-04-20 07:10:45 -07:00
Kieran Prasch 6da5bac954 ferveo DKG module and mocks 2023-04-20 07:10:45 -07:00
Kieran Prasch bc77489e94 CoordinatorV3 adaptation and integration with ferveo-server crate draft. 2023-04-20 07:10:45 -07:00
Kieran Prasch 59e14cc2e2 dkg node protocol early prototype v1. 2023-04-20 07:10:45 -07:00
KPrasch b739e79b80
Merge pull request #3049 from fjarri/umbral-serde
Updates for nucypher-core 0.6 and umbral 0.9
2023-04-11 10:23:17 -07:00
Manuel Montenegro 4d25e97d67
Use fixed binary value for test
The use of randomly generated values for pytest parameters may cause
errors in test explorer in Visual Studio Code. Specifically,
`test_return_value_serialization` test returns the following error when
a random parameter is used:

```
Test result not found for:
./tests/unit/conditions/test_return_value.py::test_return_value_serialization
[\xbd\x01\t\xecV\x05\x04\xe2\x9b(\xb6\xcef\xea\xa4\xfa]
```

Since the rest of values used in this test are fixed, there is no reason
to use a random value for bytes parameter.
2023-03-21 12:56:25 +01:00
Bogdan Opanchuk aa779c6557 Fixes for the new nucypher-core/umbral-pre API 2023-02-18 13:32:19 -08:00
derekpierre 216e2e5476 Update tests after rebase. 2022-12-23 09:13:41 -05:00
derekpierre 87fb4ba7c9 Add tests to ensure that mapping of status codes to middleware exceptions are correct.
General tests cleanup.
2022-12-23 09:13:41 -05:00
derekpierre 6772d02755 Improved testing of mapping condition failure to middleware exception creation.
Reduce redundant wording of NoConnectionToChain exception handling.
2022-12-23 09:13:41 -05:00