aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/auto_test.go4
-rw-r--r--test/file_upstream_test.go12
-rw-r--r--test/file_xfr_test.go5
-rw-r--r--test/secondary_test.go8
4 files changed, 15 insertions, 14 deletions
diff --git a/test/auto_test.go b/test/auto_test.go
index f7e5faecd..3dd0fdf79 100644
--- a/test/auto_test.go
+++ b/test/auto_test.go
@@ -120,7 +120,9 @@ func TestAutoAXFR(t *testing.T) {
auto {
directory ` + tmpdir + ` db\.(.*) {1}
reload 1s
- transfer to *
+ }
+ transfer {
+ to *
}
}`
diff --git a/test/file_upstream_test.go b/test/file_upstream_test.go
index 9232b44a1..4d13a2ca0 100644
--- a/test/file_upstream_test.go
+++ b/test/file_upstream_test.go
@@ -29,9 +29,7 @@ www 3600 IN CNAME www.example.net.
defer rm()
corefile := `.:0 {
- file ` + name + ` example.org {
- upstream
- }
+ file ` + name + ` example.org
hosts {
10.0.0.1 www.example.net.
fallthrough
@@ -88,12 +86,8 @@ www 3600 IN A 127.0.0.53
defer rm2()
corefile := `.:0 {
- file ` + name + ` example.org {
- upstream
- }
- file ` + name2 + ` foo.example.org {
- upstream
- }
+ file ` + name + ` example.org
+ file ` + name2 + ` foo.example.org
}`
i, udp, _, err := CoreDNSServerAndPorts(corefile)
diff --git a/test/file_xfr_test.go b/test/file_xfr_test.go
index b564417f0..0298f5e68 100644
--- a/test/file_xfr_test.go
+++ b/test/file_xfr_test.go
@@ -29,8 +29,9 @@ func TestLargeAXFR(t *testing.T) {
defer rm()
corefile := `example.com:0 {
- file ` + name + ` {
- transfer to *
+ file ` + name + `
+ transfer {
+ to *
}
}`
diff --git a/test/secondary_test.go b/test/secondary_test.go
index bacc989b5..02fee0b3c 100644
--- a/test/secondary_test.go
+++ b/test/secondary_test.go
@@ -43,7 +43,9 @@ func TestSecondaryZoneTransfer(t *testing.T) {
corefile := `example.org:0 {
file ` + name + ` {
- transfer to *
+ }
+ transfer {
+ to *
}
}`
@@ -92,7 +94,9 @@ func TestIxfrResponse(t *testing.T) {
corefile := `example.org:0 {
file ` + name + ` {
- transfer to *
+ }
+ transfer {
+ to *
}
}`