add long-running-job-test.yml; tasks/long_running_tasks.yml; and dev testing scripts

This commit is contained in:
Chris Hammer
2022-04-13 13:15:07 -04:00
parent 1285a96b2b
commit 44be415dca
4 changed files with 76 additions and 9 deletions

24
utils/dev_tower_test_2.sh Normal file
View File

@ -0,0 +1,24 @@
#!/bin/bash
CONC="50"
REQU="50"
BASE_URL="10.1.1.98"
AAP_JOB_ID="12"
POST_PAYLOAD_PATH="empty.post"
#POST_PAYLOAD_PATH="provision.post"
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 \
-p ${POST_PAYLOAD_PATH} "https://${BASE_URL}/api/v2/job_templates/${AAP_JOB_ID}/launch/" | \
grep "Failed requests\|Time taken for tests"