Files
tower-tests/utils/metrics_load_test.sh
2025-07-09 14:31:11 -04:00

25 lines
467 B
Bash
Executable File

#!/bin/bash
CONC="10"
REQU="10"
#BASE_URL="tower2.thezengarden.net"
BASE_URL="10.10.42.225"
AAP_JOB_ID="57"
POST_PAYLOAD_TYPE="application/json"
TOWER_USER="admin"
TOWER_PASS="redhat"
printf "\n%s\n" \
"# Running test - ${REQU} requests / ${CONC} concurrency"
ab -c "${CONC}" \
-n ${REQU} \
-A ${TOWER_USER}:${TOWER_PASS} \
-T "${POST_PAYLOAD_TYPE}" \
-v1 \
"https://${BASE_URL}/api/v2/metrics/" | \
grep "Failed requests\|Time taken for tests"