mirror of
https://github.com/monadicsystems/okapi.git
synced 2024-11-30 10:29:07 +03:00
18 lines
483 B
Bash
18 lines
483 B
Bash
|
#!/usr/bin/env bash
|
||
|
set -x
|
||
|
|
||
|
SCRIPTDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null && pwd )"
|
||
|
|
||
|
APIURL=${APIURL:-https://api.realworld.io/api}
|
||
|
USERNAME=${USERNAME:-u`date +%s`}
|
||
|
EMAIL=${EMAIL:-$USERNAME@mail.com}
|
||
|
PASSWORD=${PASSWORD:-password}
|
||
|
|
||
|
npx newman run $SCRIPTDIR/Conduit.postman_collection.json \
|
||
|
--delay-request 500 \
|
||
|
--global-var "APIURL=$APIURL" \
|
||
|
--global-var "USERNAME=$USERNAME" \
|
||
|
--global-var "EMAIL=$EMAIL" \
|
||
|
--global-var "PASSWORD=$PASSWORD" \
|
||
|
"$@"
|