summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMS <ms@taler.net>2022-08-30 09:11:07 +0200
committerMS <ms@taler.net>2022-08-30 09:11:07 +0200
commit977db5a9573d9824fca2b34804ee15d76f8fcbf1 (patch)
tree6afd767d6f4c00c903047f4eb2707a93b92c0a58
parent039f840ceee9685962c190fcf75824419b6c4c15 (diff)
downloadmerchant-977db5a9573d9824fca2b34804ee15d76f8fcbf1.tar.gz
merchant-977db5a9573d9824fca2b34804ee15d76f8fcbf1.tar.bz2
merchant-977db5a9573d9824fca2b34804ee15d76f8fcbf1.zip
tests: x-taler-bank => iban (finish FIXME-MS)
-rwxr-xr-xsrc/testing/test_merchant_order_creation.sh5
-rwxr-xr-xsrc/testing/test_merchant_product_creation.sh4
-rwxr-xr-xsrc/testing/test_merchant_transfer_tracking.sh10
3 files changed, 3 insertions, 16 deletions
diff --git a/src/testing/test_merchant_order_creation.sh b/src/testing/test_merchant_order_creation.sh
index 59f7151a..5fc7ee19 100755
--- a/src/testing/test_merchant_order_creation.sh
+++ b/src/testing/test_merchant_order_creation.sh
@@ -60,11 +60,6 @@ fi
# remove one account address
-# FIXME-MS: here we already need to get the TARGET_PAYTO, but this
-# is impossible: libeufin-cli sandbox bankaccount list gives me some HTML (!?)
-# and I have no other good way to get the (random) IBAN!
-# TARGET_PAYTO="payto://iban/SANDBOXX/$IBAN?receiver-name=Forty+Three"
-
STATUS=$(curl -H "Content-Type: application/json" -X PATCH \
-H 'Authorization: Bearer secret-token:super_secret' \
http://localhost:9966/instances/default/private/ \
diff --git a/src/testing/test_merchant_product_creation.sh b/src/testing/test_merchant_product_creation.sh
index ec50ea9a..9b109f0f 100755
--- a/src/testing/test_merchant_product_creation.sh
+++ b/src/testing/test_merchant_product_creation.sh
@@ -21,12 +21,10 @@
echo -n "Configuring merchant instance ..."
FORTYTHREE=`get_payto_uri fortythree x`
-# FIXME-MS: x-taler-bank here will not work, now
-# that we are using 'iban' with libeufin!
STATUS=$(curl -H "Content-Type: application/json" -X POST \
-H 'Authorization: Bearer secret-token:super_secret' \
http://localhost:9966/management/instances \
- -d '{"auth":{"method":"external"},"payto_uris":["payto://x-taler-bank/localhost:8082/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_us" : 50000000},"default_pay_delay":{"d_us": 60000000}}' \
+ -d '{"auth":{"method":"external"},"payto_uris":["'$FORTYTHREE'"],"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_us" : 50000000},"default_pay_delay":{"d_us": 60000000}}' \
-w "%{http_code}" -s -o /dev/null)
if [ "$STATUS" != "204" ]
diff --git a/src/testing/test_merchant_transfer_tracking.sh b/src/testing/test_merchant_transfer_tracking.sh
index 435e62e2..5626b95b 100755
--- a/src/testing/test_merchant_transfer_tracking.sh
+++ b/src/testing/test_merchant_transfer_tracking.sh
@@ -44,13 +44,10 @@ TOR_PAYTO=`get_payto_uri tor x`
GNUNET_PAYTO=`get_payto_uri gnunet x`
# create with 2 address
-# FIXME-MS: x-taler-bank here will not work, now
-# that we are using 'iban' with libeufin!
-
STATUS=$(curl -H "Content-Type: application/json" -X POST \
-H 'Authorization: Bearer secret-token:super_secret' \
http://localhost:9966/management/instances \
- -d '{"auth":{"method":"external"},"payto_uris":["payto://x-taler-bank/localhost:8082/Tor","payto://x-taler-bank/localhost:8082/GNUnet"],"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_us" : 50000000},"default_pay_delay":{"d_us": 60000000}}' \
+ -d '{"auth":{"method":"external"},"payto_uris":["'$TOR_PAYTO'","'$GNUNET_PAYTO'"],"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_us" : 50000000},"default_pay_delay":{"d_us": 60000000}}' \
-w "%{http_code}" -s -o /dev/null)
if [ "$STATUS" != "204" ]
@@ -67,13 +64,10 @@ SURVEY_PAYTO=`get_payto_uri survey x`
TUTORIAL_PAYTO=`get_payto_uri tutorial x`
# create with 2 address
-# FIXME-MS: x-taler-bank here will not work, now
-# that we are using 'iban' with libeufin!
-
STATUS=$(curl -H "Content-Type: application/json" -X POST \
-H 'Authorization: Bearer secret-token:super_secret' \
http://localhost:9966/management/instances \
- -d '{"auth":{"method":"external"},"payto_uris":["payto://x-taler-bank/localhost:8082/Survey","payto://x-taler-bank/localhost:8082/Tutorial"],"id":"test","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_us" : 50000000},"default_pay_delay":{"d_us": 60000000}}' \
+ -d '{"auth":{"method":"external"},"payto_uris":["'$SURVEY_PAYTO'","'$TUTORIAL_PAYTO'"],"id":"test","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_us" : 50000000},"default_pay_delay":{"d_us": 60000000}}' \
-w "%{http_code}" -s -o /dev/null)
if [ "$STATUS" != "204" ]