aoh

A tool for running Ansible playbooks with `curl <url> | python` commands
git clone https://git.ashermorgan.net/aoh/
Log | Files | Refs | README

commit d8bd3a727502fbdd148de73713b4fd2bfdfcb7ad
parent f72d40d3e7d9dccd5d861175b2b4136879078153
Author: Asher Morgan <asher@ashermorgan.net>
Date:   Thu, 22 Oct 2026 09:45:43 -0700

Fix ANSIBLE_TIMEOUT for connection failure test

Diffstat:
Mtests/e2e/playbooks.yml | 2+-
Mtests/e2e/run.sh | 8++++----
2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/tests/e2e/playbooks.yml b/tests/e2e/playbooks.yml @@ -17,4 +17,4 @@ test4.yml: test5.yml: path: test_connection_failure.yml env: - ANSIBLE_TIMEOUT: '5' + ANSIBLE_TIMEOUT: '1' diff --git a/tests/e2e/run.sh b/tests/e2e/run.sh @@ -70,13 +70,13 @@ $DOCKER run --rm --network aoh-test --detach --name aoh-test-client \ aoh-test-client bash -c \ "curl http://aoh-test-server:8000/run | python3 - test$i.yml" -for i in {1..10}; do +for j in {1..10}; do if $DOCKER exec aoh-test-server sh -c \ 'find /tmp -maxdepth 1 -type d -name "aoh-*" -print -quit | grep -q .\ && ps -eo comm | grep -qx ansible-playboo' then break - elif [ "$i" -eq 10 ]; then + elif [ "$j" -eq 10 ]; then echo Timed out waiting for server to start runner $DOCKER exec aoh-test-server sh -c \ 'find /tmp -maxdepth 1 -type d -name "aoh-*" -print -quit; \ @@ -93,7 +93,7 @@ done sleep 1 $DOCKER stop aoh-test-client -for i in {1..10}; do +for j in {1..10}; do if $DOCKER exec aoh-test-server sh -c \ '! find /tmp -maxdepth 1 -type d -name "aoh-*" -print -quit | grep -q .\ && ! ps -eo comm | grep -qx ansible-playboo' @@ -102,7 +102,7 @@ for i in {1..10}; do echo test$i.yml passed. echo ================================ break - elif [ "$i" -eq 10 ]; then + elif [ "$j" -eq 10 ]; then echo Timed out waiting for server to clean up runner $DOCKER exec aoh-test-server sh -c \ 'find /tmp -maxdepth 1 -type d -name "aoh-*" -print -quit; \