From b7f4926d95115ce29bed32a696b0a1b0e63d2347 Mon Sep 17 00:00:00 2001 From: Alexander Todorov Date: Thu, 16 Jan 2025 21:44:09 +0200 Subject: [PATCH] Add a sanity check to exercise newly added Locust file --- tests/test_http.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/test_http.sh b/tests/test_http.sh index 48dea917cc..6492ee487b 100755 --- a/tests/test_http.sh +++ b/tests/test_http.sh @@ -187,6 +187,12 @@ _EOF_ rlAssertGreaterOrEqual ">= 50 r/s" "$COMPLETED_REQUESTS" 500 rlPhaseEnd + rlPhaseStartTest "Sanity execute Locust files" + # this is designed to check that these files don't crash, + # not for collecting realistic performance results + rlRun -t -c "locust --headless --users 1 --spawn-rate 1 --run-time 5s -H https://localhost/ --locustfile tests/performance/api_write_test.py" + rlPhaseEnd + rlPhaseStartCleanup rlRun -t -c "docker compose logs --no-color > test_http_docker.log" rlRun -t -c "docker compose down"