Commit Graph

172 Commits (7098933a4751bcf8feb8eca061dda80befb51a14)

Author SHA1 Message Date
derekpierre e1eb8cb0c1 Ensure that test Ursulas set their provider public key after being initialized. 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 59da3dffcf Remove unused method from ape utils. 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 75be004564 Update acceptance tests contract deployment / fixtures; StakeInfo is no longer a contract. 2023-09-14 16:26:05 -04:00
derekpierre e943ca7b8f Rename PREApplicationAgent to TACoApplicationAgent; also rename associated variables/comments etc. 2023-09-08 09:27:04 -04:00
derekpierre 4b8f6d95f2 Cleanup testing blockchain utilities imports. 2023-09-07 20:58:17 -04:00
derekpierre 2e47626c90 Fix mispelled constant. 2023-09-07 18:35:00 -04:00
Kieran Prasch 2342f7f1ef initial steps to establish on-chain ritual access control via GlobalAllowList in tests 2023-09-07 18:34:58 -04:00
Kieran Prasch 0e96f5c76c modifies ape -> nucypher registry adapter function to handle both local and dependency contract ABI entries. 2023-09-07 18:33:06 -04:00
Manuel Montenegro fe75f75998 Update tests to new TACo nucypher contracts
This commit is aimed to update test to the following changes on
nucypher-contracts repo:
  - Update SimplePREApplication with TACoApplication
  - Replace ThresholdStakingForPREApplicationMock contract with
    ThresholdStakingForTACoApplicationMock
  - Use the new Coordinator contract
  - Add the deployment of StakeInfo contract

The use of these new contracts made necessary the following changes:
  - Add the deployment of a new Token for ritual fees: RitualToken. This
    contract has been added as local deployment.
  - Add the deployment of local contract ConditionNFT

Additionally, this commit updates the key character for arguments in
ape-config.yaml. From '::variable::' to <variable>, which results in a
more legible code.

Finally, this commit solves some linting and formatting issues.

Co-authored-by: LunarBytes <kieran@nucypher.com>
2023-09-07 18:32:58 -04:00
derekpierre ccbabde014 Use specific test account since we derive test accounts from a mnemonic - index of `0` is always the same account, so just use it. 2023-09-05 13:36:35 -04: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 a6a265675d Caracters (config) are blockchainy 2023-06-26 20:42:51 +02:00
Kieran Prasch c895d24ba9 use TEST_ETH_PROVIDER_URI in favor of PYEVM_DEV_URI 2023-06-26 20:42:51 +02:00
Kieran Prasch 1dd541725f another step in the direction of formalized internal multichain routing 2023-06-26 20:42:51 +02:00
Kieran Prasch 4f5a220ea4 fix missing imports 2023-05-04 13:35:40 -07:00
Kieran Prasch ec48a96532 Improves testerchain deploy configuraion YML support. 2023-05-04 10:15:17 -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 93e45bc612 get ape contract ABIs from an in-memory vs. on-disk source. 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 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
Kieran Prasch a19c50ec69 ape checkpoint 1 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 33bcea650d DKG encryption functionality for Enrico 2023-05-02 10:23:00 -07:00
derekpierre 39b808a52d Re-add test `test_invalid_operators_tolerance` to get test mostly running. Unclear how to fix the code at the end of the test - so commented for now.
Remove unused testing utils method.
2022-12-22 15:23:33 -05:00
derekpierre 9b0f645be7 Remove tests for deployment of deprecated contracts.
Code cleanup of docstrings and comments.
2022-12-22 15:07:52 -05:00
derekpierre 889cc58a88 Remove code/tests that still reference the legacy notion of periods. 2022-12-22 15:05:50 -05:00
Kieran Prasch a66adf3737 Removes unused test utility 2022-12-13 11:42:00 +00:00
jMyles ff2b98c30c The 'big_testerchain' concept didn't work out; cleaning it up. Leaving it in the history for research purposes. 2022-12-07 11:29:26 +00:00
jMyles 97b19ea3e4 Fake addresses for fake Ursulas. Good enough for these highperf tests. 2022-12-07 11:29:26 +00:00
Kieran Prasch ed53696cf4 unskip IP detection CLI tests with required mocks 2022-12-07 11:29:26 +00:00
Kieran Prasch fda5c86db2 Removes "decentralized" and "blockchain" differentiation from "federated" 2022-12-07 11:29:26 +00:00
Kieran Prasch 7b7f2f071f Atomically unfederate (most of) the tests; Restores "federated" functionality by way of mocking. Takes advantage of fixture overriding to intercept testerchain. 2022-12-07 11:28:40 +00:00
derekpierre 37ddd90830 Use thread-safe set for caching active ports.
Stop the use of MOCK_URSULA_START_PORT constant which may cause inadvertent port reuse.
Adjust rules for selecting ports to ensure early short circuit for invalid ports.
2022-11-24 10:51:01 -05:00
Kieran Prasch baac3db5fa Attempt to prevent network port reuse in tests 2022-11-24 10:00:16 -05:00
derekpierre d5e18dc56e Move common test function to utility module. 2022-11-21 12:53:25 -05:00
Kieran Prasch 6ca73c2849 remove lisence header from tests 2022-11-16 13:27:47 +00:00
Kieran Prasch 4e2bede69d Promote tests/mock and tests/utils to imporatable packages 2022-10-31 20:16:35 +00:00
Kieran Prasch 4a4e8dd594 Finishes removal of control package, it's usages and test utils 2022-10-27 22:22:46 +01:00
Kieran Prasch d1269d1507 atomically extricate porter to nucypher/nucypher-porter 2022-10-27 17:26:32 +01:00
Kieran Prasch febc6093c1 Removes lmdb datastore usage 2022-10-27 10:12:17 +01:00
Kieran Prasch 17d3888c4d Remove unused specifications, consolidate the remaining ones for use by porter alone. 2022-10-26 13:55:38 +01:00
Kieran Prasch 9ae4d5c966 to/from wei method updates for web3 v6+ support 2022-10-18 20:10:37 +02:00
derekpierre ed6227ad09 Code cleanup and additional tests.. 2022-10-18 20:09:25 +02:00
derekpierre d77fac4d39 Allow context to be specified as JSON and not base64 JSON.
Remove retrieve tests that utilize url parameters since it is a POST endpoint.
2022-10-18 20:09:25 +02:00
derekpierre 40e2c5c0ea Initial work to have Porter provide 'context' for condition-based re-encryption when applicable. 2022-10-18 20:09:25 +02:00
Kieran Prasch e450179e23 Use none as the 'free' gas post-london 2022-10-18 20:09:25 +02:00