Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Check that all variables are defined in the config #20

Merged
merged 1 commit into from
Sep 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion hunter/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ def load_test_groups(config: Dict, tests: Dict[str, TestConfig]) -> Dict[str, Li
def load_config_from(config_file: Path) -> Config:
"""Loads config from the specified location"""
try:
content = expandvars(config_file.read_text())
content = expandvars(config_file.read_text(), nounset=True)
yaml = YAML(typ="safe")
config = yaml.load(content)
"""
Expand Down
8 changes: 4 additions & 4 deletions tests/resources/sample_config.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# Please place this file in `~/.hunter/hunter.yaml` and provide the missing config values:
fallout:
url: https://fallout.sjc.dsinternal.org/
user: ${FALLOUT_USER}
token: ${FALLOUT_OAUTH_TOKEN}
user: FALLOUT_USER
token: FALLOUT_OAUTH_TOKEN

graphite:
url: http://history.sjc.dsinternal.org/
Expand All @@ -17,8 +17,8 @@ graphite:

grafana:
url: http://history.datastax.lan:3000/
user: ${GRAFANA_USER}
password: ${GRAFANA_PASSWORD}
user: GRAFANA_USER
password: GRAFANA_PASSWORD

# Templates define common bits shared between test definitions
templates:
Expand Down
Loading