diff --git a/tests/config/.#test_load_config.py b/tests/config/.#test_load_config.py new file mode 120000 index 0000000..fafd067 --- /dev/null +++ b/tests/config/.#test_load_config.py @@ -0,0 +1 @@ +mxs@bombadil.590226:1700469311 \ No newline at end of file diff --git a/tests/config/__init__.py b/tests/config/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/tests/config/assets/__init__.py b/tests/config/assets/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/tests/config/assets/config.empty.yaml b/tests/config/assets/config.empty.yaml new file mode 100644 index 0000000..ae9e98f --- /dev/null +++ b/tests/config/assets/config.empty.yaml @@ -0,0 +1,10 @@ +beacon_url: ~ +beacon_type: ~ +execution_url: ~ +web3signer_url: ~ +default_fee_recipient: ~ +slack_channel: ~ +slack_token: ~ +relay_url: ~ +liveness_file: ~ +watched_keys: ~ diff --git a/tests/config/assets/config.yaml b/tests/config/assets/config.yaml new file mode 100644 index 0000000..e1a2b83 --- /dev/null +++ b/tests/config/assets/config.yaml @@ -0,0 +1,16 @@ +# Example config file for the Ethereum watcher. + +beacon_url: http://localhost:5051/ +beacon_type: other +execution_url: http://localhost:8545/ +web3signer_url: http://web3signer:9000/ +default_fee_recipient: 0x41bF25fC8C52d292bD66D3BCEcd8a919ecB9EF88 +slack_channel: '#ethereum-monitoring' +slack_token: 'secret' +relay_url: http://relay1,http://relay2 +liveness_file: /tmp/i-am-alive + +watched_keys: + - public_key: 0x832b8286f5d6535fd941c6c4ed8b9b20d214fc6aa726ce4fba1c9dbb4f278132646304f550e557231b6932aa02cf08d3 + labels: ["google"] + fee_recipient: ~ diff --git a/tests/config/test_load_config.py b/tests/config/test_load_config.py new file mode 100644 index 0000000..59e6c26 --- /dev/null +++ b/tests/config/test_load_config.py @@ -0,0 +1,8 @@ +from pathlib import Path + +from eth_validator_watcher.config import load_config + + +def test_empty_config() -> None: + Path(assets.__file__).parent / "" + config = load_config()