diff --git a/utils/dev_tower_test.sh b/utils/dev_tower_test.sh index 6c55f92..8fdaa1b 100755 --- a/utils/dev_tower_test.sh +++ b/utils/dev_tower_test.sh @@ -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" diff --git a/utils/message.post b/utils/message.post new file mode 100644 index 0000000..278f57b --- /dev/null +++ b/utils/message.post @@ -0,0 +1 @@ +{"extra_vars": {"__message": "Hello from ab load testing!"}}