update tests and try '--gather-test-outputs-in' for results output instead of redirection.

This commit is contained in:
Kameron Kenny 2024-12-20 09:38:46 -05:00
parent e2ecee732d
commit f78649d47e
1 changed files with 26 additions and 0 deletions

View File

@ -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}"
}