From 927c8a68dceb34d3b8967460919b8204e5c98b26 Mon Sep 17 00:00:00 2001 From: Chris Hammer Date: Tue, 26 Apr 2022 19:36:05 -0400 Subject: [PATCH] add debug.yml; add utils/long_tower_test.sh --- debug.yml | 18 ++++++++++++++++++ utils/long_tower_test.sh | 24 ++++++++++++++++++++++++ 2 files changed, 42 insertions(+) create mode 100644 debug.yml create mode 100644 utils/long_tower_test.sh diff --git a/debug.yml b/debug.yml new file mode 100644 index 0000000..33e2f1e --- /dev/null +++ b/debug.yml @@ -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 + + +... diff --git a/utils/long_tower_test.sh b/utils/long_tower_test.sh new file mode 100644 index 0000000..b8398ff --- /dev/null +++ b/utils/long_tower_test.sh @@ -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"