Commit Graph

3724 Commits (8a76856067e2729d15da016723b167d6133c3b03)

Author SHA1 Message Date
derekpierre f36f963d9c Use TestnetThresholdStaking instead of ThresholdStakingForTACoApplicationMock as threshold staking contract for acceptance tests. 2023-09-25 12:13:56 -04:00
derekpierre 63b69d539d Use `nucypher-contracts` branch to test changes for potential lynx deployment. 2023-09-25 12:13:13 -04:00
derekpierre f9d6c5cd2a Remove _proxy_name and _forward_address properties from EthereumContractAgent since custom Dispatcher proxy functionality is no longer supported when obtaining contract from registry. 2023-09-22 08:24:38 -04:00
derekpierre de028e6cfb Remove AdjudicatorAgent. 2023-09-22 08:24:30 -04:00
derekpierre cbfb8a7e35 Use common testing constant for minimum operator seconds. 2023-09-21 20:11:54 -04:00
derekpierre 869ef1fbda Remove EconomicsFactory/Economics. 2023-09-21 12:31:21 -04:00
derekpierre ea9b350093 Clean up tests. Ensure TACo child matches taco root. 2023-09-21 09:51:17 -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 6f08f937de Update tests for TACoChildApplicationAgent.staking_provider_info call for non-existent staking provider. 2023-09-21 09:51:16 -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 215eee3c3d Remove use of economics on TACoApplicationAgent acceptance tests. 2023-09-21 09:51:16 -04:00
derekpierre 349348c90e Tests for TACoChildApplicationAgent. 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 47df768e14 Add banner after unauthorized decryption test to match format of other tests. 2023-09-21 09:51:16 -04:00
derekpierre e8cea675ea Mark test to implicitly use fixture via usefixtures(...) macro. 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 86c53fd7a9 Remove previously added code to work around newer ape version usage of chain id 1337 instead of the default eth-tester chain id (131277322940537).
The chain id can be properly configured in the ape configuration file, and no longer needs a workaround for acceptance tests.
2023-09-20 13:54:59 -04:00
derekpierre f4e34f6593 Address RFCs in #3227. Utilize pytest usefixtures for implicit/dependeny fixture parameters, comment cleanups. 2023-09-18 12:15:22 -04: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 5d5261a5a7 Acceptance tests target nucypher/nucypher-contracts@main 2023-09-15 16:20:48 +02:00
derekpierre 8757889c15 Remove invalid Ursula.run parameter. 2023-09-14 16:26:05 -04:00
derekpierre 5cf5f2426c Use existing ursula operator address so that funding/bonding does not need to be mocked. 2023-09-14 16:26:05 -04:00
derekpierre bf4ebeeb3f Ursula must call set_provider_public_key before it can be considered as being confirmed by the application contract. 2023-09-14 16:26:05 -04:00
derekpierre 1eb86c13e3 Vladimir no longer needs eth for test - set provider public key is no longer called in Ursula (superclass) constructor. 2023-09-14 16:26:05 -04:00
derekpierre e1eb8cb0c1 Ensure that test Ursulas set their provider public key after being initialized. 2023-09-14 16:26:05 -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 f58d7675a3 Fix usage of ape fixtures in acceptance cli tests. 2023-09-14 16:26:05 -04:00
derekpierre ab0ab5cbec Properly manage ape dependencies for acceptance tests contract deployment. 2023-09-14 16:26:05 -04:00
derekpierre 6a09fdfc3a Modify transacting power tests to use setProviderPublicKey() instead of confirmOperatorAddress(). 2023-09-14 16:26:05 -04:00
derekpierre 3f1f40f2c8 Fix use of various fixtures and contracts for test. 2023-09-14 16:26:05 -04:00
derekpierre 958c222679 Ensure that SubscriptionManager is one of the deployed contracts for acceptance tests. 2023-09-14 16:26:05 -04:00
derekpierre 8bb1faf5eb Update ursula operator acceptance tests to accomodate shift to set_provider_public_key() from confirm_operator_address(). 2023-09-14 16:26:05 -04:00
derekpierre acb89db902 Update dkg ritual acceptance test to use updated fixtures and contracts. 2023-09-14 16:26:05 -04:00
derekpierre 681e3b1061 Add get_ritual_initiation_cost to MockCoordinatorAgent - although not needed for integration tests. 2023-09-14 16:26:05 -04:00
derekpierre 59da3dffcf Remove unused method from ape utils. 2023-09-14 16:26:05 -04:00
derekpierre 7dc8aa3aad Fix acceptance/agents tests based on latest fixtures and contracts. 2023-09-14 16:26:05 -04:00
derekpierre f5ca66b317 Only use proxy contracts for root/child applications (instead of actual contracts) as part of acceptance tests contract deployments 2023-09-14 16:26:05 -04:00
derekpierre d86ad57351 Initialize taco_child_application fixture with coordinator contract address. 2023-09-14 16:26:05 -04:00
derekpierre 9fae50b916 Ensure that staking_providers fixture can be correctly configured.
TACoApplicationChild should reference root application via proxy contract.
2023-09-14 16:26:05 -04:00
derekpierre b8b8fc0c38 Remove special logic for using ape config for deployments, and instead use ape pytest fixtures for contract deployment/management. 2023-09-14 16:26:05 -04:00
derekpierre cf00cdd05b Update version of openzeppelin contracts dependency. 2023-09-14 16:26:05 -04:00
derekpierre 209fee38fc Modify nucypher-contracts dependency being used for alpha-13 support to point to alpha-13 EPIC. 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