From e6970585039d3c23fefa21402f7ec850ea22fed0 Mon Sep 17 00:00:00 2001 From: Edward Oliveira Date: Mon, 22 Sep 2025 17:26:47 -0300 Subject: [PATCH] Adiciona smoke test for rate limiter --- scripts/test_ratelimiter.sh | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100755 scripts/test_ratelimiter.sh diff --git a/scripts/test_ratelimiter.sh b/scripts/test_ratelimiter.sh new file mode 100755 index 000000000..e67651c5c --- /dev/null +++ b/scripts/test_ratelimiter.sh @@ -0,0 +1,9 @@ +#!/bin/bash + +#URL=http://localhost:8000/materia/4379 +URL=http://localhost:8000/norma/pesquisar +#URL=http://localhost/norma/pesquisar + +for i in $(seq 1 6); do + curl -sS -o /dev/null -w "req=$i http=%{http_code} time=%{time_total}\n" "$URL" +done