diff options
author | Christian Grothoff <christian@grothoff.org> | 2024-02-06 00:12:10 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2024-02-06 00:12:10 +0100 |
commit | e51192f0e708670b19acfb3fc1c969f1702a334c (patch) | |
tree | b8262bfcd609762d278bb412ce3050a89dbb78e6 /src/testing/test_merchant_instance_auth.sh | |
parent | 4e0b8b34dd32e233b252a76798dca1f4823b7a4f (diff) | |
download | merchant-e51192f0e708670b19acfb3fc1c969f1702a334c.tar.gz merchant-e51192f0e708670b19acfb3fc1c969f1702a334c.tar.bz2 merchant-e51192f0e708670b19acfb3fc1c969f1702a334c.zip |
deprecate '/instances/default', for clients to just use the shorter '/' path for the default instance
Diffstat (limited to 'src/testing/test_merchant_instance_auth.sh')
-rwxr-xr-x | src/testing/test_merchant_instance_auth.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/testing/test_merchant_instance_auth.sh b/src/testing/test_merchant_instance_auth.sh index ce6b1e07..1dea1368 100755 --- a/src/testing/test_merchant_instance_auth.sh +++ b/src/testing/test_merchant_instance_auth.sh @@ -51,7 +51,7 @@ fi STATUS=$(curl -H "Content-Type: application/json" -X POST \ -H 'Authorization: Bearer secret-token:new_value' \ - http://localhost:9966/instances/default/private/accounts \ + http://localhost:9966/private/accounts \ -d '{"payto_uri":"payto://x-taler-bank/localhost:8082/43"}' \ -w "%{http_code}" -s -o /dev/null) @@ -96,7 +96,7 @@ fi echo -n "Creating order to test auth is ok..." >&2 STATUS=$(curl -H "Content-Type: application/json" -X POST \ - 'http://localhost:9966/instances/default/private/orders' \ + 'http://localhost:9966/private/orders' \ -H 'Authorization: Bearer '"$NEW_SECRET" \ -d '{"order":{"amount":"TESTKUDOS:1","summary":"payme"}}' \ -w "%{http_code}" -s -o "$LAST_RESPONSE") @@ -110,7 +110,7 @@ fi ORDER_ID=$(jq -e -r .order_id < "$LAST_RESPONSE") TOKEN=$(jq -e -r .token < "$LAST_RESPONSE") -STATUS=$(curl "http://localhost:9966/instances/default/private/orders/${ORDER_ID}" \ +STATUS=$(curl "http://localhost:9966/private/orders/${ORDER_ID}" \ -H 'Authorization: Bearer '"$NEW_SECRET" \ -w "%{http_code}" -s -o "$LAST_RESPONSE") |