From 546fdb9c2084c8dd244a53193a8670e796ca0c4c Mon Sep 17 00:00:00 2001 From: Matthijs Mekking Date: Wed, 19 Mar 2025 16:32:12 +0100 Subject: [PATCH] Remove kasp shell script remainders Now that all tests have been converted, we can remove 'kasp/tests.sh' and 'kasp/tests_sh_kasp.py'. (cherry picked from commit 6994a604a7943cccfb60d62a0a38ce8fa8f0e8ed) --- bin/tests/system/kasp/tests.sh | 89 -------------------------- bin/tests/system/kasp/tests_sh_kasp.py | 65 ------------------- 2 files changed, 154 deletions(-) delete mode 100644 bin/tests/system/kasp/tests.sh delete mode 100644 bin/tests/system/kasp/tests_sh_kasp.py diff --git a/bin/tests/system/kasp/tests.sh b/bin/tests/system/kasp/tests.sh deleted file mode 100644 index 2114fd08cf..0000000000 --- a/bin/tests/system/kasp/tests.sh +++ /dev/null @@ -1,89 +0,0 @@ -#!/bin/sh - -# 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. - -set -e - -# shellcheck source=conf.sh -. ../conf.sh -# shellcheck source=kasp.sh -. ../kasp.sh - -start_time="$(TZ=UTC date +%s)" -status=0 -n=0 - -############################################################################### -# Utilities # -############################################################################### - -# Call dig with default options. -dig_with_opts() { - - if [ -n "$TSIG" ]; then - "$DIG" +tcp +noadd +nosea +nostat +nocmd +dnssec -p "$PORT" -y "$TSIG" "$@" - else - "$DIG" +tcp +noadd +nosea +nostat +nocmd +dnssec -p "$PORT" "$@" - fi -} - -# RNDC. -rndccmd() { - "$RNDC" -c ../_common/rndc.conf -p "$CONTROLPORT" -s "$@" -} - -# Log error and increment failure rate. -log_error() { - echo_i "error: $1" - ret=$((ret + 1)) -} - -# Default next key event threshold. May be extended by wait periods. -next_key_event_threshold=100 - -############################################################################### -# Tests # -############################################################################### - -# -# named -# - -# The NSEC record at the apex of the zone and its RRSIG records are -# added as part of the last step in signing a zone. We wait for the -# NSEC records to appear before proceeding with a counter to prevent -# infinite loops if there is an error. -n=$((n + 1)) -echo_i "waiting for kasp signing changes to take effect ($n)" -ret=0 - -_wait_for_done_apexnsec() { - while read -r zone; do - dig_with_opts "$zone" @10.53.0.3 nsec >"dig.out.ns3.test$n.$zone" || return 1 - grep "NS SOA" "dig.out.ns3.test$n.$zone" >/dev/null || return 1 - grep "$zone\..*IN.*RRSIG" "dig.out.ns3.test$n.$zone" >/dev/null || return 1 - done "dig.out.ns6.test$n.$zone" || return 1 - grep "NS SOA" "dig.out.ns6.test$n.$zone" >/dev/null || return 1 - grep "$zone\..*IN.*RRSIG" "dig.out.ns6.test$n.$zone" >/dev/null || return 1 - done