This commit is contained in:
2026-07-28 08:49:38 -05:00
parent 8c73cb7a53
commit 3ea33a17d8
4 changed files with 294 additions and 1 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://git.schroedercity.com/TAI/TA-ProxMenu/raw/branch/V2
assert_failure "HTTP source base rejected" \
TAPM_PULSE_VALID_SOURCE_BASE \
http://git.schroedercity.com/TAI/TA-ProxMenu/raw/branch/V2
finish_tests