From f2cbc71dd48e14e2247b9a0976554caa20f6fed6 Mon Sep 17 00:00:00 2001 From: Rad Cirskis Date: Sat, 10 Aug 2019 21:49:27 +1200 Subject: [PATCH] so that we can test the other platforms... --- handler/batch_test.sh | 4 +++- handler/batch_test_parallel.sh | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/handler/batch_test.sh b/handler/batch_test.sh index 7330c80..3ab11cc 100755 --- a/handler/batch_test.sh +++ b/handler/batch_test.sh @@ -1,5 +1,7 @@ +URL=${1:-https://415mdw939a.execute-api.ap-southeast-2.amazonaws.com/prod/v1/enqueue} + for id in 484378182 477579437 208013283 987654321 8524255 350622514 4306445 ; do - curl -v -H "Content-Type: application/json" -X POST -d "{\"subject\":${id}}" https://415mdw939a.execute-api.ap-southeast-2.amazonaws.com/prod/v1/enqueue + curl -v -H "Content-Type: application/json" -d "{\"subject\":${id}}" $URL done diff --git a/handler/batch_test_parallel.sh b/handler/batch_test_parallel.sh index ce8b1c1..6b89f46 100755 --- a/handler/batch_test_parallel.sh +++ b/handler/batch_test_parallel.sh @@ -1,4 +1,6 @@ -xargs -P 100 -L 1 -i -t curl -v -H "Content-Type: application/json" -X POST -d "{\"subject\":{}}" https://415mdw939a.execute-api.ap-southeast-2.amazonaws.com/prod/v1/enqueue <