Skip to content

Commit

Permalink
tests: update heavy ratelimit helper to apiv2
Browse files Browse the repository at this point in the history
  • Loading branch information
bodik committed Jun 24, 2022
1 parent ee3ba14 commit 765d9dc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/test_heavy_ratelimit.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/bin/bash
# This file is part of sner4 project governed by MIT license, see the LICENSE.txt file.

SERVER=$1

APIKEY=$(bin/server auth add-agent | rev | awk '{print $1}' | rev)
while true; do time curl -H "Authorization: Apikey $APIKEY" http://localhost:18000/api/scheduler/job/assign | grep '{}' && break; done
while true; do time curl -XPOST -H "X-API-KEY: $APIKEY" "${SERVER}/api/v2/scheduler/job/assign" | grep '{}' && break; done

0 comments on commit 765d9dc

Please sign in to comment.