aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorGravatar Miek Gieben <miek@miek.nl> 2019-07-27 11:47:55 +0000
committerGravatar GitHub <noreply@github.com> 2019-07-27 11:47:55 +0000
commit7a3371d740065d4a0e321abe27fe090300a4ce4f (patch)
treef6a6a0cd8e54ea88c9af25ab5147d0abf86d0fc4 /test
parentcfc4948f92f44a09a15117f0120a8dcf97e61053 (diff)
downloadcoredns-7a3371d740065d4a0e321abe27fe090300a4ce4f.tar.gz
coredns-7a3371d740065d4a0e321abe27fe090300a4ce4f.tar.zst
coredns-7a3371d740065d4a0e321abe27fe090300a4ce4f.zip
plugin/file: allow README.md testing (#3052)
* Fix corefile usage * plugin/file: allow README.md testing Allow readme testing for the file plugin and fix bugs that where found: * the reader wasn't reset when re-reading the same io.reader for a different origin. Signed-off-by: Miek Gieben <miek@miek.nl> * Update test/example_test.go Co-Authored-By: Michael Grosser <development@stp-ip.net>
Diffstat (limited to 'test')
-rw-r--r--test/example_test.go21
1 files changed, 11 insertions, 10 deletions
diff --git a/test/example_test.go b/test/example_test.go
index 852143fe8..9d8dec832 100644
--- a/test/example_test.go
+++ b/test/example_test.go
@@ -2,14 +2,15 @@ package test
const exampleOrg = `; example.org test file
$TTL 3600
-example.org. IN SOA sns.dns.icann.org. noc.dns.icann.org. 2015082541 7200 3600 1209600 3600
-example.org. IN NS b.iana-servers.net.
-example.org. IN NS a.iana-servers.net.
-example.org. IN A 127.0.0.1
-example.org. IN A 127.0.0.2
-short.example.org. 1 IN A 127.0.0.3
-*.w.example.org. IN TXT "Wildcard"
-a.b.c.w.example.org. IN TXT "Not a wildcard"
-cname.example.org. IN CNAME www.example.net.
-service.example.org. IN SRV 8080 10 10 example.org.
+@ IN SOA sns.dns.icann.org. noc.dns.icann.org. 2015082541 7200 3600 1209600 3600
+@ IN NS b.iana-servers.net.
+@ IN NS a.iana-servers.net.
+@ IN A 127.0.0.1
+@ IN A 127.0.0.2
+short 1 IN A 127.0.0.3
+
+*.w 3600 IN TXT "Wildcard"
+a.b.c.w IN TXT "Not a wildcard"
+cname IN CNAME www.example.net.
+service IN SRV 8080 10 10 @
`