bind9/bin/tests/system/dnstap
Tom Krizek 0374c27fc5
Check for proper file size output in dnstap test
Previously, the first check silently failed, as 450 is apparently (in
the CI) the minimum output size for the dnstap output, rather than
470 which the test was expecting. Effectively, the check served as a 5
second sleep rather than waiting for the proper file size.

Additionally, check the expected file sizes and fail if expectations
aren't met.

(manually picked from commit 5f809e50b6)

On main, the minimum file size seems to 454 bytes, while on some
platforms in our CI setup for the 9.16 branch, it appears to be 450
instead.
2023-06-26 14:33:43 +02:00
..
ns1 Update the copyright information in all files in the repository 2022-01-11 12:22:09 +01:00
ns2 Update the copyright information in all files in the repository 2022-01-11 12:22:09 +01:00
ns3 Update the copyright information in all files in the repository 2022-01-11 12:22:09 +01:00
ns4 Update the copyright information in all files in the repository 2022-01-11 12:22:09 +01:00
bad-fstrm-reopen-interval.conf Update the copyright information in all files in the repository 2022-01-11 12:22:09 +01:00
bad-fstrm-set-buffer-hint-max.conf Update the copyright information in all files in the repository 2022-01-11 12:22:09 +01:00
bad-fstrm-set-buffer-hint-min.conf Update the copyright information in all files in the repository 2022-01-11 12:22:09 +01:00
bad-fstrm-set-flush-timeout-max.conf Update the copyright information in all files in the repository 2022-01-11 12:22:09 +01:00
bad-fstrm-set-flush-timeout-min.conf Update the copyright information in all files in the repository 2022-01-11 12:22:09 +01:00
bad-fstrm-set-input-queue-size-max.conf Update the copyright information in all files in the repository 2022-01-11 12:22:09 +01:00
bad-fstrm-set-input-queue-size-min.conf Update the copyright information in all files in the repository 2022-01-11 12:22:09 +01:00
bad-fstrm-set-input-queue-size-po2.conf Update the copyright information in all files in the repository 2022-01-11 12:22:09 +01:00
bad-fstrm-set-output-notify-threshold.conf Update the copyright information in all files in the repository 2022-01-11 12:22:09 +01:00
bad-fstrm-set-output-queue-size-max.conf Update the copyright information in all files in the repository 2022-01-11 12:22:09 +01:00
bad-fstrm-set-output-queue-size-min.conf Update the copyright information in all files in the repository 2022-01-11 12:22:09 +01:00
bad-fstrm-set-reopen-interval-max.conf Update the copyright information in all files in the repository 2022-01-11 12:22:09 +01:00
bad-fstrm-set-reopen-interval-min.conf Update the copyright information in all files in the repository 2022-01-11 12:22:09 +01:00
bad-missing-dnstap-output-view.conf Update the copyright information in all files in the repository 2022-01-11 12:22:09 +01:00
bad-missing-dnstap-output.conf Update the copyright information in all files in the repository 2022-01-11 12:22:09 +01:00
bad-size-version.conf Update the copyright information in all files in the repository 2022-01-11 12:22:09 +01:00
clean.sh Update the copyright information in all files in the repository 2022-01-11 12:22:09 +01:00
good-dnstap-in-options.conf Update the copyright information in all files in the repository 2022-01-11 12:22:09 +01:00
good-dnstap-in-view.conf Update the copyright information in all files in the repository 2022-01-11 12:22:09 +01:00
good-fstrm-reopen-interval.conf Update the copyright information in all files in the repository 2022-01-11 12:22:09 +01:00
good-fstrm-set-buffer-hint.conf Update the copyright information in all files in the repository 2022-01-11 12:22:09 +01:00
good-fstrm-set-flush-timeout.conf Update the copyright information in all files in the repository 2022-01-11 12:22:09 +01:00
good-fstrm-set-input-queue-size.conf Update the copyright information in all files in the repository 2022-01-11 12:22:09 +01:00
good-fstrm-set-output-notify-threshold.conf Update the copyright information in all files in the repository 2022-01-11 12:22:09 +01:00
good-fstrm-set-output-queue-model-mpsc.conf Update the copyright information in all files in the repository 2022-01-11 12:22:09 +01:00
good-fstrm-set-output-queue-model-spsc.conf Update the copyright information in all files in the repository 2022-01-11 12:22:09 +01:00
good-fstrm-set-output-queue-size.conf Update the copyright information in all files in the repository 2022-01-11 12:22:09 +01:00
good-fstrm-set-reopen-interval.conf Update the copyright information in all files in the repository 2022-01-11 12:22:09 +01:00
good-size-unlimited.conf Update the copyright information in all files in the repository 2022-01-11 12:22:09 +01:00
good-size-version.conf Update the copyright information in all files in the repository 2022-01-11 12:22:09 +01:00
large-answer.fstrm dnstap-read: clear buffer before expanding it 2019-06-28 12:43:51 +02:00
prereq.sh Add dnstap prerequisite for dnstap system test 2022-12-02 11:09:28 +01:00
README Update the copyright information in all files in the repository 2022-01-11 12:22:09 +01:00
setup.sh Update the copyright information in all files in the repository 2022-01-11 12:22:09 +01:00
tests.sh Check for proper file size output in dnstap test 2023-06-26 14:33:43 +02:00
ydump.py Auto-format Python files with black 2022-06-08 13:34:19 +02:00

Copyright (C) Internet Systems Consortium, Inc. ("ISC")

SPDX-License-Identifier: MPL-2.0

This Source Code Form is subject to the terms of the Mozilla Public
License, v. 2.0.  If a copy of the MPL was not distributed with this
file, you can obtain one at https://mozilla.org/MPL/2.0/.

See the COPYRIGHT file distributed with this work for additional
information regarding copyright ownership.

The "large-answer.fstrm" file was generated by configuring a named instance
compiled with --enable-dnstap and --enable-fixed-rrset with the following
directives:

    minimal-responses yes;
    rrset-order { order fixed; };
    dnstap { auth response; };
    dnstap-identity none;
    dnstap-output file "large-answer.fstrm";

The captured RRset from the "example." zone was created using:

    $GENERATE 1-48 @ IN A 127.0.0.$

A server instance set up this way was then queried non-recursively (RD=0) for
"example/A".