add debug.yml; add utils/long_tower_test.sh

This commit is contained in:
Chris Hammer
2022-04-26 19:36:05 -04:00
parent 5eb49dbc8c
commit 927c8a68dc
2 changed files with 42 additions and 0 deletions

18
debug.yml Normal file
View File

@ -0,0 +1,18 @@
---
- name: Print out a debug message
hosts: all
gather_facts: no
become: no
vars:
__message: Hello!
tasks:
- name: Print debug message
debug:
var: __message
...

24
utils/long_tower_test.sh Normal file
View File

@ -0,0 +1,24 @@
#!/bin/bash
CONC="10"
REQU="10"
SLEEP_SECS="400"
BASE_URL="tower2.thezengarden.net"
AAP_JOB_ID="25"
POST_PAYLOAD_PATH="empty.post"
POST_PAYLOAD_TYPE="application/json"
TOWER_USER="admin"
TOWER_PASS="redhat"
printf "\n%s\n" \
"# Running test ${ITER}"
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"