summaryrefslogtreecommitdiffstats
path: root/tests (follow)
Commit message (Collapse)AuthorAgeFilesLines
* .gitlab-ci: use Arch for lintingOto Šťáva2024-06-041-2/+4
| | | | This allows us to use the newest versions of linter tools.
* Merge 'origin/master' into 6.0 - last merge before renameOto Šťáva2024-05-147-117/+18
|\ | | | | | | | | This is the last commit in `6.0` before it is shifted into `master`, with 5.x support being moved to `master-5`.
| * tests/pytests/utils: handle SSLEOFErrorOto Šťáva2024-05-131-1/+1
| | | | | | | | | | | | | | It used to just throw BrokenPipeError, but newer versions of Python have a separate exception for when the connection is closed in violation of TLS rules, which Knot Resolver does deliberately so as to not waste time on properly closing TLS connections with misbehaving peers.
| * test/pytests/test_tls: remove resumption testOto Šťáva2024-05-131-47/+0
| | | | | | | | | | | | | | | | Knot Resolver disables resumption on TLS <=1.2 as it is vulnerable to replay attacks, so the test makes no sense, as that one was specifically disabled for TLS >=1.3 (Python had no support for it at the time). We should make a new test for this with TLS 1.3 support.
| * tests/pytests: remove deprecated callsOto Šťáva2024-05-133-13/+8
| |
| * .gitlab-ci, tests, modules: adapt to knot-resolver-ci repoOto Šťáva2024-05-131-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is the bulk of the CI/CD overhaul. Most of the changes are to the `.gitlab-ci.yml` file, where the build images used are replaced with the ones provided by the `knot-resolver-ci` repository. Some cleanups have also been done. The commit also adds unit testing with Knot Resolver built against multiple versions of Knot DNS, including the `master` branch. The `master` branch image is built nightly in the `knot-resolver-ci` repo. We have also removed `scan-build`, as its tests change frequently, with lots of false-positives, which are very different on each version, and there is no good way to ignore some detections. Clang-Tidy covers some of the same issues, and we also have Coverity Scan. Should be more than enough. A few config tests were also excluded in the AddressSanitizer tests, because they produce false-positives.
| * tests/dnstap: Go improvementsOto Šťáva2024-05-133-55/+8
| | | | | | | | | | | | - Do `go mod tidy` before running the test, even in CI - Add `go.sum` to `.gitignore` - Compatibility with Go 1.15 (Debian 11)
* | Merge remote-tracking branch 'origin/master' into 6.0Oto Šťáva2024-05-021-3/+4
|\|
| * modules/*/meson.build: add missing dependenciesOto Šťáva2024-05-021-3/+4
| |
* | Merge remote-tracking branch 'origin/master' into 6.0Oto Šťáva2024-03-221-1/+1
|\|
| * tests/integration/meson.build: refer to augeas as 'python-augeas'Oto Šťáva2024-03-051-1/+1
| | | | | | | | | | This is so that it is more obvious that the PyPI package actually has the `python-` prefix.
* | doc: various fixesOto Šťáva2024-03-151-6/+6
| | | | | | | | Fix cross-references, heading levels, etc.
* | Merge branch 'master' into 6.0Vladimír Čunát2023-07-112-2/+2
|\|
| * treewide: fix -Wstrict-prototypesVladimír Čunát2023-06-082-2/+2
| |
* | Create branch 6.0 by merging master and managerVladimír Čunát2023-06-093-591/+0
|\ \ | |/ |/|
| * Merge branch 'master' into managerVasek Sraier2023-01-102-2/+2
| |\
| * | tests: remove tests/packagingJakub Ružička2022-09-273-591/+0
| | | | | | | | | | | | | | | | | | Cleanup before introduction of new packaging tests. See: https://gitlab.nic.cz/knot/knot-resolver/-/issues/612
* | | tests/dnstap: let Go handle its transitive dependenciesOto Šťáva2023-06-072-17/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Dependabot reported that we have some vulnerable dependencies. The problem is that the ones it wants to bump to do not support older Go versions, which we need to use due to some distros not having the most recent Go packages available. The `go.sum` file contains the outdated ones (because I tried with an older Go), but as far as I can tell, from Go docs and other places, it is actually not a lockfile, so newer Go should update the packages regardless of what is in `go.sum`.
* | | tests/pytests: adapt to new pylintOto Šťáva2023-06-072-2/+1
| | | | | | | | | | | | | | | | | | New version of pylint removed the disabled `bad-continuation` check. It also added a parens check that we were violating in `test_random_close.py`, which is now fixed as well.
* | | tests/dnstap: fix for Go 1.19 (and possibly others)Oto Šťáva2023-06-065-59/+77
| | |
* | | tests/integration/deckard: updateVladimír Čunát2023-04-031-0/+0
| | | | | | | | | | | | Adds just https://gitlab.nic.cz/knot/deckard/-/merge_requests/220
* | | tests/pytests: quality-of-life improvements and notesOto Šťáva2023-02-012-2/+25
| | | | | | | | | | | | | | | | | | Added the option to run `kresd` inside `pytests` under `valgrind` and `rr`, which can help with debugging. Also added a clarifying note that I personally would have liked to have while exploring this.
* | | tests/pytests: adapt to stricter handling of trailing bytesVladimír Čunát2023-01-261-22/+10
| | | | | | | | | | | | Since commit a0cbbde1 we don't ignore trailing bytes in queries.
* | | tests/integration/deckard: update to version with --forkedOto Šťáva2023-01-261-0/+0
| |/ |/|
* | Copyright notices: remove years and replace e-mailOto Šťáva2022-12-142-2/+2
|/
* tests/config: skip `freebind` sub-test on macOSVladimír Čunát2022-08-241-0/+3
| | | | | That option isn't supported there, so the test wouldn't work. Now the config tests work for me on x86 macOS.
* daemon/http: improve URI checksOto Šťáva2022-06-171-0/+51
| | | | | | | The `check_uri()` function now only checks that the endpoint is either `/doh` or `/dns-query`. Parameter checks were moved into `process_uri_path()` so that the check only takes place for GET requests. POST requests now do not care about parameters at all.
* tests/config: improve difference prints of tablesVladimír Čunát2022-06-091-0/+0
|
* tests/packaging: print build_log of failed commandsOto Šťáva2022-06-061-6/+24
|
* meson nit: deal with warning about future of run_commandVladimír Čunát2022-06-011-4/+4
| | | | | | | | | | WARNING: You should add the boolean check kwarg to the run_command call. It currently defaults to false, but it will default to true in future releases of meson. See also: https://github.com/mesonbuild/meson/issues/9300 In almost all cases we already check the return code explicitly and throw a more descriptive message than what would be the default.
* tests/config/tapered: update for difference printsVladimír Čunát2022-05-201-0/+0
|
* daemon/http: move status sends outside nghttp2 callbacksOto Šťáva2022-05-201-1/+1
| | | | | The nghttp2 documentation states that we must not send data from inside of its callbacks. It may result in crashes.
* daemon/http: return 400 on failed packet_parse + improved stream handlingOto Šťáva2022-05-201-84/+87
|
* lib/dnssec: replace kr_nsec_existence_denial()Vladimír Čunát2022-05-181-0/+0
| | | | | | | | | The NSEC validation code has been written very mechanically according to RFC 4033..4035, but those explain wildcard-related topics in a way that's hard to understand right. So here I rewrite it with a different philosophy, so it should be easier to understand, a bit faster, and less buggy and bug-prone.
* tests/dnstap: add missing protobuf dependencyOto Šťáva2022-05-181-1/+1
|
* daemon: allow setting zero netmasks for net.proxy_allowed()Oto Šťáva2022-02-221-1/+2
|
* tests/config: net.proxy_allowed() supportTomas Krizek2022-02-221-0/+29
|
* tests/README: merge with docsTomas Krizek2022-01-131-33/+41
|
* meson: update dependencies for deckardTomas Krizek2022-01-131-1/+3
|
* tests: bring README up to dateTomas Krizek2022-01-131-13/+68
|
* meson: minor cleanupTomas Krizek2022-01-131-2/+2
|
* doh2 tests: check CORS headersVladimír Čunát2022-01-101-0/+2
| | | | | I didn't feel like adding it to every test, so I picked a mix. I confirmed this would fail before the parent commit.
* ede: add pytest coverageTomas Krizek2021-12-213-1/+28
|
* config.basic: test coverage for parse_rdata()Tomas Krizek2021-11-251-0/+10
|
* tests/config: increate http timeouts to 16sTomas Krizek2021-11-231-2/+2
| | | | | On some platforms in CI, even 8s doesn't seem sufficient enough to guarantee stability. Hopefully this improves the situation.
* spellingJosh Soref2021-11-199-15/+15
| | | | Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>
* contrib/mempattern: add mm_ctx_delete()Vladimír Čunát2021-11-031-1/+1
| | | | It was a bit weird that the API had mempool creation but no deletion.
* ci: fix pylint issuesTomas Krizek2021-10-273-6/+7
|
* build: fix when knot-dns headers are on non-standard locationVladimír Čunát2021-10-111-0/+2
|
* tests/pytests: configure pylint to ignore consider-using-withTomas Krizek2021-08-301-0/+1
|