Commit Graph

659 Commits (ac1893cd50e26371821182f3e6a860ab95272574)

Author SHA1 Message Date
Manuel Montenegro ac1893cd50 Remove optional imports of Prometheus
Prometheus is now a dependency that is always installed along with
nucypher. For this reason, it doesn't make sense to check if Prometheus
is installed before importing it.
2024-01-23 13:27:35 +01:00
derekpierre c5bf021c24 Update tests to have ferveo public keys obtained from CoordinatorAgent/Coordinator contract.
Co-authored-by: Kieran Prasch <kieranprasch@gmail.com>
2024-01-17 09:31:32 -05:00
derekpierre 99ebdfe8dc Deprecate use of goerli blockchain; Lynx will now use Sepolia. 2024-01-04 13:23:02 -05:00
derekpierre 4398c63892 Use constants for timeout values for reencryption and decryption. 2023-11-28 13:42:45 +01:00
derekpierre fa45bb568f Bob does not need to resolve the cohort himself, it will be performed by the `ThresholdAccessControlClient` - so it was redundant. 2023-11-28 13:42:45 +01:00
derekpierre fb9977ab56 Update expected test string based on changes to exception message. 2023-11-17 12:20:36 -05:00
derekpierre d6a1e3f01f Update RitualStatus names to match Coordinator contract. 2023-11-17 12:20:36 -05:00
Kieran Prasch fef10d1e67 improves the efficiency and completeness of startup RPC endpoint checks 2023-10-31 17:23:43 +01:00
Kieran Prasch bd8fbc0626 linting 2023-10-31 17:23:43 +01:00
Kieran Prasch d9d05b3efb Require all domain RPC endpoints are active before node startup 2023-10-31 17:23:43 +01:00
Kieran Prasch d63a6cb93d Expands domains data model to include condition chains 2023-10-31 17:23:43 +01:00
Kieran Prasch 63d2e0265c Makes TACoDomain.__hash__ consistent with __eq__. 2023-10-31 14:30:15 +01:00
Kieran Prasch 9599b9e632 Handle domains during CLI account selection of signers. 2023-10-31 14:30:15 +01:00
Kieran Prasch 0c528eaa7a Linting and Newsfrag for PR #3315 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
Kieran Prasch 4a145e13ba respond to RFCs in PR #3317 2023-10-30 20:58:03 +01:00
Kieran Prasch fc970602a3 apply code linting and formatting 2023-10-30 20:58:03 +01:00
Kieran Prasch 10e18fc353 removes dead cli code: show_staking 2023-10-30 20:58:03 +01:00
derekpierre 0dfd03a9b6 Conditions are much more strict about typing now, update tests/scripts to be more accurate about types for comparator values. 2023-10-26 20:22:28 +02:00
Manuel Montenegro 56a7e48b8d Add a new test for IP address detection 2023-10-26 12:03:29 +02:00
Manuel Montenegro b9b51f16d2 Fix typo in assert 2023-10-26 12:03:29 +02:00
KPrasch 80aa3c5ca4
Merge pull request #3293 from derekpierre/what-not
Add Not Operator Functionality
2023-10-20 11:03:27 +02:00
KPrasch 9c750c7dd1
Apply suggestions from code review
Co-authored-by: piotr-roslaniec <39299780+piotr-roslaniec@users.noreply.github.com>
Co-authored-by: Derek Pierre <derek.pierre@gmail.com>
2023-10-19 17:06:04 +02:00
KPrasch de9e09d69e
Update tests/integration/cli/test_ursula_config_cli.py
Co-authored-by: Derek Pierre <derek.pierre@gmail.com>
2023-10-19 17:05:33 +02:00
derekpierre c076aa6f82 Skip `test_learner_learns_about_domains_separately` for now due to inconsistent CI behaviour. 2023-10-19 08:30:05 -04:00
Manuel Montenegro a92aae9b19
Add tests for ursula config ip-address CLI command 2023-10-19 14:07:17 +02:00
derekpierre 4c6a0be937 Use ConditionType enum values instead of constants across codebase. 2023-10-18 20:25:56 -04:00
derekpierre 05aff5203c Add integration test for decryption failure cases: unauthorized encryption, expired ritual.
Better scope test exception by using match for exception messages.
2023-10-10 11:27:22 -04:00
derekpierre 04e085d02a Attempt to address failing integration test. 2023-10-05 10:42:45 -04:00
derekpierre 2a0bd02203 Move TESTERCHAIN chain information out of domains and into testing constants. 2023-10-05 08:27:44 -04:00
derekpierre dc547249ae Reduce scope of fixture froms session to module, so that its effects can be overridden by test modules.
Added unit tests for get_domain_info.
2023-10-05 06:55:32 -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 5b7a56a804 Update test to eagerly learn about nodes. 2023-10-04 15:18:46 -04:00
derekpierre 9ee7b9e7ef Rename test class to prevent pytest warning about it starting with "Test". 2023-10-04 15:11:59 -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 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 aa6e53191f Remove use of network when dealing with NetworksInventory class. 2023-10-04 13:30:18 -04:00
derekpierre e11a200bc2 Unskip test_domains integration tests. 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 1c333bddaa Deprecate condition_provider_uris in favour of condition_blockchain_endpoints. 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