]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
Avoid network traffic during test, a bit of cleanup
authorPhilip Homburg <philip@nlnetlabs.nl>
Tue, 14 Jun 2022 15:04:23 +0000 (17:04 +0200)
committerPhilip Homburg <philip@nlnetlabs.nl>
Tue, 14 Jun 2022 15:04:23 +0000 (17:04 +0200)
testdata/blanks_cached_zone.tdir/blanks.example.com.zone [moved from testdata/blanks_cached_zone.tdir/blanks.example.com with 100% similarity]
testdata/blanks_cached_zone.tdir/blanks_cached_zone.conf
testdata/blanks_cached_zone.tdir/blanks_cached_zone.pre

index c3d43b79f7a35dfcb38f83561fbbc7b77125bc8b..b0eb4aa9ad063f22c9d869bed6f263466edda389 100644 (file)
@@ -14,12 +14,7 @@ server:
 
 auth-zone:
         name: blanks.example.com
-        zonefile: "blanks.example.com"
-       url: "https://www.example.com/blanks.example.com.zone"
+        zonefile: "blanks.example.com.zone"
+       url: "https://127.0.0.1:@TOPORT@/blanks.example.com.zone"
        for-upstream: yes
        for-downstream: yes
-
-#rpz:
-#        name: blanks.example.com
-#        zonefile: "blanks.example.com"
-#      url: "https://127.0.0.1:@TOPORT@/blanks.example.com.zone"
index 4a9f69bd6389ea4d539627808720efc6a15e8465..f347a66cccbdc776e7ef065ed3abdfd9456e79b2 100644 (file)
@@ -8,10 +8,11 @@ PRE="../.."
 . ../common.sh
 get_random_port 2
 UNBOUND_PORT=$RND_PORT
+UNUSED_PORT=$(($RND_PORT + 1))
 echo "UNBOUND_PORT=$UNBOUND_PORT" >> .tpkg.var.test
 
 # make config file
-sed -e 's/@PORT\@/'$UNBOUND_PORT'/' < blanks_cached_zone.conf > ub.conf
+sed -e 's/@PORT\@/'$UNBOUND_PORT'/' -e 's/@TOPORT\@/'$UNUSED_PORT'/' < blanks_cached_zone.conf > ub.conf
 # start unbound in the background
 $PRE/unbound -d -c ub.conf >unbound.log 2>&1 &
 UNBOUND_PID=$!