summaryrefslogtreecommitdiff
path: root/script/test_gateway.sh
diff options
context:
space:
mode:
Diffstat (limited to 'script/test_gateway.sh')
-rw-r--r--script/test_gateway.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/script/test_gateway.sh b/script/test_gateway.sh
index a825fbe..88063a2 100644
--- a/script/test_gateway.sh
+++ b/script/test_gateway.sh
@@ -119,7 +119,7 @@ test `curl -w %{http_code} -s -o /dev/null -H "Content-Type: application/json" -
echo "----- Security -----"
# Generate big random file
-printf 'HelloWorld%s' {1..100000} > $TEMP_FILE
+printf 'HelloWorld%s' {1..1000} > $TEMP_FILE
echo -n "Handle huge body:"
test `curl -w %{http_code} -X POST -s -o /dev/null -d @$TEMP_FILE ${BANK_ENDPOINT}transfer` -eq 400 && echo " OK" || echo " Failed"
@@ -128,7 +128,7 @@ echo -n "Handle body length liar:"
test `curl -w %{http_code} -X POST -H"Content-Length:1024" -s -o /dev/null -d @$TEMP_FILE ${BANK_ENDPOINT}transfer` -eq 400 && echo " OK" || echo " Failed"
# Generate compression bomb
-printf 'HelloWorld%s' {1..100000} | pigz -z9 > $TEMP_FILE
+printf 'HelloWorld%s' {1..1000} | pigz -z9 > $TEMP_FILE
echo -n "Handle compression bomb:"
test `curl -w %{http_code} -X POST -H"Content-Encoding:deflate" -s -o /dev/null --data-binary @$TEMP_FILE ${BANK_ENDPOINT}transfer` -eq 400 && echo " OK" || echo " Failed"