merchant

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

commit 80cff233703977adcb8a8f16a3a78b91916cfb87
parent b2dab8c5d1597ff84c16b2c0d641808a180f7fb3
Author: Christian Grothoff <christian@grothoff.org>
Date:   Fri, 30 Jul 2021 21:11:33 +0200

-fix expected status code

Diffstat:
Msrc/testing/test_merchant_order_creation.sh | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/testing/test_merchant_order_creation.sh b/src/testing/test_merchant_order_creation.sh @@ -241,9 +241,9 @@ STATUS=$(curl 'http://localhost:9966/instances/default/private/products' \ -d '{"product_id":"1","description":"product with id 1 and price :15","price":"USD:15","total_stock":1,"description_i18n":{},"unit":"","image":"","taxes":[],"address":{},"next_restock":{"t_ms":"never"}}' \ -w "%{http_code}" -s -o /dev/null) -if [ "$STATUS" != "409" ] +if [ "$STATUS" != "400" ] then - echo 'should respond conflict, product price is in another currency. got:' $STATUS + echo 'should respond bad request, product price is in another currency. got:' $STATUS exit 1 fi