aboutsummaryrefslogtreecommitdiff
path: root/test/readme_test.go
diff options
context:
space:
mode:
authorGravatar Miek Gieben <miek@miek.nl> 2017-10-18 17:20:27 +0100
committerGravatar GitHub <noreply@github.com> 2017-10-18 17:20:27 +0100
commit73d702c05201c44b6c8a9367efd1c12caa896bcf (patch)
tree28e8c34073a75e7596df06e6db181e7085f00b3c /test/readme_test.go
parent4d6e9c383342eca3adc540af5fc86170cab88cf5 (diff)
downloadcoredns-73d702c05201c44b6c8a9367efd1c12caa896bcf.tar.gz
coredns-73d702c05201c44b6c8a9367efd1c12caa896bcf.tar.zst
coredns-73d702c05201c44b6c8a9367efd1c12caa896bcf.zip
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
Diffstat (limited to 'test/readme_test.go')
-rw-r--r--test/readme_test.go5
1 files changed, 2 insertions, 3 deletions
diff --git a/test/readme_test.go b/test/readme_test.go
index 80b6feeb7..dcbb56619 100644
--- a/test/readme_test.go
+++ b/test/readme_test.go
@@ -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