gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[taler-merchant] branch master updated: adapt tests to new TWG


From: gnunet
Subject: [taler-merchant] branch master updated: adapt tests to new TWG
Date: Fri, 22 Sep 2023 09:18:34 +0200

This is an automated email from the git hooks/post-receive script.

grothoff pushed a commit to branch master
in repository merchant.

The following commit(s) were added to refs/heads/master by this push:
     new a6bfe6b4 adapt tests to new TWG
a6bfe6b4 is described below

commit a6bfe6b4640f01297798fb3ce16393a048da2259
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Fri Sep 22 09:18:26 2023 +0200

    adapt tests to new TWG
---
 src/testing/test_merchant_order_creation.sh    | 10 +++++-----
 src/testing/test_merchant_transfer_tracking.sh |  2 +-
 2 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/src/testing/test_merchant_order_creation.sh 
b/src/testing/test_merchant_order_creation.sh
index 602aad36..3fadd358 100755
--- a/src/testing/test_merchant_order_creation.sh
+++ b/src/testing/test_merchant_order_creation.sh
@@ -419,11 +419,11 @@ echo -n "Give time to Nexus to route the payment to 
Sandbox..."
 sleep 3
 echo " DONE"
 
-echo -n "Obtaining wire transfer details from bank..."
+echo -n "Obtaining wire transfer details from bank ($USE_FAKEBANK)..."
 
 if [ 1 = "$USE_FAKEBANK" ]
 then
-    BANKDATA="$(curl 'http://localhost:8082/exchange/history/outgoing?delta=1' 
-s)"
+    BANKDATA="$(curl 
'http://localhost:8082/accounts/exchange/taler-wire-gateway/history/outgoing?delta=1'
 -s)"
     WTID=$(echo "$BANKDATA" | jq -r .outgoing_transactions[0].wtid)
     WURL=$(echo "$BANKDATA" | jq -r 
.outgoing_transactions[0].exchange_base_url)
     CREDIT_AMOUNT=$(echo "$BANKDATA" | jq -r .outgoing_transactions[0].amount)
@@ -445,7 +445,7 @@ fi
 
 if [ "$EXCHANGE_URL" != "$WURL" ]
 then
-    exit_fail "Wrong exchange URL in subject '$SUBJECT', expected 
'$EXCHANGE_URL'"
+    exit_fail "Wrong exchange URL in '$BANKDATA' response, expected 
'$EXCHANGE_URL'"
 fi
 
 echo " OK"
@@ -584,7 +584,7 @@ echo " OK"
 echo -n "Checking bank account status ..."
 if [ 1 = "$USE_FAKEBANK" ]
 then
-    STATUS=$(curl 
"http://localhost:8082/taler-bank-access/accounts/fortythree"; \
+    STATUS=$(curl "http://localhost:8082/accounts/fortythree"; \
                   -w "%{http_code}" \
                   -s \
                   -o "$LAST_RESPONSE")
@@ -603,7 +603,7 @@ else
     ACCOUNT_PASSWORD="fortythree:x"
     BANK_HOST="localhost:18082"
     # Can be replaced by the libeufin-cli way.
-    STATUS=$(curl 
"http://$ACCOUNT_PASSWORD@$BANK_HOST/demobanks/default/access-api/accounts/fortythree";
 \
+    STATUS=$(curl "http://$ACCOUNT_PASSWORD@$BANK_HOST/accounts/fortythree"; \
                   -w "%{http_code}" -s -o "$LAST_RESPONSE")
     if [ "$STATUS" != "200" ]
     then
diff --git a/src/testing/test_merchant_transfer_tracking.sh 
b/src/testing/test_merchant_transfer_tracking.sh
index 55a8155d..dfd5f5d2 100755
--- a/src/testing/test_merchant_transfer_tracking.sh
+++ b/src/testing/test_merchant_transfer_tracking.sh
@@ -253,7 +253,7 @@ echo -n "Obtaining wire transfer details from bank..."
 
 if [ 1 = "$USE_FAKEBANK" ]
 then
-    BANKDATA="$(curl 'http://localhost:8082/exchange/history/outgoing?delta=1' 
-s)"
+    BANKDATA="$(curl 
'http://localhost:8082/accounts/exchange/taler-wire-gateway/history/outgoing?delta=1'
 -s)"
     WTID=$(echo "$BANKDATA" | jq -r .outgoing_transactions[0].wtid)
     WURL=$(echo "$BANKDATA" | jq -r 
.outgoing_transactions[0].exchange_base_url)
     CREDIT_AMOUNT=$(echo "$BANKDATA" | jq -r .outgoing_transactions[0].amount)

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]