test: Add 4 and update 6 files
This commit is contained in:
@@ -545,6 +545,37 @@ function test9() {
|
||||
|
||||
#------------------------------------------------------------------------------------------------
|
||||
|
||||
function test10() {
|
||||
title "10: Testing Input Validation"
|
||||
|
||||
# Use the simpler validation test that works in Docker
|
||||
local test_script="test_input_validation_simple.sh"
|
||||
|
||||
# Fall back to full test if simple doesn't exist
|
||||
if [ ! -f "$test_script" ]; then
|
||||
test_script="test_input_validation.sh"
|
||||
fi
|
||||
|
||||
# Check if validation test script exists
|
||||
if [ ! -f "$test_script" ]; then
|
||||
echo "Warning: No input validation test script found, skipping"
|
||||
return 0
|
||||
fi
|
||||
|
||||
# Run the input validation tests
|
||||
# Use the same token that's already set
|
||||
export TEST_TOKEN1="${WRITE_TOKEN}"
|
||||
|
||||
echo "Running input validation tests..."
|
||||
if bash "${SCRIPT_DIR}/$test_script" "${HOSTURL}"; then
|
||||
echo "✓ Input validation tests passed"
|
||||
else
|
||||
die "Input validation tests failed"
|
||||
fi
|
||||
}
|
||||
|
||||
#------------------------------------------------------------------------------------------------
|
||||
|
||||
test0
|
||||
test1
|
||||
test2
|
||||
@@ -556,5 +587,6 @@ test6
|
||||
test7
|
||||
test8
|
||||
test9
|
||||
test10
|
||||
|
||||
title "ALL TESTS PASSED"
|
||||
|
Reference in New Issue
Block a user