plugin/metrcs: add env variable example (#1151)
We support ENV variables in config files, add an example in the one for metric, note that `localhost:` is a valid host (in Go), so the TestReadme will parse this correctly. Fixes #1150
This commit is contained in:
parent
4d6e9c3833
commit
73d702c052
2 changed files with 11 additions and 3 deletions
|
@ -14,15 +14,14 @@ import (
|
|||
"github.com/mholt/caddy"
|
||||
)
|
||||
|
||||
// Pasrse all README.md's of the plugin and check if every example Corefile
|
||||
// actually works. Each corefile is only used if the language is set to 'corefile':
|
||||
// TestReadme parses all README.md's of the plugins and checks if every example Corefile
|
||||
// actually works. Each corefile snippet is only used if the language is set to 'corefile':
|
||||
//
|
||||
// ~~~ corefile
|
||||
// . {
|
||||
// # check-this-please
|
||||
// }
|
||||
// ~~~
|
||||
|
||||
func TestReadme(t *testing.T) {
|
||||
port := 30053
|
||||
caddy.Quiet = true
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue