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, 14 insertions, 15 deletions
diff --git a/test/auto_test.go b/test/auto_test.go
index 3dd0fdf79..f7e5faecd 100644
--- a/test/auto_test.go
+++ b/test/auto_test.go
@@ -120,9 +120,7 @@ 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 4d13a2ca0..9232b44a1 100644
--- a/test/file_upstream_test.go
+++ b/test/file_upstream_test.go
@@ -29,7 +29,9 @@ www 3600 IN CNAME www.example.net.
defer rm()
corefile := `.:0 {
- file ` + name + ` example.org
+ file ` + name + ` example.org {
+ upstream
+ }
hosts {
10.0.0.1 www.example.net.
fallthrough
@@ -86,8 +88,12 @@ www 3600 IN A 127.0.0.53
defer rm2()
corefile := `.:0 {
- file ` + name + ` example.org
- file ` + name2 + ` foo.example.org
+ file ` + name + ` example.org {
+ upstream
+ }
+ file ` + name2 + ` foo.example.org {
+ upstream
+ }
}`
i, udp, _, err := CoreDNSServerAndPorts(corefile)
diff --git a/test/file_xfr_test.go b/test/file_xfr_test.go
index 0298f5e68..b564417f0 100644
--- a/test/file_xfr_test.go
+++ b/test/file_xfr_test.go
@@ -29,9 +29,8 @@ 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 02fee0b3c..bacc989b5 100644
--- a/test/secondary_test.go
+++ b/test/secondary_test.go
@@ -43,9 +43,7 @@ func TestSecondaryZoneTransfer(t *testing.T) {
corefile := `example.org:0 {
file ` + name + ` {
- }
- transfer {
- to *
+ transfer to *
}
}`
@@ -94,9 +92,7 @@ func TestIxfrResponse(t *testing.T) {
corefile := `example.org:0 {
file ` + name + ` {
- }
- transfer {
- to *
+ transfer to *
}
}`