Skip to content

Commit

Permalink
Add tests asserting on number of requests for uploaded files
Browse files Browse the repository at this point in the history
  • Loading branch information
atodorov committed Feb 9, 2024
1 parent 1472e0c commit f0e32da
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 @@ -150,6 +150,12 @@ _EOF_
rlAssertGreaterOrEqual ">= 1000 r/s" "$COMPLETED_REQUESTS" 10000
rlPhaseEnd

rlPhaseStartTest "Requests for uploaded files are NOT rate limited"
COMPLETED_REQUESTS=$(exec_wrk "https://localhost/uploads/attachments/auth_user/2/redirect.js" "$WRK_DIR" "static-image")
rlLogInfo "COMPLETED_REQUESTS=$COMPLETED_REQUESTS in 10 seconds"
rlAssertGreaterOrEqual ">= 1000 r/s" "$COMPLETED_REQUESTS" 10000
rlPhaseEnd

rlPhaseStartTest "Requests for /favicon.ico are NOT rate limited"
COMPLETED_REQUESTS=$(exec_wrk "https://localhost/favicon.ico" "$WRK_DIR" "favicon")
rlLogInfo "COMPLETED_REQUESTS=$COMPLETED_REQUESTS in 10 seconds"
Expand Down

0 comments on commit f0e32da

Please sign in to comment.