From f78649d47e61d988b6bb25b1e7ac960e40dd7989 Mon Sep 17 00:00:00 2001 From: Kameron Kenny Date: Fri, 20 Dec 2024 09:38:46 -0500 Subject: [PATCH] update tests and try '--gather-test-outputs-in' for results output instead of redirection. --- .../dns/in.thelinuxpro.net/tests.bat | 26 +++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 test/integration/dns/in.thelinuxpro.net/tests.bat diff --git a/test/integration/dns/in.thelinuxpro.net/tests.bat b/test/integration/dns/in.thelinuxpro.net/tests.bat new file mode 100644 index 0000000..53b4976 --- /dev/null +++ b/test/integration/dns/in.thelinuxpro.net/tests.bat @@ -0,0 +1,26 @@ +#!/usr/bin/env bats + +load 'local-setup' +_local_setup + +load 'helper' + +@test "Test A Record: ${domain}" { + run _check_a_record + assert_output --partial "${ip}" +} + +@test "Test SOA Record: ${domain}" { + run _check_soa_record + assert_output --partial "${serial}" +} + +@test "Test SOA Record @ns1: ${domain}" { + run _check_soa_record_at_ns1 + assert_output --partial "${serial}" +} + +@test "Test SOA Record @ns2: ${domain}" { + run _check_soa_record_at_ns2 + assert_output --partial "${serial}" +}