merchant

Merchant backend to process payments, run by merchants
Log | Files | Refs | Submodules | README | LICENSE

commit 2263b81db99f9b43f60a67836cd0722aa25398ea
parent ad46f95ca5709750ad6959fd0a2ecd72e3f4ed37
Author: Christian Grothoff <christian@grothoff.org>
Date:   Mon, 23 Feb 2026 12:08:52 +0100

add test for #11036

Diffstat:
Msrc/testing/test_merchant_kyc.sh | 24++++++++++++++++++++++++
1 file changed, 24 insertions(+), 0 deletions(-)

diff --git a/src/testing/test_merchant_kyc.sh b/src/testing/test_merchant_kyc.sh @@ -42,6 +42,10 @@ then exit_fail "Expected 204 ok, instance created. got: $STATUS" fi +echo " OK" + +echo -n "Creating account ..." + STATUS=$(curl -H "Content-Type: application/json" -X POST \ -H 'Authorization: Bearer secret-token:super_secret' \ http://localhost:9966/private/accounts \ @@ -54,6 +58,26 @@ then exit_fail "Expected 200 OK. Got: $STATUS" fi +echo " OK" + +echo -n "Creating conflicting account with different receiver name ..." + +STATUS=$(curl -H "Content-Type: application/json" -X POST \ + -H 'Authorization: Bearer secret-token:super_secret' \ + http://localhost:9966/private/accounts \ + -d '{"payto_uri":"payto://x-taler-bank/localhost:8082/43?receiver-name=user44"}' \ + -w "%{http_code}" -s -o /dev/null) + + +if [ "$STATUS" != "409" ] +then + exit_fail "Expected 409 Conflict. Got: $STATUS" +fi + +echo " OK" + +echo -n "Creating a second account ..." + STATUS=$(curl -H "Content-Type: application/json" -X POST \ -H 'Authorization: Bearer secret-token:super_secret' \ http://localhost:9966/private/accounts \