Commit Graph

27610 Commits

Author SHA1 Message Date
Mark Andrews
48fedfce69 send over and undersized cookie
(cherry picked from commit 0207199bb8)
2019-02-06 13:13:11 +11:00
Mark Andrews
bb3a5986bb the condition test for checking the client cookie value was wrong; don't call process_opt multiple times
(cherry picked from commit d9c368eee0)
2019-02-06 13:13:11 +11:00
Michał Kępień
7b989a060d Merge branch '822-test-make-install-in-one-of-the-build-jobs-v9_12' into 'v9_12'
[v9_12] Test "make install" in one of the build jobs

See merge request isc-projects/bind9!1456
2019-02-05 15:37:31 -05:00
Michał Kępień
1f985580cc Test "make install" in one of the build jobs
Running "make install" in a separate job in the "test" phase of a CI
pipeline causes a lot of object files to be rebuilt due to the way
artifacts are passed between GitLab CI jobs (object files extracted from
the artifacts archive have older modification times than their
respective source files checked out using Git by the worker running the
"install" job).  Test "make install" in one of the build jobs instead,
in order to prevent object rebuilding.

Using 'after_script' for this purpose was not an option because its
failures are ignored.

Duplicating the build script in two places would be error-prone in the
long run and thus was rejected as a solution.  YAML anchors would also
not help in this case.

A "positive" test (`test -n "${RUN_MAKE_INSTALL}" && make install`)
would not work because:

  - it would cause the build script to fail for any job not supposed to
    run "make install",

  - appending `|| :` to the shell pipeline would prevent "make install"
    errors from causing a job failure.

Due to the above, a "negative" test is performed, so that:

  - jobs not supposed to run "make install" succeed immediately,

  - jobs supposed to run "make install" only succeed when "make install"
    succeeds.

(cherry picked from commit 2a231b6239)
2019-02-05 21:10:33 +01:00
Evan Hunt
7681057cd5 Merge branch 'each-win-tests-v9_12' into 'v9_12'
tests failing on windows due to false crash-on-shutdown reports

See merge request isc-projects/bind9!1447
2019-02-01 01:57:06 -05:00
Evan Hunt
cd0b538e90 disable the check for crash on shutdown when running under cygwin
(cherry picked from commit 449842e1ce)
2019-01-31 22:56:17 -08:00
Evan Hunt
94969bd1cf Merge branch '623-rpz-logging-to-include-qclass-and-qtype-v9_12' into 'v9_12'
Resolve "RPZ logging to include QCLASS and QTYPE"

See merge request isc-projects/bind9!1444
2019-01-31 21:03:13 -05:00
Mark Andrews
fb731a4d4e add CHANGES note
(cherry picked from commit 505a1ceda4)
2019-01-31 17:40:31 -08:00
Mark Andrews
5115d677de log RPZ type and class
(cherry picked from commit 28442f11f0)
2019-01-31 17:39:29 -08:00
Evan Hunt
767062da85 Merge branch 'each-silence-warning-v9_12' into 'v9_12'
silence a spurious dnssec-keygen warning in the dnssec system test

See merge request isc-projects/bind9!1442
2019-01-31 17:12:59 -05:00
Evan Hunt
47d1688078 silence a spurious dnssec-keygen warning in the dnssec system test
the occluded-key test creates both a KEY and a DNSKEY. the second
call to dnssec-keygen calls dns_dnssec_findmatchingkeys(), which causes
a spurious warning to be printed when it sees the type KEY record.
this should be fixed in dnssec.c, but the meantime this change silences
the warning by reversing the order in which the keys are created.

(cherry picked from commit 6661db9564)
2019-01-31 14:00:14 -08:00
Evan Hunt
0f1267822e Merge branch '101-dumpdb-stale-ttl-v9_12' into 'v9_12'
Resolve "[Support#12071] [RT#46548] Output stale/expired data with 'rndc dumpdb'"

See merge request isc-projects/bind9!1436
2019-01-31 13:45:59 -05:00
Matthijs Mekking
420c92f619 CHANGES 2019-01-31 10:30:12 -08:00
Matthijs Mekking
cf235900d7 Add tests for dumpdb stale ttl
This adds a test for rndc dumpdb to ensure the correct "stale
comment" is printed.  It also adds a test for non-stale data to
ensure no "stale comment" is printed for active RRsets.

In addition, the serve-stale tests are hardened with more accurate
grep calls.
2019-01-31 10:30:11 -08:00
Matthijs Mekking
68e3472a62 Print in dump-file stale ttl
This change makes rndc dumpdb correctly print the "; stale" line.
It also provides extra information on how long this data may still
be served to clients (in other words how long the stale RRset may
still be used).
2019-01-31 10:30:11 -08:00
Evan Hunt
071d322e6d Merge branch '850-catch-shutdown-aborts-v9_12' into 'v9_12'
detect crash on shutdown in stop.pl

See merge request isc-projects/bind9!1440
2019-01-31 12:54:15 -05:00
Evan Hunt
ab5feb57ef detect crash on shutdown in stop.pl
(cherry picked from commit 9bf37f4e48)
2019-01-31 09:42:49 -08:00
Evan Hunt
9f34e4e589 Merge branch '849-fix-tkey-leak-v9_12' into 'v9_12'
fix TKEY problems

See merge request isc-projects/bind9!1438
2019-01-31 12:40:18 -05:00
Evan Hunt
51589d0392 Change #4148 wasn't complete
- there was a memory leak when using negotiated TSIG keys.
- TKEY responses could only be signed when using a newly negotiated
  key; if an existent matching TSIG was found in in the keyring it
  would not be used.

(cherry picked from commit 73ba24fb36)
2019-01-31 09:28:51 -08:00
Evan Hunt
45500c0f91 Merge branch '821-matthijs-unsigned-gss-tsig-tkey-query-response-v9_12' into 'v9_12'
Resolve "Unsigned GSS-TSIG TKEY Query Response"

See merge request isc-projects/bind9!1430
2019-01-30 15:32:53 -05:00
Matthijs Mekking
c82eb3b3ca Update CHANGES
(cherry picked from commit f1c6e01a0f)
2019-01-30 12:11:29 -08:00
Matthijs Mekking
879fc0285e allow TSIG key to be added to message structure after parsing
up until now, message->tsigkey could only be set during parsing
of the request, but gss-tsig allows one to be created afterward.
2019-01-30 12:11:23 -08:00
Matthijs Mekking
b0b846a4bb Harden GSS-TSIG tests, verify signed TKEY response 2019-01-30 12:11:08 -08:00
Mark Andrews
421582dec4 Merge branch '848-keymgr-19-old-keys-failing-on-penguin-v9_12' into 'v9_12'
Resolve "keymgr 19-old-keys failing on penguin"

See merge request isc-projects/bind9!1425
2019-01-30 00:35:24 -05:00
Mark Andrews
8da77d9af3 add CHANGES
(cherry picked from commit b9d5a62bdc)
2019-01-30 16:00:52 +11:00
Mark Andrews
e5cbb2e03c add 300 seconds of fudge
(cherry picked from commit acf0292da4)
2019-01-30 16:00:17 +11:00
Mark Andrews
cb2d79b456 only use a single policy file when testing.
(cherry picked from commit 36ea9b8181)
2019-01-30 16:00:14 +11:00
Evan Hunt
5204f46f1e Merge branch '841-openssl-null-free' into 'v9_12'
Do not fail on NULL passed to OpenSSL_free

See merge request isc-projects/bind9!1422
2019-01-29 18:34:28 -05:00
Petr Menšík
a26673a088 Do not fail on NULL passed to OpenSSL_free
Some plugins might call it after deconstruction. Do not crash if there
is no reason for it.
2019-01-29 18:23:57 -05:00
Evan Hunt
eaa762e64c Merge branch '766-querytrace-doc-v9_12' into 'v9_12'
Resolve "--enable-querytrace has negative performance impact - update the documentation to say this"

See merge request isc-projects/bind9!1419
2019-01-29 17:25:00 -05:00
Evan Hunt
87b0098b4e added querytrace documentation in README
also rearranged things a little, adding a "dependencies" section

(cherry picked from commit 51048ca06e)
2019-01-29 14:24:11 -08:00
Michał Kępień
fed60762b2 Merge branch 'michal/add-fedora-29-to-ci-v9_12' into 'v9_12'
[v9_12] Add Fedora 29 to CI

See merge request isc-projects/bind9!1415
2019-01-29 07:53:17 -05:00
Michał Kępień
5598e75eff Add Fedora 29 to CI
Modify .gitlab-ci.yml so that every CI pipeline also builds and tests
BIND on Fedora 29.

(cherry picked from commit 38b6c5c444)
2019-01-29 13:32:23 +01:00
Evan Hunt
af210be820 Merge branch '259-named-args-v9_12' into 'v9_12'
add properly-formatted -D options to named.args files

See merge request isc-projects/bind9!1411
2019-01-29 00:40:28 -05:00
Evan Hunt
96bf857b65 also add -D options for transient named processes started in tests.sh
(cherry picked from commit dd45831acc)
2019-01-28 21:19:28 -08:00
Evan Hunt
e233f33fc3 add properly-formatted -D options to named.args files
this prevents servers that use arguments specified in named.args
from appearing different in 'ps' output from servers run with arguments
from start.pl

(cherry picked from commit 175d6e9bfb)
2019-01-28 21:19:25 -08:00
Evan Hunt
b3bdb23190 Merge branch 'each-fix-logfileconfig-v9_12' into 'v9_12'
reset SYSTEMTESTTOP when changing directories

See merge request isc-projects/bind9!1409
2019-01-29 00:06:32 -05:00
Evan Hunt
2a53564d08 reset SYSTEMTESTTOP when changing directories
(cherry picked from commit 70f36a25e4)
2019-01-28 20:40:48 -08:00
Evan Hunt
a2adf3ea69 Merge branch 'each-win32-tests-v9_12' into 'v9_12'
fix win32 tests (v9_12)

See merge request isc-projects/bind9!1399
2019-01-25 16:00:18 -05:00
Evan Hunt
29e89d08f7 fix rrl test
strip CR characters before using awk/sed
2019-01-25 11:24:11 -08:00
Evan Hunt
9d1b0f314d fix rpz test
- work around a CR newline problem
- use rndc to stop servers
2019-01-25 11:24:11 -08:00
Evan Hunt
b322cc74ea fix rpzrecurse test
use rndc to stop servers
2019-01-25 11:24:11 -08:00
Evan Hunt
e37a32276e fix dnssec test
- work around CR issues
- use UTC for time comparisons
- use $DIFF instead of cmp
2019-01-25 11:24:11 -08:00
Evan Hunt
7658ba4216 fix legacy test
use rndc rather than signals to stop the server
2019-01-25 11:24:11 -08:00
Evan Hunt
1e1f1d4ef7 fix fetchlimit test
use TCP for the test queries in between UDP bursts; this avoids
congestion issues that interfered with the test on windows
2019-01-25 11:24:11 -08:00
Evan Hunt
678c3211af fix sfcache test
use a lame server configuration to force SERVFAILs instead of killing ns2.
this prevents test failures that occurred due to a different behavior of
the netowrking stack in windows.
2019-01-25 11:24:10 -08:00
Evan Hunt
d04e771dcf fix nsupdate test
rndc_reload was failing on windows
2019-01-25 11:24:10 -08:00
Evan Hunt
b282b4dd5e fix rndc test
use regex instead of exact string matching to deal with CR at end of line
2019-01-25 11:24:10 -08:00
Evan Hunt
28f8899e21 fix statistics test
the active sockets test is supposed to be commented out on win32, but
only part of it was
2019-01-25 11:24:10 -08:00
Evan Hunt
0b0c110577 fix redirect test
strip CR characters before using sed
2019-01-25 11:24:10 -08:00