Skip to content

Commit

Permalink
Assert on robots.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
atodorov committed Jan 22, 2024
1 parent 712630f commit 266ebbe
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 robots.txt are NOT rate limited"
COMPLETED_REQUESTS=$(exec_wrk "https://localhost/robots.txt" "$WRK_DIR" "robots-txt")
rlLogInfo "COMPLETED_REQUESTS=$COMPLETED_REQUESTS"
rlAssertGreaterOrEqual ">= 800 r/s" "$COMPLETED_REQUESTS" 8000
rlPhaseEnd

rlPhaseStartTest "Authenticated requests to / are NOT rate limited"
# Note: the cookies file is created in get_dashboard() above
SESSION_ID=$(grep sessionid /tmp/login-cookies.txt | cut -f 7)
Expand Down

0 comments on commit 266ebbe

Please sign in to comment.