-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add unit test for empty config file
- Loading branch information
1 parent
a3c03e3
commit 94cd415
Showing
6 changed files
with
35 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
mxs@bombadil.590226:1700469311 |
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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: ~ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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: ~ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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() |