diff options
author | Christian Grothoff <grothoff@gnunet.org> | 2023-10-13 14:43:50 +0200 |
---|---|---|
committer | Christian Grothoff <grothoff@gnunet.org> | 2023-10-13 21:16:50 +0200 |
commit | a5f50083e65a3e9a0945b150701349afa81a0e9e (patch) | |
tree | a6a89fa83c78d812a7f6a38e851659cf443269dd /src/testing/test_merchant_kyc.sh | |
parent | a8b2456ecf47e2650f8bac1da3cc25b4ace54d24 (diff) |
work towards multi-currency support
Diffstat (limited to 'src/testing/test_merchant_kyc.sh')
-rwxr-xr-x | src/testing/test_merchant_kyc.sh | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/testing/test_merchant_kyc.sh b/src/testing/test_merchant_kyc.sh index 663590b1..c76f1387 100755 --- a/src/testing/test_merchant_kyc.sh +++ b/src/testing/test_merchant_kyc.sh @@ -21,7 +21,7 @@ set -eu . setup.sh # Launch system. -setup -c "test_template.conf" -m -u "exchange-account-1" +setup -c "test_template.conf" -mef -u "exchange-account-2" LAST_RESPONSE=$(mktemp -p "${TMPDIR:-/tmp}" test_response.conf-XXXXXX) echo -n "Configuring a merchant default instance ..." @@ -89,12 +89,13 @@ STATUS=$(curl 'http://localhost:9966/instances/default/private/orders' \ if [ "$STATUS" != "200" ] then - echo 'should respond 200 OK, order created. got:' $STATUS `cat "$LAST_RESPONSE"` + echo "Should respond 200 OK, order created. got: $STATUS" + jq < "$LAST_RESPONSE" exit 1 fi -ORDER_ID=`jq -r .order_id < "$LAST_RESPONSE"` -TOKEN=`jq -r .token < "$LAST_RESPONSE"` +ORDER_ID=$(jq -r .order_id < "$LAST_RESPONSE") +TOKEN=$(jq -r .token < "$LAST_RESPONSE") if [ "$TOKEN" != "null" ] then @@ -108,7 +109,7 @@ echo -n "Checking created order without TOKEN..." STATUS=$(curl http://localhost:9966/orders/$ORDER_ID \ -w "%{http_code}" -s -o "$LAST_RESPONSE") -PAY_URI=`jq -r .taler_pay_uri < "$LAST_RESPONSE"` +PAY_URI=$(jq -r .taler_pay_uri < "$LAST_RESPONSE") if [ "$PAY_URI" == "null" ] then |