updates to test script and post var

This commit is contained in:
2022-05-16 10:57:55 -04:00
parent 4511b83929
commit 712cf02c00
2 changed files with 8 additions and 6 deletions

View File

@ -1,12 +1,13 @@
#!/bin/bash
CONC="50"
REQU="50"
CONC="100"
REQU="100"
BASE_URL="10.1.1.98"
AAP_JOB_ID="10"
POST_PAYLOAD_PATH="empty.post"
#POST_PAYLOAD_PATH="provision.post"
AAP_JOB_ID="22"
LAUNCH_URL="workflow_job_templates/${AAP_JOB_ID}/launch/"
#POST_PAYLOAD_PATH="empty.post"
POST_PAYLOAD_PATH="message.post"
POST_PAYLOAD_TYPE="application/json"
TOWER_USER="admin"
@ -20,5 +21,5 @@ printf "\n%s\n" \
-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/" | \
-p ${POST_PAYLOAD_PATH} "https://${BASE_URL}/api/v2/${LAUNCH_URL}" | \
grep "Failed requests\|Time taken for tests"

1
utils/message.post Normal file
View File

@ -0,0 +1 @@
{"extra_vars": {"__message": "Hello from ab load testing!"}}