Skip to content

Commit

Permalink
so that we can test the other platforms...
Browse files Browse the repository at this point in the history
  • Loading branch information
nad2000 committed Aug 10, 2019
1 parent 700090e commit f2cbc71
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion 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


Expand Down
4 changes: 3 additions & 1 deletion 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 <<EOF
export URL=${1:-https://415mdw939a.execute-api.ap-southeast-2.amazonaws.com/prod/v1/enqueue}

xargs -P 100 -L 1 -i -t curl -v -H "Content-Type: application/json" -d "{\"subject\":{}}" $URL <<EOF
4306445
484378182
477579437
Expand Down

0 comments on commit f2cbc71

Please sign in to comment.