From 712cf02c0006e32220cccfe5ba9e76462db64f7b Mon Sep 17 00:00:00 2001 From: Chris Hammer Date: Mon, 16 May 2022 10:57:55 -0400 Subject: [PATCH] updates to test script and post var --- utils/dev_tower_test.sh | 13 +++++++------ utils/message.post | 1 + 2 files changed, 8 insertions(+), 6 deletions(-) create mode 100644 utils/message.post 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!"}}