Skip to content

Commit

Permalink
Add a sanity check to exercise newly added Locust files
Browse files Browse the repository at this point in the history
  • Loading branch information
atodorov committed Jan 17, 2025
1 parent 748787a commit ccf3f5f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/test_http.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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,
rlRun -t -c "locust --headless --users 1 --spawn-rate 1 --run-time 5s -H https://localhost/ --locustfile tests/performance/base.py"
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"
Expand Down

0 comments on commit ccf3f5f

Please sign in to comment.