update tests and try '--gather-test-outputs-in' for results output instead of redirection.
This commit is contained in:
parent
24bba9c4fa
commit
27f431462f
|
@ -104,12 +104,8 @@ pipeline {
|
||||||
|
|
||||||
stage('Integration Tests') {
|
stage('Integration Tests') {
|
||||||
steps {
|
steps {
|
||||||
sh 'mkdir -p test/results/integration/thelinux.pro'
|
sh 'mkdir -p test/results/integration/dns'
|
||||||
sh 'mkdir -p test/results/integration/kameronkenny.com'
|
sh 'bats -F junit --gather-test-outputs-in test/results/integration/dns test/integration/dns/**/*.bat test/integration/dns/**/**/*.bat'
|
||||||
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'
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -19,8 +19,3 @@ load 'helper'
|
||||||
run _check_soa_record_at_ns1
|
run _check_soa_record_at_ns1
|
||||||
assert_output --partial "${serial}"
|
assert_output --partial "${serial}"
|
||||||
}
|
}
|
||||||
|
|
||||||
@test "Test SOA Record @ns2: ${domain}" {
|
|
||||||
run _check_soa_record_at_ns2
|
|
||||||
assert_output --partial "${serial}"
|
|
||||||
}
|
|
||||||
|
|
|
@ -19,8 +19,3 @@ load 'helper'
|
||||||
run _check_soa_record_at_ns1
|
run _check_soa_record_at_ns1
|
||||||
assert_output --partial "${serial}"
|
assert_output --partial "${serial}"
|
||||||
}
|
}
|
||||||
|
|
||||||
@test "Test SOA Record @ns2: ${domain}" {
|
|
||||||
run _check_soa_record_at_ns2
|
|
||||||
assert_output --partial "${serial}"
|
|
||||||
}
|
|
||||||
|
|
|
@ -15,12 +15,8 @@ load 'helper'
|
||||||
assert_output --partial "${serial}"
|
assert_output --partial "${serial}"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Only test at primary NS
|
||||||
@test "Test SOA Record @ns1: ${domain}" {
|
@test "Test SOA Record @ns1: ${domain}" {
|
||||||
run _check_soa_record_at_ns1
|
run _check_soa_record_at_ns1
|
||||||
assert_output --partial "${serial}"
|
assert_output --partial "${serial}"
|
||||||
}
|
}
|
||||||
|
|
||||||
@test "Test SOA Record @ns2: ${domain}" {
|
|
||||||
run _check_soa_record_at_ns2
|
|
||||||
assert_output --partial "${serial}"
|
|
||||||
}
|
|
||||||
|
|
Loading…
Reference in New Issue