From 1be282b78d36e14a2b57dad3afeb6f6af7d95b55 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20Men=C5=A1=C3=ADk?= Date: Wed, 3 Mar 2021 11:15:16 +0100 Subject: [PATCH] Do not use internet resources Instead, try updating on local bind. It should fail exactly the same way, but in controlled environment. --- .../nsupdate.cmd | 6 +++--- .../runtest.sh | 9 +++++++-- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/Regression/bz700097-nsupdate-returns-success-when-target-zone-does-not/nsupdate.cmd b/Regression/bz700097-nsupdate-returns-success-when-target-zone-does-not/nsupdate.cmd index 0a7d9d2..c19783b 100644 --- a/Regression/bz700097-nsupdate-returns-success-when-target-zone-does-not/nsupdate.cmd +++ b/Regression/bz700097-nsupdate-returns-success-when-target-zone-does-not/nsupdate.cmd @@ -1,5 +1,5 @@ -zone bar. -update delete foo.bar. IN A +zone localhost. +update delete foo.localhost. IN A send -update add foo.bar. 1200 IN A 10.16.78.134 +update add foo.localhost. 1200 IN A 10.16.78.134 send diff --git a/Regression/bz700097-nsupdate-returns-success-when-target-zone-does-not/runtest.sh b/Regression/bz700097-nsupdate-returns-success-when-target-zone-does-not/runtest.sh index 2042b0f..a2959be 100755 --- a/Regression/bz700097-nsupdate-returns-success-when-target-zone-does-not/runtest.sh +++ b/Regression/bz700097-nsupdate-returns-success-when-target-zone-does-not/runtest.sh @@ -41,11 +41,16 @@ if rpm -q bind97 &> /dev/null; then else rlPhaseStartSetup rlAssertRpm bind-utils + rlServiceStart named rlPhaseEnd rlPhaseStartTest - rlRun "nsupdate -g nsupdate.cmd" 1,2 "nsupdate should fail" - rlRun "nsupdate nsupdate.cmd" 2 "nsupdate should fail with exitcode 2" + rlRun "nsupdate -g -l nsupdate.cmd" 1,2 "nsupdate should fail" + rlRun "nsupdate -l nsupdate.cmd" 2 "nsupdate should fail with exitcode 2" + rlPhaseEnd + + rlPhaseStartCleanup + rlServiceRestore named rlPhaseEnd fi rlJournalPrintText