diff --git a/test/integration/dns/in.thelinuxpro.net/1.ntp/a.bat b/test/integration/dns/in.thelinuxpro.net/1.ntp/a.bat new file mode 100644 index 0000000..24c333d --- /dev/null +++ b/test/integration/dns/in.thelinuxpro.net/1.ntp/a.bat @@ -0,0 +1,12 @@ +#!/usr/bin/env bats + +load 'local-setup' +_local_setup + +load 'helper' + + +@test "Test A Record: ${domain}" { + run dig -t A ${domain} +noall +answer + assert_output --partial "${ip}" +} diff --git a/test/integration/dns/in.thelinuxpro.net/1.ntp/helper.bash b/test/integration/dns/in.thelinuxpro.net/1.ntp/helper.bash new file mode 100644 index 0000000..dd9d628 --- /dev/null +++ b/test/integration/dns/in.thelinuxpro.net/1.ntp/helper.bash @@ -0,0 +1,4 @@ +#!/usr/bin/env bash + +export domain="1.ntp.in.thelinuxpro.net" +export ip="10.200.53.251" diff --git a/test/integration/dns/in.thelinuxpro.net/1.ntp/local-setup.bash b/test/integration/dns/in.thelinuxpro.net/1.ntp/local-setup.bash new file mode 100644 index 0000000..cc35f5b --- /dev/null +++ b/test/integration/dns/in.thelinuxpro.net/1.ntp/local-setup.bash @@ -0,0 +1,10 @@ +#!/usr/bin/env bash + +_local_setup() { + DIR="$( cd "$( dirname "$BATS_TEST_FILENAME" )" >/dev/null 2>&1 && pwd)" + TEST_ROOT="$( cd "$( dirname "$DIR/../../../" )" >/dev/null 2>&1 && pwd)" + bats_load_library bats-support + bats_load_library bats-assert + source "$DIR/helper.bash" +} + diff --git a/test/integration/dns/in.thelinuxpro.net/2.ntp/a.bat b/test/integration/dns/in.thelinuxpro.net/2.ntp/a.bat new file mode 100644 index 0000000..24c333d --- /dev/null +++ b/test/integration/dns/in.thelinuxpro.net/2.ntp/a.bat @@ -0,0 +1,12 @@ +#!/usr/bin/env bats + +load 'local-setup' +_local_setup + +load 'helper' + + +@test "Test A Record: ${domain}" { + run dig -t A ${domain} +noall +answer + assert_output --partial "${ip}" +} diff --git a/test/integration/dns/in.thelinuxpro.net/2.ntp/helper.bash b/test/integration/dns/in.thelinuxpro.net/2.ntp/helper.bash new file mode 100644 index 0000000..914ade8 --- /dev/null +++ b/test/integration/dns/in.thelinuxpro.net/2.ntp/helper.bash @@ -0,0 +1,4 @@ +#!/usr/bin/env bash + +export domain="2.ntp.in.thelinuxpro.net" +export ip="10.200.53.252" diff --git a/test/integration/dns/in.thelinuxpro.net/2.ntp/local-setup.bash b/test/integration/dns/in.thelinuxpro.net/2.ntp/local-setup.bash new file mode 100644 index 0000000..cc35f5b --- /dev/null +++ b/test/integration/dns/in.thelinuxpro.net/2.ntp/local-setup.bash @@ -0,0 +1,10 @@ +#!/usr/bin/env bash + +_local_setup() { + DIR="$( cd "$( dirname "$BATS_TEST_FILENAME" )" >/dev/null 2>&1 && pwd)" + TEST_ROOT="$( cd "$( dirname "$DIR/../../../" )" >/dev/null 2>&1 && pwd)" + bats_load_library bats-support + bats_load_library bats-assert + source "$DIR/helper.bash" +} + diff --git a/test/integration/dns/in.thelinuxpro.net/a.bat b/test/integration/dns/in.thelinuxpro.net/a.bat new file mode 100644 index 0000000..24c333d --- /dev/null +++ b/test/integration/dns/in.thelinuxpro.net/a.bat @@ -0,0 +1,12 @@ +#!/usr/bin/env bats + +load 'local-setup' +_local_setup + +load 'helper' + + +@test "Test A Record: ${domain}" { + run dig -t A ${domain} +noall +answer + assert_output --partial "${ip}" +} diff --git a/test/integration/dns/in.thelinuxpro.net/blackbox-exporter/a.bat b/test/integration/dns/in.thelinuxpro.net/blackbox-exporter/a.bat new file mode 100644 index 0000000..24c333d --- /dev/null +++ b/test/integration/dns/in.thelinuxpro.net/blackbox-exporter/a.bat @@ -0,0 +1,12 @@ +#!/usr/bin/env bats + +load 'local-setup' +_local_setup + +load 'helper' + + +@test "Test A Record: ${domain}" { + run dig -t A ${domain} +noall +answer + assert_output --partial "${ip}" +} diff --git a/test/integration/dns/in.thelinuxpro.net/blackbox-exporter/helper.bash b/test/integration/dns/in.thelinuxpro.net/blackbox-exporter/helper.bash new file mode 100644 index 0000000..01766f6 --- /dev/null +++ b/test/integration/dns/in.thelinuxpro.net/blackbox-exporter/helper.bash @@ -0,0 +1,4 @@ +#!/usr/bin/env bash + +export domain="blackbox-exporter.in.thelinuxpro.net" +export ip="10.99.23.35" diff --git a/test/integration/dns/in.thelinuxpro.net/blackbox-exporter/local-setup.bash b/test/integration/dns/in.thelinuxpro.net/blackbox-exporter/local-setup.bash new file mode 100644 index 0000000..cc35f5b --- /dev/null +++ b/test/integration/dns/in.thelinuxpro.net/blackbox-exporter/local-setup.bash @@ -0,0 +1,10 @@ +#!/usr/bin/env bash + +_local_setup() { + DIR="$( cd "$( dirname "$BATS_TEST_FILENAME" )" >/dev/null 2>&1 && pwd)" + TEST_ROOT="$( cd "$( dirname "$DIR/../../../" )" >/dev/null 2>&1 && pwd)" + bats_load_library bats-support + bats_load_library bats-assert + source "$DIR/helper.bash" +} + diff --git a/test/integration/dns/in.thelinuxpro.net/dns01/a.bat b/test/integration/dns/in.thelinuxpro.net/dns01/a.bat new file mode 100644 index 0000000..24c333d --- /dev/null +++ b/test/integration/dns/in.thelinuxpro.net/dns01/a.bat @@ -0,0 +1,12 @@ +#!/usr/bin/env bats + +load 'local-setup' +_local_setup + +load 'helper' + + +@test "Test A Record: ${domain}" { + run dig -t A ${domain} +noall +answer + assert_output --partial "${ip}" +} diff --git a/test/integration/dns/in.thelinuxpro.net/dns01/helper.bash b/test/integration/dns/in.thelinuxpro.net/dns01/helper.bash new file mode 100644 index 0000000..56dcdbb --- /dev/null +++ b/test/integration/dns/in.thelinuxpro.net/dns01/helper.bash @@ -0,0 +1,4 @@ +#!/usr/bin/env bash + +export domain="dns01.in.thelinuxpro.net" +export ip="10.200.53.241" diff --git a/test/integration/dns/in.thelinuxpro.net/dns01/local-setup.bash b/test/integration/dns/in.thelinuxpro.net/dns01/local-setup.bash new file mode 100644 index 0000000..cc35f5b --- /dev/null +++ b/test/integration/dns/in.thelinuxpro.net/dns01/local-setup.bash @@ -0,0 +1,10 @@ +#!/usr/bin/env bash + +_local_setup() { + DIR="$( cd "$( dirname "$BATS_TEST_FILENAME" )" >/dev/null 2>&1 && pwd)" + TEST_ROOT="$( cd "$( dirname "$DIR/../../../" )" >/dev/null 2>&1 && pwd)" + bats_load_library bats-support + bats_load_library bats-assert + source "$DIR/helper.bash" +} + diff --git a/test/integration/dns/in.thelinuxpro.net/dns02/a.bat b/test/integration/dns/in.thelinuxpro.net/dns02/a.bat new file mode 100644 index 0000000..24c333d --- /dev/null +++ b/test/integration/dns/in.thelinuxpro.net/dns02/a.bat @@ -0,0 +1,12 @@ +#!/usr/bin/env bats + +load 'local-setup' +_local_setup + +load 'helper' + + +@test "Test A Record: ${domain}" { + run dig -t A ${domain} +noall +answer + assert_output --partial "${ip}" +} diff --git a/test/integration/dns/in.thelinuxpro.net/dns02/helper.bash b/test/integration/dns/in.thelinuxpro.net/dns02/helper.bash new file mode 100644 index 0000000..ae7476b --- /dev/null +++ b/test/integration/dns/in.thelinuxpro.net/dns02/helper.bash @@ -0,0 +1,4 @@ +#!/usr/bin/env bash + +export domain="dns02.in.thelinuxpro.net" +export ip="10.200.53.242" diff --git a/test/integration/dns/in.thelinuxpro.net/dns02/local-setup.bash b/test/integration/dns/in.thelinuxpro.net/dns02/local-setup.bash new file mode 100644 index 0000000..cc35f5b --- /dev/null +++ b/test/integration/dns/in.thelinuxpro.net/dns02/local-setup.bash @@ -0,0 +1,10 @@ +#!/usr/bin/env bash + +_local_setup() { + DIR="$( cd "$( dirname "$BATS_TEST_FILENAME" )" >/dev/null 2>&1 && pwd)" + TEST_ROOT="$( cd "$( dirname "$DIR/../../../" )" >/dev/null 2>&1 && pwd)" + bats_load_library bats-support + bats_load_library bats-assert + source "$DIR/helper.bash" +} + diff --git a/test/integration/dns/in.thelinuxpro.net/dns03/a.bat b/test/integration/dns/in.thelinuxpro.net/dns03/a.bat new file mode 100644 index 0000000..24c333d --- /dev/null +++ b/test/integration/dns/in.thelinuxpro.net/dns03/a.bat @@ -0,0 +1,12 @@ +#!/usr/bin/env bats + +load 'local-setup' +_local_setup + +load 'helper' + + +@test "Test A Record: ${domain}" { + run dig -t A ${domain} +noall +answer + assert_output --partial "${ip}" +} diff --git a/test/integration/dns/in.thelinuxpro.net/dns03/helper.bash b/test/integration/dns/in.thelinuxpro.net/dns03/helper.bash new file mode 100644 index 0000000..32e55da --- /dev/null +++ b/test/integration/dns/in.thelinuxpro.net/dns03/helper.bash @@ -0,0 +1,4 @@ +#!/usr/bin/env bash + +export domain="dns03.in.thelinuxpro.net" +export ip="10.200.53.243" diff --git a/test/integration/dns/in.thelinuxpro.net/dns03/local-setup.bash b/test/integration/dns/in.thelinuxpro.net/dns03/local-setup.bash new file mode 100644 index 0000000..cc35f5b --- /dev/null +++ b/test/integration/dns/in.thelinuxpro.net/dns03/local-setup.bash @@ -0,0 +1,10 @@ +#!/usr/bin/env bash + +_local_setup() { + DIR="$( cd "$( dirname "$BATS_TEST_FILENAME" )" >/dev/null 2>&1 && pwd)" + TEST_ROOT="$( cd "$( dirname "$DIR/../../../" )" >/dev/null 2>&1 && pwd)" + bats_load_library bats-support + bats_load_library bats-assert + source "$DIR/helper.bash" +} + diff --git a/test/integration/dns/in.thelinuxpro.net/docker-registry1/a.bat b/test/integration/dns/in.thelinuxpro.net/docker-registry1/a.bat new file mode 100644 index 0000000..24c333d --- /dev/null +++ b/test/integration/dns/in.thelinuxpro.net/docker-registry1/a.bat @@ -0,0 +1,12 @@ +#!/usr/bin/env bats + +load 'local-setup' +_local_setup + +load 'helper' + + +@test "Test A Record: ${domain}" { + run dig -t A ${domain} +noall +answer + assert_output --partial "${ip}" +} diff --git a/test/integration/dns/in.thelinuxpro.net/docker-registry1/helper.bash b/test/integration/dns/in.thelinuxpro.net/docker-registry1/helper.bash new file mode 100644 index 0000000..ab26e00 --- /dev/null +++ b/test/integration/dns/in.thelinuxpro.net/docker-registry1/helper.bash @@ -0,0 +1,4 @@ +#!/usr/bin/env bash + +export domain="docker-registry1.in.thelinuxpro.net" +export ip="10.99.23.21" diff --git a/test/integration/dns/in.thelinuxpro.net/docker-registry1/local-setup.bash b/test/integration/dns/in.thelinuxpro.net/docker-registry1/local-setup.bash new file mode 100644 index 0000000..cc35f5b --- /dev/null +++ b/test/integration/dns/in.thelinuxpro.net/docker-registry1/local-setup.bash @@ -0,0 +1,10 @@ +#!/usr/bin/env bash + +_local_setup() { + DIR="$( cd "$( dirname "$BATS_TEST_FILENAME" )" >/dev/null 2>&1 && pwd)" + TEST_ROOT="$( cd "$( dirname "$DIR/../../../" )" >/dev/null 2>&1 && pwd)" + bats_load_library bats-support + bats_load_library bats-assert + source "$DIR/helper.bash" +} + diff --git a/test/integration/dns/in.thelinuxpro.net/git-mysql/a.bat b/test/integration/dns/in.thelinuxpro.net/git-mysql/a.bat new file mode 100644 index 0000000..24c333d --- /dev/null +++ b/test/integration/dns/in.thelinuxpro.net/git-mysql/a.bat @@ -0,0 +1,12 @@ +#!/usr/bin/env bats + +load 'local-setup' +_local_setup + +load 'helper' + + +@test "Test A Record: ${domain}" { + run dig -t A ${domain} +noall +answer + assert_output --partial "${ip}" +} diff --git a/test/integration/dns/in.thelinuxpro.net/git-mysql/helper.bash b/test/integration/dns/in.thelinuxpro.net/git-mysql/helper.bash new file mode 100644 index 0000000..cdae341 --- /dev/null +++ b/test/integration/dns/in.thelinuxpro.net/git-mysql/helper.bash @@ -0,0 +1,4 @@ +#!/usr/bin/env bash + +export domain="git-mysql.in.thelinuxpro.net" +export ip="10.99.23.13" diff --git a/test/integration/dns/in.thelinuxpro.net/git-mysql/local-setup.bash b/test/integration/dns/in.thelinuxpro.net/git-mysql/local-setup.bash new file mode 100644 index 0000000..cc35f5b --- /dev/null +++ b/test/integration/dns/in.thelinuxpro.net/git-mysql/local-setup.bash @@ -0,0 +1,10 @@ +#!/usr/bin/env bash + +_local_setup() { + DIR="$( cd "$( dirname "$BATS_TEST_FILENAME" )" >/dev/null 2>&1 && pwd)" + TEST_ROOT="$( cd "$( dirname "$DIR/../../../" )" >/dev/null 2>&1 && pwd)" + bats_load_library bats-support + bats_load_library bats-assert + source "$DIR/helper.bash" +} + diff --git a/test/integration/dns/in.thelinuxpro.net/git/a.bat b/test/integration/dns/in.thelinuxpro.net/git/a.bat new file mode 100644 index 0000000..24c333d --- /dev/null +++ b/test/integration/dns/in.thelinuxpro.net/git/a.bat @@ -0,0 +1,12 @@ +#!/usr/bin/env bats + +load 'local-setup' +_local_setup + +load 'helper' + + +@test "Test A Record: ${domain}" { + run dig -t A ${domain} +noall +answer + assert_output --partial "${ip}" +} diff --git a/test/integration/dns/in.thelinuxpro.net/git/helper.bash b/test/integration/dns/in.thelinuxpro.net/git/helper.bash new file mode 100644 index 0000000..b97eec5 --- /dev/null +++ b/test/integration/dns/in.thelinuxpro.net/git/helper.bash @@ -0,0 +1,4 @@ +#!/usr/bin/env bash + +export domain="git.in.thelinuxpro.net" +export ip="10.99.23.12" diff --git a/test/integration/dns/in.thelinuxpro.net/git/local-setup.bash b/test/integration/dns/in.thelinuxpro.net/git/local-setup.bash new file mode 100644 index 0000000..cc35f5b --- /dev/null +++ b/test/integration/dns/in.thelinuxpro.net/git/local-setup.bash @@ -0,0 +1,10 @@ +#!/usr/bin/env bash + +_local_setup() { + DIR="$( cd "$( dirname "$BATS_TEST_FILENAME" )" >/dev/null 2>&1 && pwd)" + TEST_ROOT="$( cd "$( dirname "$DIR/../../../" )" >/dev/null 2>&1 && pwd)" + bats_load_library bats-support + bats_load_library bats-assert + source "$DIR/helper.bash" +} + diff --git a/test/integration/dns/in.thelinuxpro.net/grafana/a.bat b/test/integration/dns/in.thelinuxpro.net/grafana/a.bat new file mode 100644 index 0000000..24c333d --- /dev/null +++ b/test/integration/dns/in.thelinuxpro.net/grafana/a.bat @@ -0,0 +1,12 @@ +#!/usr/bin/env bats + +load 'local-setup' +_local_setup + +load 'helper' + + +@test "Test A Record: ${domain}" { + run dig -t A ${domain} +noall +answer + assert_output --partial "${ip}" +} diff --git a/test/integration/dns/in.thelinuxpro.net/grafana/helper.bash b/test/integration/dns/in.thelinuxpro.net/grafana/helper.bash new file mode 100644 index 0000000..b875cb6 --- /dev/null +++ b/test/integration/dns/in.thelinuxpro.net/grafana/helper.bash @@ -0,0 +1,4 @@ +#!/usr/bin/env bash + +export domain="grafana.in.thelinuxpro.net" +export ip="10.99.23.31" diff --git a/test/integration/dns/in.thelinuxpro.net/grafana/local-setup.bash b/test/integration/dns/in.thelinuxpro.net/grafana/local-setup.bash new file mode 100644 index 0000000..cc35f5b --- /dev/null +++ b/test/integration/dns/in.thelinuxpro.net/grafana/local-setup.bash @@ -0,0 +1,10 @@ +#!/usr/bin/env bash + +_local_setup() { + DIR="$( cd "$( dirname "$BATS_TEST_FILENAME" )" >/dev/null 2>&1 && pwd)" + TEST_ROOT="$( cd "$( dirname "$DIR/../../../" )" >/dev/null 2>&1 && pwd)" + bats_load_library bats-support + bats_load_library bats-assert + source "$DIR/helper.bash" +} + diff --git a/test/integration/dns/in.thelinuxpro.net/helper.bash b/test/integration/dns/in.thelinuxpro.net/helper.bash new file mode 100644 index 0000000..57e0df7 --- /dev/null +++ b/test/integration/dns/in.thelinuxpro.net/helper.bash @@ -0,0 +1,5 @@ +#!/usr/bin/env bash + +export domain="in.thelinuxpro.net" +export ip="127.0.0.1" +export serial="24121901" diff --git a/test/integration/dns/in.thelinuxpro.net/influxdb/a.bat b/test/integration/dns/in.thelinuxpro.net/influxdb/a.bat new file mode 100644 index 0000000..24c333d --- /dev/null +++ b/test/integration/dns/in.thelinuxpro.net/influxdb/a.bat @@ -0,0 +1,12 @@ +#!/usr/bin/env bats + +load 'local-setup' +_local_setup + +load 'helper' + + +@test "Test A Record: ${domain}" { + run dig -t A ${domain} +noall +answer + assert_output --partial "${ip}" +} diff --git a/test/integration/dns/in.thelinuxpro.net/influxdb/helper.bash b/test/integration/dns/in.thelinuxpro.net/influxdb/helper.bash new file mode 100644 index 0000000..4418040 --- /dev/null +++ b/test/integration/dns/in.thelinuxpro.net/influxdb/helper.bash @@ -0,0 +1,4 @@ +#!/usr/bin/env bash + +export domain="influxdb.in.thelinuxpro.net" +export ip="10.99.23.41" diff --git a/test/integration/dns/in.thelinuxpro.net/influxdb/local-setup.bash b/test/integration/dns/in.thelinuxpro.net/influxdb/local-setup.bash new file mode 100644 index 0000000..cc35f5b --- /dev/null +++ b/test/integration/dns/in.thelinuxpro.net/influxdb/local-setup.bash @@ -0,0 +1,10 @@ +#!/usr/bin/env bash + +_local_setup() { + DIR="$( cd "$( dirname "$BATS_TEST_FILENAME" )" >/dev/null 2>&1 && pwd)" + TEST_ROOT="$( cd "$( dirname "$DIR/../../../" )" >/dev/null 2>&1 && pwd)" + bats_load_library bats-support + bats_load_library bats-assert + source "$DIR/helper.bash" +} + diff --git a/test/integration/dns/in.thelinuxpro.net/jenkins/a.bat b/test/integration/dns/in.thelinuxpro.net/jenkins/a.bat new file mode 100644 index 0000000..24c333d --- /dev/null +++ b/test/integration/dns/in.thelinuxpro.net/jenkins/a.bat @@ -0,0 +1,12 @@ +#!/usr/bin/env bats + +load 'local-setup' +_local_setup + +load 'helper' + + +@test "Test A Record: ${domain}" { + run dig -t A ${domain} +noall +answer + assert_output --partial "${ip}" +} diff --git a/test/integration/dns/in.thelinuxpro.net/jenkins/helper.bash b/test/integration/dns/in.thelinuxpro.net/jenkins/helper.bash new file mode 100644 index 0000000..df9e09e --- /dev/null +++ b/test/integration/dns/in.thelinuxpro.net/jenkins/helper.bash @@ -0,0 +1,4 @@ +#!/usr/bin/env bash + +export domain="jenkins.in.thelinuxpro.net" +export ip="10.99.23.11" diff --git a/test/integration/dns/in.thelinuxpro.net/jenkins/local-setup.bash b/test/integration/dns/in.thelinuxpro.net/jenkins/local-setup.bash new file mode 100644 index 0000000..cc35f5b --- /dev/null +++ b/test/integration/dns/in.thelinuxpro.net/jenkins/local-setup.bash @@ -0,0 +1,10 @@ +#!/usr/bin/env bash + +_local_setup() { + DIR="$( cd "$( dirname "$BATS_TEST_FILENAME" )" >/dev/null 2>&1 && pwd)" + TEST_ROOT="$( cd "$( dirname "$DIR/../../../" )" >/dev/null 2>&1 && pwd)" + bats_load_library bats-support + bats_load_library bats-assert + source "$DIR/helper.bash" +} + diff --git a/test/integration/dns/in.thelinuxpro.net/local-setup.bash b/test/integration/dns/in.thelinuxpro.net/local-setup.bash new file mode 100644 index 0000000..cc35f5b --- /dev/null +++ b/test/integration/dns/in.thelinuxpro.net/local-setup.bash @@ -0,0 +1,10 @@ +#!/usr/bin/env bash + +_local_setup() { + DIR="$( cd "$( dirname "$BATS_TEST_FILENAME" )" >/dev/null 2>&1 && pwd)" + TEST_ROOT="$( cd "$( dirname "$DIR/../../../" )" >/dev/null 2>&1 && pwd)" + bats_load_library bats-support + bats_load_library bats-assert + source "$DIR/helper.bash" +} + diff --git a/test/integration/dns/in.thelinuxpro.net/nagios/a.bat b/test/integration/dns/in.thelinuxpro.net/nagios/a.bat new file mode 100644 index 0000000..24c333d --- /dev/null +++ b/test/integration/dns/in.thelinuxpro.net/nagios/a.bat @@ -0,0 +1,12 @@ +#!/usr/bin/env bats + +load 'local-setup' +_local_setup + +load 'helper' + + +@test "Test A Record: ${domain}" { + run dig -t A ${domain} +noall +answer + assert_output --partial "${ip}" +} diff --git a/test/integration/dns/in.thelinuxpro.net/nagios/helper.bash b/test/integration/dns/in.thelinuxpro.net/nagios/helper.bash new file mode 100644 index 0000000..275fbc9 --- /dev/null +++ b/test/integration/dns/in.thelinuxpro.net/nagios/helper.bash @@ -0,0 +1,4 @@ +#!/usr/bin/env bash + +export domain="nagios.in.thelinuxpro.net" +export ip="10.99.23.36" diff --git a/test/integration/dns/in.thelinuxpro.net/nagios/local-setup.bash b/test/integration/dns/in.thelinuxpro.net/nagios/local-setup.bash new file mode 100644 index 0000000..cc35f5b --- /dev/null +++ b/test/integration/dns/in.thelinuxpro.net/nagios/local-setup.bash @@ -0,0 +1,10 @@ +#!/usr/bin/env bash + +_local_setup() { + DIR="$( cd "$( dirname "$BATS_TEST_FILENAME" )" >/dev/null 2>&1 && pwd)" + TEST_ROOT="$( cd "$( dirname "$DIR/../../../" )" >/dev/null 2>&1 && pwd)" + bats_load_library bats-support + bats_load_library bats-assert + source "$DIR/helper.bash" +} + diff --git a/test/integration/dns/in.thelinuxpro.net/ns1/a.bat b/test/integration/dns/in.thelinuxpro.net/ns1/a.bat new file mode 100644 index 0000000..24c333d --- /dev/null +++ b/test/integration/dns/in.thelinuxpro.net/ns1/a.bat @@ -0,0 +1,12 @@ +#!/usr/bin/env bats + +load 'local-setup' +_local_setup + +load 'helper' + + +@test "Test A Record: ${domain}" { + run dig -t A ${domain} +noall +answer + assert_output --partial "${ip}" +} diff --git a/test/integration/dns/in.thelinuxpro.net/ns1/helper.bash b/test/integration/dns/in.thelinuxpro.net/ns1/helper.bash new file mode 100644 index 0000000..b5fbb3d --- /dev/null +++ b/test/integration/dns/in.thelinuxpro.net/ns1/helper.bash @@ -0,0 +1,4 @@ +#!/usr/bin/env bash + +export domain="ns1.in.thelinuxpro.net" +export ip="10.99.153.241" diff --git a/test/integration/dns/in.thelinuxpro.net/ns1/local-setup.bash b/test/integration/dns/in.thelinuxpro.net/ns1/local-setup.bash new file mode 100644 index 0000000..cc35f5b --- /dev/null +++ b/test/integration/dns/in.thelinuxpro.net/ns1/local-setup.bash @@ -0,0 +1,10 @@ +#!/usr/bin/env bash + +_local_setup() { + DIR="$( cd "$( dirname "$BATS_TEST_FILENAME" )" >/dev/null 2>&1 && pwd)" + TEST_ROOT="$( cd "$( dirname "$DIR/../../../" )" >/dev/null 2>&1 && pwd)" + bats_load_library bats-support + bats_load_library bats-assert + source "$DIR/helper.bash" +} + diff --git a/test/integration/dns/in.thelinuxpro.net/ns2/a.bat b/test/integration/dns/in.thelinuxpro.net/ns2/a.bat new file mode 100644 index 0000000..24c333d --- /dev/null +++ b/test/integration/dns/in.thelinuxpro.net/ns2/a.bat @@ -0,0 +1,12 @@ +#!/usr/bin/env bats + +load 'local-setup' +_local_setup + +load 'helper' + + +@test "Test A Record: ${domain}" { + run dig -t A ${domain} +noall +answer + assert_output --partial "${ip}" +} diff --git a/test/integration/dns/in.thelinuxpro.net/ns2/helper.bash b/test/integration/dns/in.thelinuxpro.net/ns2/helper.bash new file mode 100644 index 0000000..7e8fb6a --- /dev/null +++ b/test/integration/dns/in.thelinuxpro.net/ns2/helper.bash @@ -0,0 +1,4 @@ +#!/usr/bin/env bash + +export domain="ns2.in.thelinuxpro.net" +export ip="10.99.153.242" diff --git a/test/integration/dns/in.thelinuxpro.net/ns2/local-setup.bash b/test/integration/dns/in.thelinuxpro.net/ns2/local-setup.bash new file mode 100644 index 0000000..cc35f5b --- /dev/null +++ b/test/integration/dns/in.thelinuxpro.net/ns2/local-setup.bash @@ -0,0 +1,10 @@ +#!/usr/bin/env bash + +_local_setup() { + DIR="$( cd "$( dirname "$BATS_TEST_FILENAME" )" >/dev/null 2>&1 && pwd)" + TEST_ROOT="$( cd "$( dirname "$DIR/../../../" )" >/dev/null 2>&1 && pwd)" + bats_load_library bats-support + bats_load_library bats-assert + source "$DIR/helper.bash" +} + diff --git a/test/integration/dns/in.thelinuxpro.net/pi401/a.bat b/test/integration/dns/in.thelinuxpro.net/pi401/a.bat new file mode 100644 index 0000000..24c333d --- /dev/null +++ b/test/integration/dns/in.thelinuxpro.net/pi401/a.bat @@ -0,0 +1,12 @@ +#!/usr/bin/env bats + +load 'local-setup' +_local_setup + +load 'helper' + + +@test "Test A Record: ${domain}" { + run dig -t A ${domain} +noall +answer + assert_output --partial "${ip}" +} diff --git a/test/integration/dns/in.thelinuxpro.net/pi401/helper.bash b/test/integration/dns/in.thelinuxpro.net/pi401/helper.bash new file mode 100644 index 0000000..7943a57 --- /dev/null +++ b/test/integration/dns/in.thelinuxpro.net/pi401/helper.bash @@ -0,0 +1,4 @@ +#!/usr/bin/env bash + +export domain="pi401.in.thelinuxpro.net" +export ip="10.99.22.61" diff --git a/test/integration/dns/in.thelinuxpro.net/pi401/local-setup.bash b/test/integration/dns/in.thelinuxpro.net/pi401/local-setup.bash new file mode 100644 index 0000000..cc35f5b --- /dev/null +++ b/test/integration/dns/in.thelinuxpro.net/pi401/local-setup.bash @@ -0,0 +1,10 @@ +#!/usr/bin/env bash + +_local_setup() { + DIR="$( cd "$( dirname "$BATS_TEST_FILENAME" )" >/dev/null 2>&1 && pwd)" + TEST_ROOT="$( cd "$( dirname "$DIR/../../../" )" >/dev/null 2>&1 && pwd)" + bats_load_library bats-support + bats_load_library bats-assert + source "$DIR/helper.bash" +} + diff --git a/test/integration/dns/in.thelinuxpro.net/pi501/a.bat b/test/integration/dns/in.thelinuxpro.net/pi501/a.bat new file mode 100644 index 0000000..24c333d --- /dev/null +++ b/test/integration/dns/in.thelinuxpro.net/pi501/a.bat @@ -0,0 +1,12 @@ +#!/usr/bin/env bats + +load 'local-setup' +_local_setup + +load 'helper' + + +@test "Test A Record: ${domain}" { + run dig -t A ${domain} +noall +answer + assert_output --partial "${ip}" +} diff --git a/test/integration/dns/in.thelinuxpro.net/pi501/helper.bash b/test/integration/dns/in.thelinuxpro.net/pi501/helper.bash new file mode 100644 index 0000000..1b056ba --- /dev/null +++ b/test/integration/dns/in.thelinuxpro.net/pi501/helper.bash @@ -0,0 +1,4 @@ +#!/usr/bin/env bash + +export domain="pi501.in.thelinuxpro.net" +export ip="10.99.22.51" diff --git a/test/integration/dns/in.thelinuxpro.net/pi501/local-setup.bash b/test/integration/dns/in.thelinuxpro.net/pi501/local-setup.bash new file mode 100644 index 0000000..cc35f5b --- /dev/null +++ b/test/integration/dns/in.thelinuxpro.net/pi501/local-setup.bash @@ -0,0 +1,10 @@ +#!/usr/bin/env bash + +_local_setup() { + DIR="$( cd "$( dirname "$BATS_TEST_FILENAME" )" >/dev/null 2>&1 && pwd)" + TEST_ROOT="$( cd "$( dirname "$DIR/../../../" )" >/dev/null 2>&1 && pwd)" + bats_load_library bats-support + bats_load_library bats-assert + source "$DIR/helper.bash" +} + diff --git a/test/integration/dns/in.thelinuxpro.net/pi502/a.bat b/test/integration/dns/in.thelinuxpro.net/pi502/a.bat new file mode 100644 index 0000000..24c333d --- /dev/null +++ b/test/integration/dns/in.thelinuxpro.net/pi502/a.bat @@ -0,0 +1,12 @@ +#!/usr/bin/env bats + +load 'local-setup' +_local_setup + +load 'helper' + + +@test "Test A Record: ${domain}" { + run dig -t A ${domain} +noall +answer + assert_output --partial "${ip}" +} diff --git a/test/integration/dns/in.thelinuxpro.net/pi502/helper.bash b/test/integration/dns/in.thelinuxpro.net/pi502/helper.bash new file mode 100644 index 0000000..0d1364b --- /dev/null +++ b/test/integration/dns/in.thelinuxpro.net/pi502/helper.bash @@ -0,0 +1,4 @@ +#!/usr/bin/env bash + +export domain="pi502.in.thelinuxpro.net" +export ip="10.99.22.52" diff --git a/test/integration/dns/in.thelinuxpro.net/pi502/local-setup.bash b/test/integration/dns/in.thelinuxpro.net/pi502/local-setup.bash new file mode 100644 index 0000000..cc35f5b --- /dev/null +++ b/test/integration/dns/in.thelinuxpro.net/pi502/local-setup.bash @@ -0,0 +1,10 @@ +#!/usr/bin/env bash + +_local_setup() { + DIR="$( cd "$( dirname "$BATS_TEST_FILENAME" )" >/dev/null 2>&1 && pwd)" + TEST_ROOT="$( cd "$( dirname "$DIR/../../../" )" >/dev/null 2>&1 && pwd)" + bats_load_library bats-support + bats_load_library bats-assert + source "$DIR/helper.bash" +} + diff --git a/test/integration/dns/in.thelinuxpro.net/pi503/a.bat b/test/integration/dns/in.thelinuxpro.net/pi503/a.bat new file mode 100644 index 0000000..24c333d --- /dev/null +++ b/test/integration/dns/in.thelinuxpro.net/pi503/a.bat @@ -0,0 +1,12 @@ +#!/usr/bin/env bats + +load 'local-setup' +_local_setup + +load 'helper' + + +@test "Test A Record: ${domain}" { + run dig -t A ${domain} +noall +answer + assert_output --partial "${ip}" +} diff --git a/test/integration/dns/in.thelinuxpro.net/pi503/helper.bash b/test/integration/dns/in.thelinuxpro.net/pi503/helper.bash new file mode 100644 index 0000000..101ae3a --- /dev/null +++ b/test/integration/dns/in.thelinuxpro.net/pi503/helper.bash @@ -0,0 +1,4 @@ +#!/usr/bin/env bash + +export domain="pi503.in.thelinuxpro.net" +export ip="10.99.22.53" diff --git a/test/integration/dns/in.thelinuxpro.net/pi503/local-setup.bash b/test/integration/dns/in.thelinuxpro.net/pi503/local-setup.bash new file mode 100644 index 0000000..cc35f5b --- /dev/null +++ b/test/integration/dns/in.thelinuxpro.net/pi503/local-setup.bash @@ -0,0 +1,10 @@ +#!/usr/bin/env bash + +_local_setup() { + DIR="$( cd "$( dirname "$BATS_TEST_FILENAME" )" >/dev/null 2>&1 && pwd)" + TEST_ROOT="$( cd "$( dirname "$DIR/../../../" )" >/dev/null 2>&1 && pwd)" + bats_load_library bats-support + bats_load_library bats-assert + source "$DIR/helper.bash" +} + diff --git a/test/integration/dns/in.thelinuxpro.net/pi504/a.bat b/test/integration/dns/in.thelinuxpro.net/pi504/a.bat new file mode 100644 index 0000000..24c333d --- /dev/null +++ b/test/integration/dns/in.thelinuxpro.net/pi504/a.bat @@ -0,0 +1,12 @@ +#!/usr/bin/env bats + +load 'local-setup' +_local_setup + +load 'helper' + + +@test "Test A Record: ${domain}" { + run dig -t A ${domain} +noall +answer + assert_output --partial "${ip}" +} diff --git a/test/integration/dns/in.thelinuxpro.net/pi504/helper.bash b/test/integration/dns/in.thelinuxpro.net/pi504/helper.bash new file mode 100644 index 0000000..adbabee --- /dev/null +++ b/test/integration/dns/in.thelinuxpro.net/pi504/helper.bash @@ -0,0 +1,4 @@ +#!/usr/bin/env bash + +export domain="pi504.in.thelinuxpro.net" +export ip="10.99.22.54" diff --git a/test/integration/dns/in.thelinuxpro.net/pi504/local-setup.bash b/test/integration/dns/in.thelinuxpro.net/pi504/local-setup.bash new file mode 100644 index 0000000..cc35f5b --- /dev/null +++ b/test/integration/dns/in.thelinuxpro.net/pi504/local-setup.bash @@ -0,0 +1,10 @@ +#!/usr/bin/env bash + +_local_setup() { + DIR="$( cd "$( dirname "$BATS_TEST_FILENAME" )" >/dev/null 2>&1 && pwd)" + TEST_ROOT="$( cd "$( dirname "$DIR/../../../" )" >/dev/null 2>&1 && pwd)" + bats_load_library bats-support + bats_load_library bats-assert + source "$DIR/helper.bash" +} + diff --git a/test/integration/dns/in.thelinuxpro.net/pihole-exporter/a.bat b/test/integration/dns/in.thelinuxpro.net/pihole-exporter/a.bat new file mode 100644 index 0000000..24c333d --- /dev/null +++ b/test/integration/dns/in.thelinuxpro.net/pihole-exporter/a.bat @@ -0,0 +1,12 @@ +#!/usr/bin/env bats + +load 'local-setup' +_local_setup + +load 'helper' + + +@test "Test A Record: ${domain}" { + run dig -t A ${domain} +noall +answer + assert_output --partial "${ip}" +} diff --git a/test/integration/dns/in.thelinuxpro.net/pihole-exporter/helper.bash b/test/integration/dns/in.thelinuxpro.net/pihole-exporter/helper.bash new file mode 100644 index 0000000..04bf3f1 --- /dev/null +++ b/test/integration/dns/in.thelinuxpro.net/pihole-exporter/helper.bash @@ -0,0 +1,4 @@ +#!/usr/bin/env bash + +export domain="pihole-exporter.in.thelinuxpro.net" +export ip="10.99.23.34" diff --git a/test/integration/dns/in.thelinuxpro.net/pihole-exporter/local-setup.bash b/test/integration/dns/in.thelinuxpro.net/pihole-exporter/local-setup.bash new file mode 100644 index 0000000..cc35f5b --- /dev/null +++ b/test/integration/dns/in.thelinuxpro.net/pihole-exporter/local-setup.bash @@ -0,0 +1,10 @@ +#!/usr/bin/env bash + +_local_setup() { + DIR="$( cd "$( dirname "$BATS_TEST_FILENAME" )" >/dev/null 2>&1 && pwd)" + TEST_ROOT="$( cd "$( dirname "$DIR/../../../" )" >/dev/null 2>&1 && pwd)" + bats_load_library bats-support + bats_load_library bats-assert + source "$DIR/helper.bash" +} + diff --git a/test/integration/dns/in.thelinuxpro.net/pihole/a.bat b/test/integration/dns/in.thelinuxpro.net/pihole/a.bat new file mode 100644 index 0000000..24c333d --- /dev/null +++ b/test/integration/dns/in.thelinuxpro.net/pihole/a.bat @@ -0,0 +1,12 @@ +#!/usr/bin/env bats + +load 'local-setup' +_local_setup + +load 'helper' + + +@test "Test A Record: ${domain}" { + run dig -t A ${domain} +noall +answer + assert_output --partial "${ip}" +} diff --git a/test/integration/dns/in.thelinuxpro.net/pihole/helper.bash b/test/integration/dns/in.thelinuxpro.net/pihole/helper.bash new file mode 100644 index 0000000..c2276c1 --- /dev/null +++ b/test/integration/dns/in.thelinuxpro.net/pihole/helper.bash @@ -0,0 +1,4 @@ +#!/usr/bin/env bash + +export domain="pihole.in.thelinuxpro.net" +export ip="10.200.53.250" diff --git a/test/integration/dns/in.thelinuxpro.net/pihole/local-setup.bash b/test/integration/dns/in.thelinuxpro.net/pihole/local-setup.bash new file mode 100644 index 0000000..cc35f5b --- /dev/null +++ b/test/integration/dns/in.thelinuxpro.net/pihole/local-setup.bash @@ -0,0 +1,10 @@ +#!/usr/bin/env bash + +_local_setup() { + DIR="$( cd "$( dirname "$BATS_TEST_FILENAME" )" >/dev/null 2>&1 && pwd)" + TEST_ROOT="$( cd "$( dirname "$DIR/../../../" )" >/dev/null 2>&1 && pwd)" + bats_load_library bats-support + bats_load_library bats-assert + source "$DIR/helper.bash" +} + diff --git a/test/integration/dns/in.thelinuxpro.net/prometheus/a.bat b/test/integration/dns/in.thelinuxpro.net/prometheus/a.bat new file mode 100644 index 0000000..24c333d --- /dev/null +++ b/test/integration/dns/in.thelinuxpro.net/prometheus/a.bat @@ -0,0 +1,12 @@ +#!/usr/bin/env bats + +load 'local-setup' +_local_setup + +load 'helper' + + +@test "Test A Record: ${domain}" { + run dig -t A ${domain} +noall +answer + assert_output --partial "${ip}" +} diff --git a/test/integration/dns/in.thelinuxpro.net/prometheus/helper.bash b/test/integration/dns/in.thelinuxpro.net/prometheus/helper.bash new file mode 100644 index 0000000..16f45c9 --- /dev/null +++ b/test/integration/dns/in.thelinuxpro.net/prometheus/helper.bash @@ -0,0 +1,4 @@ +#!/usr/bin/env bash + +export domain="prometheus.in.thelinuxpro.net" +export ip="10.99.23.32" diff --git a/test/integration/dns/in.thelinuxpro.net/prometheus/local-setup.bash b/test/integration/dns/in.thelinuxpro.net/prometheus/local-setup.bash new file mode 100644 index 0000000..cc35f5b --- /dev/null +++ b/test/integration/dns/in.thelinuxpro.net/prometheus/local-setup.bash @@ -0,0 +1,10 @@ +#!/usr/bin/env bash + +_local_setup() { + DIR="$( cd "$( dirname "$BATS_TEST_FILENAME" )" >/dev/null 2>&1 && pwd)" + TEST_ROOT="$( cd "$( dirname "$DIR/../../../" )" >/dev/null 2>&1 && pwd)" + bats_load_library bats-support + bats_load_library bats-assert + source "$DIR/helper.bash" +} + diff --git a/test/integration/dns/in.thelinuxpro.net/soa.bat b/test/integration/dns/in.thelinuxpro.net/soa.bat new file mode 100644 index 0000000..d182dfe --- /dev/null +++ b/test/integration/dns/in.thelinuxpro.net/soa.bat @@ -0,0 +1,12 @@ +#!/usr/bin/env bats + +load 'local-setup' +_local_setup + +load 'helper' + + +@test "Test SOA Record: ${domain}" { + run dig -t SOA ${domain} +noall +answer +multi + assert_output --partial "${serial}" +} diff --git a/test/integration/dns/in.thelinuxpro.net/syslog/a.bat b/test/integration/dns/in.thelinuxpro.net/syslog/a.bat new file mode 100644 index 0000000..24c333d --- /dev/null +++ b/test/integration/dns/in.thelinuxpro.net/syslog/a.bat @@ -0,0 +1,12 @@ +#!/usr/bin/env bats + +load 'local-setup' +_local_setup + +load 'helper' + + +@test "Test A Record: ${domain}" { + run dig -t A ${domain} +noall +answer + assert_output --partial "${ip}" +} diff --git a/test/integration/dns/in.thelinuxpro.net/syslog/helper.bash b/test/integration/dns/in.thelinuxpro.net/syslog/helper.bash new file mode 100644 index 0000000..b0a9ba5 --- /dev/null +++ b/test/integration/dns/in.thelinuxpro.net/syslog/helper.bash @@ -0,0 +1,4 @@ +#!/usr/bin/env bash + +export domain="syslog.in.thelinuxpro.net" +export ip="10.99.23.51" diff --git a/test/integration/dns/in.thelinuxpro.net/syslog/local-setup.bash b/test/integration/dns/in.thelinuxpro.net/syslog/local-setup.bash new file mode 100644 index 0000000..cc35f5b --- /dev/null +++ b/test/integration/dns/in.thelinuxpro.net/syslog/local-setup.bash @@ -0,0 +1,10 @@ +#!/usr/bin/env bash + +_local_setup() { + DIR="$( cd "$( dirname "$BATS_TEST_FILENAME" )" >/dev/null 2>&1 && pwd)" + TEST_ROOT="$( cd "$( dirname "$DIR/../../../" )" >/dev/null 2>&1 && pwd)" + bats_load_library bats-support + bats_load_library bats-assert + source "$DIR/helper.bash" +} + diff --git a/test/integration/dns/in.thelinuxpro.net/telegraf/a.bat b/test/integration/dns/in.thelinuxpro.net/telegraf/a.bat new file mode 100644 index 0000000..24c333d --- /dev/null +++ b/test/integration/dns/in.thelinuxpro.net/telegraf/a.bat @@ -0,0 +1,12 @@ +#!/usr/bin/env bats + +load 'local-setup' +_local_setup + +load 'helper' + + +@test "Test A Record: ${domain}" { + run dig -t A ${domain} +noall +answer + assert_output --partial "${ip}" +} diff --git a/test/integration/dns/in.thelinuxpro.net/telegraf/helper.bash b/test/integration/dns/in.thelinuxpro.net/telegraf/helper.bash new file mode 100644 index 0000000..76d67d0 --- /dev/null +++ b/test/integration/dns/in.thelinuxpro.net/telegraf/helper.bash @@ -0,0 +1,4 @@ +#!/usr/bin/env bash + +export domain="telegraf.in.thelinuxpro.net" +export ip="10.99.23.42" diff --git a/test/integration/dns/in.thelinuxpro.net/telegraf/local-setup.bash b/test/integration/dns/in.thelinuxpro.net/telegraf/local-setup.bash new file mode 100644 index 0000000..cc35f5b --- /dev/null +++ b/test/integration/dns/in.thelinuxpro.net/telegraf/local-setup.bash @@ -0,0 +1,10 @@ +#!/usr/bin/env bash + +_local_setup() { + DIR="$( cd "$( dirname "$BATS_TEST_FILENAME" )" >/dev/null 2>&1 && pwd)" + TEST_ROOT="$( cd "$( dirname "$DIR/../../../" )" >/dev/null 2>&1 && pwd)" + bats_load_library bats-support + bats_load_library bats-assert + source "$DIR/helper.bash" +} + diff --git a/test/integration/dns/in.thelinuxpro.net/unpoller/a.bat b/test/integration/dns/in.thelinuxpro.net/unpoller/a.bat new file mode 100644 index 0000000..24c333d --- /dev/null +++ b/test/integration/dns/in.thelinuxpro.net/unpoller/a.bat @@ -0,0 +1,12 @@ +#!/usr/bin/env bats + +load 'local-setup' +_local_setup + +load 'helper' + + +@test "Test A Record: ${domain}" { + run dig -t A ${domain} +noall +answer + assert_output --partial "${ip}" +} diff --git a/test/integration/dns/in.thelinuxpro.net/unpoller/helper.bash b/test/integration/dns/in.thelinuxpro.net/unpoller/helper.bash new file mode 100644 index 0000000..c230e02 --- /dev/null +++ b/test/integration/dns/in.thelinuxpro.net/unpoller/helper.bash @@ -0,0 +1,4 @@ +#!/usr/bin/env bash + +export domain="unpoller.in.thelinuxpro.net" +export ip="10.99.23.33" diff --git a/test/integration/dns/in.thelinuxpro.net/unpoller/local-setup.bash b/test/integration/dns/in.thelinuxpro.net/unpoller/local-setup.bash new file mode 100644 index 0000000..cc35f5b --- /dev/null +++ b/test/integration/dns/in.thelinuxpro.net/unpoller/local-setup.bash @@ -0,0 +1,10 @@ +#!/usr/bin/env bash + +_local_setup() { + DIR="$( cd "$( dirname "$BATS_TEST_FILENAME" )" >/dev/null 2>&1 && pwd)" + TEST_ROOT="$( cd "$( dirname "$DIR/../../../" )" >/dev/null 2>&1 && pwd)" + bats_load_library bats-support + bats_load_library bats-assert + source "$DIR/helper.bash" +} + diff --git a/test/integration/dns/kameronkenny.com/a.bat b/test/integration/dns/kameronkenny.com/a.bat new file mode 100644 index 0000000..24c333d --- /dev/null +++ b/test/integration/dns/kameronkenny.com/a.bat @@ -0,0 +1,12 @@ +#!/usr/bin/env bats + +load 'local-setup' +_local_setup + +load 'helper' + + +@test "Test A Record: ${domain}" { + run dig -t A ${domain} +noall +answer + assert_output --partial "${ip}" +} diff --git a/test/integration/dns/kameronkenny.com/blog/a.bat b/test/integration/dns/kameronkenny.com/blog/a.bat new file mode 100644 index 0000000..24c333d --- /dev/null +++ b/test/integration/dns/kameronkenny.com/blog/a.bat @@ -0,0 +1,12 @@ +#!/usr/bin/env bats + +load 'local-setup' +_local_setup + +load 'helper' + + +@test "Test A Record: ${domain}" { + run dig -t A ${domain} +noall +answer + assert_output --partial "${ip}" +} diff --git a/test/integration/dns/kameronkenny.com/blog/helper.bash b/test/integration/dns/kameronkenny.com/blog/helper.bash new file mode 100644 index 0000000..6ed9d6f --- /dev/null +++ b/test/integration/dns/kameronkenny.com/blog/helper.bash @@ -0,0 +1,4 @@ +#!/usr/bin/env bash + +export domain="blog.kameronkenny.com" +export ip="204.8.15.81" diff --git a/test/integration/dns/kameronkenny.com/blog/local-setup.bash b/test/integration/dns/kameronkenny.com/blog/local-setup.bash new file mode 100644 index 0000000..cc35f5b --- /dev/null +++ b/test/integration/dns/kameronkenny.com/blog/local-setup.bash @@ -0,0 +1,10 @@ +#!/usr/bin/env bash + +_local_setup() { + DIR="$( cd "$( dirname "$BATS_TEST_FILENAME" )" >/dev/null 2>&1 && pwd)" + TEST_ROOT="$( cd "$( dirname "$DIR/../../../" )" >/dev/null 2>&1 && pwd)" + bats_load_library bats-support + bats_load_library bats-assert + source "$DIR/helper.bash" +} + diff --git a/test/integration/dns/kameronkenny.com/helper.bash b/test/integration/dns/kameronkenny.com/helper.bash new file mode 100644 index 0000000..5f85714 --- /dev/null +++ b/test/integration/dns/kameronkenny.com/helper.bash @@ -0,0 +1,5 @@ +#!/usr/bin/env bash + +export domain="kameronkenny.com" +export ip="204.8.15.81" +export serial="24070101" diff --git a/test/integration/dns/kameronkenny.com/local-setup.bash b/test/integration/dns/kameronkenny.com/local-setup.bash new file mode 100644 index 0000000..cc35f5b --- /dev/null +++ b/test/integration/dns/kameronkenny.com/local-setup.bash @@ -0,0 +1,10 @@ +#!/usr/bin/env bash + +_local_setup() { + DIR="$( cd "$( dirname "$BATS_TEST_FILENAME" )" >/dev/null 2>&1 && pwd)" + TEST_ROOT="$( cd "$( dirname "$DIR/../../../" )" >/dev/null 2>&1 && pwd)" + bats_load_library bats-support + bats_load_library bats-assert + source "$DIR/helper.bash" +} + diff --git a/test/integration/dns/kameronkenny.com/ns1/a.bat b/test/integration/dns/kameronkenny.com/ns1/a.bat new file mode 100644 index 0000000..24c333d --- /dev/null +++ b/test/integration/dns/kameronkenny.com/ns1/a.bat @@ -0,0 +1,12 @@ +#!/usr/bin/env bats + +load 'local-setup' +_local_setup + +load 'helper' + + +@test "Test A Record: ${domain}" { + run dig -t A ${domain} +noall +answer + assert_output --partial "${ip}" +} diff --git a/test/integration/dns/kameronkenny.com/ns1/helper.bash b/test/integration/dns/kameronkenny.com/ns1/helper.bash new file mode 100644 index 0000000..cf84aa2 --- /dev/null +++ b/test/integration/dns/kameronkenny.com/ns1/helper.bash @@ -0,0 +1,4 @@ +#!/usr/bin/env bash + +export domain="ns1.kameronkenny.com" +export ip="204.8.15.80" diff --git a/test/integration/dns/kameronkenny.com/ns1/local-setup.bash b/test/integration/dns/kameronkenny.com/ns1/local-setup.bash new file mode 100644 index 0000000..cc35f5b --- /dev/null +++ b/test/integration/dns/kameronkenny.com/ns1/local-setup.bash @@ -0,0 +1,10 @@ +#!/usr/bin/env bash + +_local_setup() { + DIR="$( cd "$( dirname "$BATS_TEST_FILENAME" )" >/dev/null 2>&1 && pwd)" + TEST_ROOT="$( cd "$( dirname "$DIR/../../../" )" >/dev/null 2>&1 && pwd)" + bats_load_library bats-support + bats_load_library bats-assert + source "$DIR/helper.bash" +} + diff --git a/test/integration/dns/kameronkenny.com/ns2/a.bat b/test/integration/dns/kameronkenny.com/ns2/a.bat new file mode 100644 index 0000000..24c333d --- /dev/null +++ b/test/integration/dns/kameronkenny.com/ns2/a.bat @@ -0,0 +1,12 @@ +#!/usr/bin/env bats + +load 'local-setup' +_local_setup + +load 'helper' + + +@test "Test A Record: ${domain}" { + run dig -t A ${domain} +noall +answer + assert_output --partial "${ip}" +} diff --git a/test/integration/dns/kameronkenny.com/ns2/helper.bash b/test/integration/dns/kameronkenny.com/ns2/helper.bash new file mode 100644 index 0000000..de9a17b --- /dev/null +++ b/test/integration/dns/kameronkenny.com/ns2/helper.bash @@ -0,0 +1,4 @@ +#!/usr/bin/env bash + +export domain="ns2.kameronkenny.com" +export ip="204.8.15.81" diff --git a/test/integration/dns/kameronkenny.com/ns2/local-setup.bash b/test/integration/dns/kameronkenny.com/ns2/local-setup.bash new file mode 100644 index 0000000..cc35f5b --- /dev/null +++ b/test/integration/dns/kameronkenny.com/ns2/local-setup.bash @@ -0,0 +1,10 @@ +#!/usr/bin/env bash + +_local_setup() { + DIR="$( cd "$( dirname "$BATS_TEST_FILENAME" )" >/dev/null 2>&1 && pwd)" + TEST_ROOT="$( cd "$( dirname "$DIR/../../../" )" >/dev/null 2>&1 && pwd)" + bats_load_library bats-support + bats_load_library bats-assert + source "$DIR/helper.bash" +} + diff --git a/test/integration/dns/kameronkenny.com/photos/cname.bat b/test/integration/dns/kameronkenny.com/photos/cname.bat new file mode 100644 index 0000000..673b05c --- /dev/null +++ b/test/integration/dns/kameronkenny.com/photos/cname.bat @@ -0,0 +1,12 @@ +#!/usr/bin/env bats + +load 'local-setup' +_local_setup + +load 'helper' + + +@test "Test CNAME Record: ${domain}" { + run dig -t CNAME ${domain} +noall +answer + assert_output --partial "${cname}" +} diff --git a/test/integration/dns/kameronkenny.com/photos/helper.bash b/test/integration/dns/kameronkenny.com/photos/helper.bash new file mode 100644 index 0000000..9edf9b6 --- /dev/null +++ b/test/integration/dns/kameronkenny.com/photos/helper.bash @@ -0,0 +1,4 @@ +#!/usr/bin/env bash + +export domain="photos.kameronkenny.com" +export cname="domains.smugmug.com." diff --git a/test/integration/dns/kameronkenny.com/photos/local-setup.bash b/test/integration/dns/kameronkenny.com/photos/local-setup.bash new file mode 100644 index 0000000..cc35f5b --- /dev/null +++ b/test/integration/dns/kameronkenny.com/photos/local-setup.bash @@ -0,0 +1,10 @@ +#!/usr/bin/env bash + +_local_setup() { + DIR="$( cd "$( dirname "$BATS_TEST_FILENAME" )" >/dev/null 2>&1 && pwd)" + TEST_ROOT="$( cd "$( dirname "$DIR/../../../" )" >/dev/null 2>&1 && pwd)" + bats_load_library bats-support + bats_load_library bats-assert + source "$DIR/helper.bash" +} + diff --git a/test/integration/dns/kameronkenny.com/soa.bat b/test/integration/dns/kameronkenny.com/soa.bat new file mode 100644 index 0000000..d182dfe --- /dev/null +++ b/test/integration/dns/kameronkenny.com/soa.bat @@ -0,0 +1,12 @@ +#!/usr/bin/env bats + +load 'local-setup' +_local_setup + +load 'helper' + + +@test "Test SOA Record: ${domain}" { + run dig -t SOA ${domain} +noall +answer +multi + assert_output --partial "${serial}" +} diff --git a/test/integration/dns/kameronkenny.com/www/a.bat b/test/integration/dns/kameronkenny.com/www/a.bat new file mode 100644 index 0000000..24c333d --- /dev/null +++ b/test/integration/dns/kameronkenny.com/www/a.bat @@ -0,0 +1,12 @@ +#!/usr/bin/env bats + +load 'local-setup' +_local_setup + +load 'helper' + + +@test "Test A Record: ${domain}" { + run dig -t A ${domain} +noall +answer + assert_output --partial "${ip}" +} diff --git a/test/integration/dns/kameronkenny.com/www/helper.bash b/test/integration/dns/kameronkenny.com/www/helper.bash new file mode 100644 index 0000000..6ca0731 --- /dev/null +++ b/test/integration/dns/kameronkenny.com/www/helper.bash @@ -0,0 +1,4 @@ +#!/usr/bin/env bash + +export domain="www.kameronkenny.com" +export ip="204.8.15.81" diff --git a/test/integration/dns/kameronkenny.com/www/local-setup.bash b/test/integration/dns/kameronkenny.com/www/local-setup.bash new file mode 100644 index 0000000..cc35f5b --- /dev/null +++ b/test/integration/dns/kameronkenny.com/www/local-setup.bash @@ -0,0 +1,10 @@ +#!/usr/bin/env bash + +_local_setup() { + DIR="$( cd "$( dirname "$BATS_TEST_FILENAME" )" >/dev/null 2>&1 && pwd)" + TEST_ROOT="$( cd "$( dirname "$DIR/../../../" )" >/dev/null 2>&1 && pwd)" + bats_load_library bats-support + bats_load_library bats-assert + source "$DIR/helper.bash" +} + diff --git a/test/integration/test_helper/common-setup.bash b/test/integration/test_helper/common-setup.bash new file mode 100644 index 0000000..5203a78 --- /dev/null +++ b/test/integration/test_helper/common-setup.bash @@ -0,0 +1,9 @@ +#!/usr/bin/env bash + +export BATS_LIB_PATH=.bats/libs:../.bats/libs:${HOME}/.bats/libs:/usr/local/lib/bats:/usr/lib/bats + +_common_setup() { + bats_load_library bats-support + bats_load_library bats-assert +} +