Commit Graph

600 Commits (8a76856067e2729d15da016723b167d6133c3b03)

Author SHA1 Message Date
derekpierre de028e6cfb Remove AdjudicatorAgent. 2023-09-22 08:24:30 -04:00
derekpierre 869ef1fbda Remove EconomicsFactory/Economics. 2023-09-21 12:31:21 -04:00
derekpierre bc3ff31449 Add tests for Operator.block_until_ready. 2023-09-21 09:51:17 -04:00
derekpierre d4d5183ceb Test renaming to exclude federated. Remove test for alice performing encryption. 2023-09-21 09:51:17 -04:00
derekpierre 86131ccdc1 Clean up types file. PolicyInfo is no longer used from there, and StakingProviderInfo should be localized to TACoApplicationAgent which is the only user of it. 2023-09-21 09:51:16 -04:00
derekpierre a022473203 Fix failing prometheus test. 2023-09-21 09:51:16 -04:00
derekpierre 33306a9d79 Rename root/child application agent integration fixtures. 2023-09-21 09:51:16 -04:00
derekpierre 48e6977dbd Update integration tests to properly mock operator bonding based on new logic to check bonding for cli tests. 2023-09-21 09:51:16 -04:00
Manuel Montenegro 0da1397f56
Rename integration tests
These tests have the same name than other tests in `unit` and
`acceptance` folder.

VS Code IDE in unable to do the discovery process of the tests when:

1. There is different sources of tests (different folders)
2. Some names are duplicated in tests of different folders.

This causes the discovery process to crash, so tests are not shown in
Test Explorer.

Renaming the tests with duplicated names works and let the developers
that uses VS Code to keep working with this IDE.
2023-09-21 10:59:49 +02:00
Manuel Montenegro f3e81ea798
Format integration test_block_confirmations code
This change applies darker and ruff code style rules.
2023-09-21 10:37:29 +02:00
Manuel Montenegro 700a5e4134
Format integration test test_concurrency.py code
This change applies darker and ruff code style rules.
2023-09-21 10:20:50 +02:00
Manuel Montenegro 083ba2e4ad
Format integration test test_dkg_ritual code
This change applies darker and ruff code style rules.
2023-09-21 10:18:04 +02:00
derekpierre 0081ee1ce6 Don't migrate configurations from v4->v6, but instead do v4->v5->v6 to ensure proper changes are enacted.
Migration from v4->v5 missed deprecation of "db_filepath" configuration parameter.
Add tests for configuration migration.
2023-09-15 10:53:23 -04:00
Kieran Prasch 7689cc0769 removal and reorg of 'trackers' in preperation for publishing ofprovider public key to Coordinator. 2023-09-14 16:26:05 -04:00
Kieran Prasch 499f903976 Adapt tests and exmaples to merged Operator, without Ritualist. 2023-09-14 16:26:05 -04:00
derekpierre 0d587f0295 Remove over-aggressive rename of `stake_info`. 2023-09-14 16:26:05 -04:00
derekpierre 75be004564 Update acceptance tests contract deployment / fixtures; StakeInfo is no longer a contract. 2023-09-14 16:26:05 -04:00
Kieran Prasch 4fc0176a96 handle integration and unit mocking of ad-hoc ursula account bonding. 2023-09-12 18:28:52 +02:00
Kieran Prasch 783f2dcd76 Enrico uses a web3 wallet to encrypt-then-sign. 2023-09-11 19:06:24 +02:00
derekpierre 243448d015 Bob no longer needs ritual id as a parameter for decrypting the threshold message kit since the Coordinator contract can be used for obtaining the ritual id from the dkg public key which is already stored in the threshold message kit. 2023-09-11 11:50:54 -04:00
derekpierre e943ca7b8f Rename PREApplicationAgent to TACoApplicationAgent; also rename associated variables/comments etc. 2023-09-08 09:27:04 -04:00
Kieran Prasch 0c69c142b6 handle fees, authority, and access controller in several tests 2023-09-07 18:35:00 -04:00
Kieran Prasch 56486f74df assorted 'initiator' -> 'authority' 2023-09-07 18:35:00 -04:00
derekpierre 81121bc4c5 Accomodate obtaining dkg threshold from Coordinator contract/Ritual object.
MockCoordinatorAgent simply uses a class method to determine threshold (allows for both simple/precomputed) to still be tested in integration tests.
2023-09-07 18:35:00 -04:00
derekpierre 03ca66b561 Utilize efficiency improvements to ThresholdMessageKit that ensures that Ciphertext is not needlessly copied between python layer and Rust later.
Allow ciphertext header to be directly obtained without needing to first get the Ciphertext.
Move decryption of ferveo encrypted data into a method on ThresholdMessageKit so that the Ciphertext data can be used directly in Rust layer, and not pulled into python to then pass
it back into the Rust layer for decryption.
2023-08-27 03:19:28 +02:00
derekpierre a75c5da251 Incorporate latest changes from ferveo and nucypher-core that exposes key encapsulation so that only encrypted symmetric key and associated data (CiphertextHeader) are included in ThresholdDecryptionRequest. 2023-08-27 03:19:28 +02:00
derekpierre ce3d399483 Remove fake python core shim, and use actual nucypher_core objects now that they are available via associated nucypher-core PR. 2023-08-27 03:19:28 +02:00
derekpierre ed4a8fbd79 Not the cleanest but mimic ciphertext header / payload from conversations in ferveo#155. 2023-08-27 03:19:28 +02:00
derekpierre 04a0c0239a Fix test affected by member variable naming change to ThresholdMessageKit. 2023-08-27 03:19:28 +02:00
derekpierre f93f1b1019 Rename DkgMessageKit to ThresholdMessageKit. 2023-08-27 03:18:08 +02:00
derekpierre a84680e6ca Update threshold_decrypt to take a DkgMessageKit instead of ciphertext and conditions. 2023-08-27 03:18:08 +02:00
derekpierre 2043b69a21 Remove redundant test. 2023-08-27 03:18:08 +02:00
derekpierre 13fe740c9a Update Enrico.encrypt_for_dkg to return DkgMessageKit shim. 2023-08-27 03:18:08 +02:00
Kieran Prasch fc543c49dc dehydrate multichain test mocks and utilities for fixture resuse in multiple suites. 2023-08-24 14:26:29 +02:00
Kieran Prasch faa9c147fb tests for /conditions_chains endpoint 2023-08-24 14:17:12 +02:00
Piotr Roslaniec e07101e68b fix a failing test after a rebase 2023-08-23 20:35:58 +02:00
Piotr Roslaniec 097ffad90e feat!: add condition type to condition schemas 2023-08-23 20:07:24 +02:00
Kieran Prasch 34775ca158 run black code formatter on condition.evm.py and test_character_configuration.py, fixes ruff linting errors. 2023-08-22 15:54:56 +02:00
Kieran Prasch 57ce72ade9 use the staking and payment provider uris as default conditions providers before Ursula's construction. 2023-08-22 15:41:23 +02:00
jMyles 280fe0d0f9 Simple test to show error for invalid chain ID. 2023-08-20 16:02:39 +02:00
Piotr Roslaniec 7f5f35b4c9 update pre-release nucypher-core versions 2023-08-01 10:26:02 +02:00
Piotr Roslaniec 748ee2ae55 update pre-released nucypher-core version 2023-08-01 10:25:12 +02:00
derekpierre 90837df0f0 DKG params are no longer exposed/applicable; remove redundant test and commented out code which have now gone stale. 2023-07-24 08:33:34 -04:00
derekpierre f3871396ac Use FerveoVariant enum value instead of constant for test. 2023-07-24 08:33:34 -04:00
derekpierre 09b13faafd Modify test so that the different ferveo variants can still be tested. 2023-07-24 08:33:34 -04:00
derekpierre 84f85b2049 Update ActiveRitualTracker to use TTLCache for tracking participation states; periodically purge the cache of expired entries no longer needed to be tracked. 2023-07-21 13:42:33 -04:00
derekpierre ed0a884e67 Code cleanup for testing. 2023-07-19 11:49:19 -04:00
derekpierre 18527588ba Add integration tests for refactored out methods, used for clean-up, in ActiveRitualTracker
Minor code clean-up.
2023-07-19 08:31:39 -04:00
derekpierre 6fb61bacec Remove use of threshold decryption request when encrypting data - should not be returned when encrypting - it's use is for decrypting (variant and context).. 2023-07-09 10:41:02 -04:00
jMyles 8ae0cb08e7 Test showing both success and failure tooling. 2023-07-06 13:19:33 +02:00