forked from cloudflare/pint
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
32 additions
and
4 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
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,26 @@ | ||
env FOO=BAR | ||
pint.error --no-color config | ||
! stdout . | ||
cmp stderr stderr.txt | ||
|
||
-- stderr.txt -- | ||
level=info msg="Loading configuration file" path=.pint.hcl | ||
level=fatal msg="Fatal error" error="failed to load config file \".pint.hcl\": .pint.hcl:7,17-29: Unknown variable; There is no variable named \"ENV_AUTH_KEY\"., and 1 other diagnostic(s)" | ||
-- .pint.hcl -- | ||
parser { | ||
relaxed = [".*"] | ||
} | ||
prometheus "prod" { | ||
uri = "http://localhost" | ||
headers = { | ||
X-Auth = "${ENV_AUTH_KEY}" | ||
} | ||
} | ||
rule { | ||
match { | ||
kind = "recording" | ||
} | ||
aggregate ".+" { | ||
keep = [ "${ENV_FOO}" ] | ||
} | ||
} |
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