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

This commit is contained in:
Kameron Kenny 2024-12-20 10:36:06 -05:00
parent 24bba9c4fa
commit 27f431462f
4 changed files with 3 additions and 21 deletions

8
Jenkinsfile vendored
View File

@ -104,12 +104,8 @@ pipeline {
stage('Integration Tests') {
steps {
sh 'mkdir -p test/results/integration/thelinux.pro'
sh 'mkdir -p test/results/integration/kameronkenny.com'
sh 'mkdir -p test/results/integration/in.thelinuxpro.net'
sh 'bats -F junit --gather-test-outputs-in test/results/integration/thelinux.pro test/integration/dns/thelinux.pro/*.bat test/integration/dns/thelinux.pro/**/*.bat'
sh 'bats -F junit --gather-test-outputs-in test/results/integration/kameronkenny.com test/integration/dns/kameronkenny.com/*.bat test/integration/dns/kameronkenny.com/**/*.bat'
sh 'bats -F junit --gather-test-outputs-in test/results/integration/in.thelinuxpro.net test/integration/dns/in.thelinuxpro.net/*.bat test/integration/dns/in.thelinuxpro.net/**/*.bat'
sh 'mkdir -p test/results/integration/dns'
sh 'bats -F junit --gather-test-outputs-in test/results/integration/dns test/integration/dns/**/*.bat test/integration/dns/**/**/*.bat'
}
}
}

View File

@ -19,8 +19,3 @@ load 'helper'
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}"
}

View File

@ -19,8 +19,3 @@ load 'helper'
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}"
}

View File

@ -15,12 +15,8 @@ load 'helper'
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}"
}
@test "Test SOA Record @ns2: ${domain}" {
run _check_soa_record_at_ns2
assert_output --partial "${serial}"
}