update to V2

This commit is contained in:
David Schroeder
2026-08-12 21:50:50 -05:00
parent 873bb17b62
commit 72d61e5785
41 changed files with 9421 additions and 477 deletions
+24
View File
@@ -0,0 +1,24 @@
#!/usr/bin/env bash
set -u -o pipefail
TEST_ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
source "${TEST_ROOT}/tests/testlib.sh"
TAPM_PULSE_STANDALONE_NO_MAIN=1
source "${TEST_ROOT}/install-pulse.sh"
assert_success "default V2 source branch accepted" \
TAPM_PULSE_VALID_SOURCE_BRANCH V2
assert_success "nested release branch accepted" \
TAPM_PULSE_VALID_SOURCE_BRANCH releases/pulse-6
assert_failure "empty source branch rejected" \
TAPM_PULSE_VALID_SOURCE_BRANCH ''
assert_failure "source branch traversal rejected" \
TAPM_PULSE_VALID_SOURCE_BRANCH '../main'
assert_success "HTTPS source base accepted" \
TAPM_PULSE_VALID_SOURCE_BASE \
https://tagit.technologyarch.com/TAI/TA-ProxMenu/raw/branch/V2
assert_failure "HTTP source base rejected" \
TAPM_PULSE_VALID_SOURCE_BASE \
http://tagit.technologyarch.com/TAI/TA-ProxMenu/raw/branch/V2
finish_tests