summaryrefslogtreecommitdiff
path: root/src/testing/test_merchant_reserve_creation.sh
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2021-08-05 18:55:53 +0200
committerChristian Grothoff <christian@grothoff.org>2021-08-05 18:55:53 +0200
commitc9d29b909d092dc9d5c230f496905fa3a07f64f0 (patch)
treeb0767d0a7e079ee81ac09310b2deeeb776d1be17 /src/testing/test_merchant_reserve_creation.sh
parent79b90fbb7780c2a1d250971fa42565e137432bc8 (diff)
downloadmerchant-c9d29b909d092dc9d5c230f496905fa3a07f64f0.tar.gz
merchant-c9d29b909d092dc9d5c230f496905fa3a07f64f0.tar.bz2
merchant-c9d29b909d092dc9d5c230f496905fa3a07f64f0.zip
-merge sebastjm's #6945 branch/fix, and fix an issue in the test logic
Diffstat (limited to 'src/testing/test_merchant_reserve_creation.sh')
-rwxr-xr-xsrc/testing/test_merchant_reserve_creation.sh6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/testing/test_merchant_reserve_creation.sh b/src/testing/test_merchant_reserve_creation.sh
index a575c236..96734478 100755
--- a/src/testing/test_merchant_reserve_creation.sh
+++ b/src/testing/test_merchant_reserve_creation.sh
@@ -8,7 +8,7 @@ echo -n "Configuring merchant instance ..."
# create instance
STATUS=$(curl -H "Content-Type: application/json" -X POST \
-H 'Authorization: Bearer secret-token:super_secret' \
- http://localhost:9966/private/instances \
+ http://localhost:9966/management/instances \
-d '{"auth":{"method":"external"},"payto_uris":["payto://x-taler-bank/'$BANK_URL'/43"],"id":"default","name":"default","address":{},"jurisdiction":{},"default_max_wire_fee":"TESTKUDOS:1", "default_max_deposit_fee":"TESTKUDOS:1","default_wire_fee_amortization":1,"default_wire_transfer_delay":{"d_ms" : 50000},"default_pay_delay":{"d_ms": 60000}}' \
-w "%{http_code}" -s -o /dev/null)
@@ -89,7 +89,7 @@ STATUS=$(curl 'http://localhost:9966/instances/default/private/reserves/'$RESERV
if [ "$STATUS" != "200" ]
then
- echo 'should respond failed, we didn't funded yet. got:' $STATUS
+ echo 'should respond failed, we did not fund yet. got:' $STATUS
exit 1
fi
@@ -154,5 +154,3 @@ echo "FAILED (which is ok)"
exit 0
-
-