diff --git a/test/integration/dns/thelinux.pro/dns.thelinux.pro.bat b/test/integration/dns/thelinux.pro/dns.thelinux.pro.bat new file mode 100644 index 0000000..1490450 --- /dev/null +++ b/test/integration/dns/thelinux.pro/dns.thelinux.pro.bat @@ -0,0 +1,22 @@ +#!/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}" +} + +# Only test at primary NS +@test "Test SOA Record @ns1: ${domain}" { + run _check_soa_record_at_ns1 + assert_output --partial "${serial}" +} diff --git a/test/integration/dns/thelinux.pro/ns1/dns.ns1.thelinux.pro.bat b/test/integration/dns/thelinux.pro/ns1/dns.ns1.thelinux.pro.bat new file mode 100644 index 0000000..0803cc6 --- /dev/null +++ b/test/integration/dns/thelinux.pro/ns1/dns.ns1.thelinux.pro.bat @@ -0,0 +1,12 @@ +#!/usr/bin/env bats + +load 'local-setup' +_local_setup + +load 'helper' + +@test "Test A Record: ${domain}" { + run _check_a_record + assert_output --partial "${ip}" +} + diff --git a/test/integration/dns/thelinux.pro/ns2/dns.ns2.thelinux.pro.bat b/test/integration/dns/thelinux.pro/ns2/dns.ns2.thelinux.pro.bat new file mode 100644 index 0000000..0803cc6 --- /dev/null +++ b/test/integration/dns/thelinux.pro/ns2/dns.ns2.thelinux.pro.bat @@ -0,0 +1,12 @@ +#!/usr/bin/env bats + +load 'local-setup' +_local_setup + +load 'helper' + +@test "Test A Record: ${domain}" { + run _check_a_record + assert_output --partial "${ip}" +} + diff --git a/test/integration/dns/thelinux.pro/www/dns.www.thelinux.pro.bat b/test/integration/dns/thelinux.pro/www/dns.www.thelinux.pro.bat new file mode 100644 index 0000000..0803cc6 --- /dev/null +++ b/test/integration/dns/thelinux.pro/www/dns.www.thelinux.pro.bat @@ -0,0 +1,12 @@ +#!/usr/bin/env bats + +load 'local-setup' +_local_setup + +load 'helper' + +@test "Test A Record: ${domain}" { + run _check_a_record + assert_output --partial "${ip}" +} +