Commit Graph

215 Commits (f59d636d54a8ab49327c1393f3ddcc1154373a44)

Author SHA1 Message Date
derekpierre 0f0a39d242
Rename stake_provider(s)_account(s) -> staking_provider(s)_account(s). 2024-04-29 10:34:22 -04:00
derekpierre 556029def5
Simplify ReservedTestAccountManager and make it adhere to its superclass API, while adding functionality for our own needs. 2024-04-29 10:34:20 -04:00
derekpierre c977db21e9
Remove ape-config.yml used for unit/integration tests and instead generate new accounts as needed for unit/integration tests - on top of the default number of accounts since there is no ape-config.yml for unit/integration tests.
For acceptance tests new accounts don't need to be generated since the ape-config.yml used specifies the number of test accounts needed
2024-04-29 10:34:19 -04:00
derekpierre ce6a0b35f6
Update creation of ursulas now that TesterBlockchain no longer manages accounts. 2024-04-29 10:34:13 -04:00
derekpierre f098d46388
Remove all account management from TesterBlockchain into separate account management class, ReservedTestAccountManager.
Co-authored-by: Kieran Prasch <kieranprasch@gmail.com>
2024-04-29 10:34:12 -04:00
KPrasch 416164a846
integrate atxm (see original history in https://github.com/nucypher/nucypher/pull/3424, https://github.com/nucypher/atxm)
- atx integration test
- eliminate 'fire and forget'
- warp space-time
2024-03-25 13:32:19 -04:00
KPrasch 4d06ad441d linting 2024-02-13 10:53:03 -05:00
Kieran Prasch 1b6b61e334 Makes network middleware loally certificate agnostic 2024-02-13 10:53:03 -05:00
Kieran Prasch 13758d14a0 removes certificate filepath handling 2024-02-13 10:53:03 -05:00
KPrasch d06bb7af9a repairs a p2p validity test that implements /ping. Linting. 2024-01-23 19:21:26 +01:00
KPrasch fcaf99ee59 mock ipv4 address resolution in MockRestMiddleware 2024-01-23 19:21:26 +01:00
derekpierre 5589bf16a8 Increase default connection timeout and allow overriding via env variable.
Increase default certificate retrieval timeout and allow overriding via env variable.
Better utilize connect/read timeout functionality for requests library calls.
Update TestMiddlewareClient to still work with new changes.
2023-11-28 13:42:45 +01:00
Kieran Prasch d63a6cb93d Expands domains data model to include condition chains 2023-10-31 17:23:43 +01:00
Kieran Prasch 0c528eaa7a Linting and Newsfrag for PR #3315 2023-10-31 14:30:15 +01:00
Kieran Prasch f4caacc4b1 update scripts usage of taco domains; conventionally use str() on domains usages 2023-10-31 14:30:15 +01:00
Kieran Prasch c87d4f5d1d forgotten internal API change 2023-10-31 14:30:15 +01:00
Kieran Prasch ae9f4b40fa Use a constant for the temporary domain 2023-10-31 14:30:15 +01:00
Kieran Prasch 63b3d4aee9 Use a single collection (SUPPORTED_DOMAINS) for supported domains. 2023-10-31 14:30:15 +01:00
Kieran Prasch 0bc6840b17 do not name shadow domains in reworked mocking 2023-10-31 14:30:15 +01:00
Kieran Prasch 0df05d38f2 Conventionally import (collapsed) domains for namespacing 2023-10-31 14:30:15 +01:00
Kieran Prasch b1afa231d5 use TACoDomain everywhere 2023-10-31 14:30:15 +01:00
Kieran Prasch 09bc914ce7 renames TEMPORARY_DOMAIN -> TEMPORARY_DOMAIN_NAME 2023-10-31 14:30:15 +01:00
Kieran Prasch b538e58f57 use TACoDomain for internal APIs 2023-10-31 14:30:15 +01:00
derekpierre 2a0bd02203 Move TESTERCHAIN chain information out of domains and into testing constants. 2023-10-05 08:27:44 -04:00
derekpierre d8b9180921 Update domains/TACoDomain structure.
Added magic methods.
2023-10-05 06:20:13 -04:00
derekpierre ee6a48070f Remove policy_registry/policy_registry_filepath which are unused and unnecessary parameters. 2023-10-04 15:41:56 -04:00
derekpierre 568270d36c Allow MockRegistrySource to take any domain value while allowing the accepted values to be specified.
Update various tests that used random domain values to either use the mock, or just use TEMPORARY_DOMAIN if applicable.
2023-10-04 13:30:18 -04:00
derekpierre 6a508e6aed Yield after patching allowed domains. 2023-10-04 13:30:18 -04:00
derekpierre a5b8b805da The use of the `blockchain_` prefix for blockchain providers and interfaces is redundant; so remove the prefix from those usages. 2023-10-04 13:30:18 -04:00
derekpierre bee3c926d4 Rename networks module to domains, and remove NetworksInventory class; module contains all values and methods now. 2023-10-04 13:30:18 -04:00
derekpierre 4507580196 Update CLI --network option to be --domain.
Update subsequent function calls to use domain as well instead of network.
Update some constants to use _DOMAIN instead of _NETWORK.
2023-10-04 13:30:18 -04:00
derekpierre 2d2b67e5d2 Rename of various functions/constants from NetworksInventory to use domain instead of network.
Rename variables obtained by calling into NetworksInventory to use domain instead of network.
Rename NuCypherNetworkName CLI validation object into NuCypherDomainName.
2023-10-04 13:30:18 -04:00
derekpierre 05fba15c1e More renames of provider_uri to blockchain_/eth_ endpoint. 2023-10-04 13:30:18 -04:00
derekpierre 941b21f34f More renames of instances of eth_provider_uri to either blockchain_endpoint or eth_endpoint. 2023-10-04 13:30:18 -04:00
derekpierre fa4051d504 Rename Eth/PolyNetwork to Eth/PolyChain to better reflect their usage. 2023-10-04 13:30:18 -04:00
derekpierre 738182ab98 Remove use of pre_payment_network and coordinator_network since the corresponding polygon network is always implied based on the TACo network used.
Remove coordinator_provider_uri, use of pre_payment_network.provider because all characters now define polygon_endpoint parameter.
2023-10-04 13:30:18 -04:00
derekpierre 32a3b432d7 Provide richer chain information from TACoNetwork class including chain id and name for underlying blockchain networks. 2023-10-04 13:30:18 -04:00
derekpierre 33068070fc Rename pre_payment_provider to polygon_endpoint as it pertains to Characters/Configurations/CLI parameters. 2023-10-04 13:30:18 -04:00
derekpierre 4166c7dae9 Rename eth_provider_uri to eth_endpoint as it pertains to Characters/nodes/CLI options. 2023-10-04 13:30:18 -04:00
derekpierre 6602192368 Update mocking for NetworksInventory class in tests. 2023-10-04 13:30:18 -04:00
Kieran Prasch 1858f49a99 tests use the refactored ContractRegistry and RegistrySource interfaces 2023-10-04 19:24:43 +02:00
Kieran Prasch f96c9ccd30 Reworks contract registry interfaces and data format; Simplified registry with reduced indirection and removed write functionality. 2023-10-04 19:24:43 +02:00
derekpierre 869ef1fbda Remove EconomicsFactory/Economics. 2023-09-21 12:31:21 -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 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