[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-merchant] branch master updated: modify test to fail when no addr
From: |
gnunet |
Subject: |
[taler-merchant] branch master updated: modify test to fail when no address or next_restock for infinite product |
Date: |
Tue, 20 Apr 2021 06:37:18 +0200 |
This is an automated email from the git hooks/post-receive script.
sebasjm pushed a commit to branch master
in repository merchant.
The following commit(s) were added to refs/heads/master by this push:
new c5988eed modify test to fail when no address or next_restock for
infinite product
c5988eed is described below
commit c5988eed3e5fd33367e4a86d85c7fee8258d22b6
Author: Sebastian <sebasjm@gmail.com>
AuthorDate: Tue Apr 20 01:36:55 2021 -0300
modify test to fail when no address or next_restock for infinite product
---
src/testing/test_merchant_order_creation.sh | 1 -
src/testing/test_merchant_product_creation.sh | 5 +----
2 files changed, 1 insertion(+), 5 deletions(-)
diff --git a/src/testing/test_merchant_order_creation.sh
b/src/testing/test_merchant_order_creation.sh
index 5d856161..f08122d8 100755
--- a/src/testing/test_merchant_order_creation.sh
+++ b/src/testing/test_merchant_order_creation.sh
@@ -236,7 +236,6 @@ STATUS=$(curl
'http://localhost:9966/instances/default/private/transfers' \
if [ "$STATUS" != "200" ]
then
echo `cat $LAST_RESPONSE`
- bash
exit_fail "Expected response ok, after providing transfer data. got:
$STATUS"
fi
diff --git a/src/testing/test_merchant_product_creation.sh
b/src/testing/test_merchant_product_creation.sh
index 95ae7044..cbfdb6c8 100755
--- a/src/testing/test_merchant_product_creation.sh
+++ b/src/testing/test_merchant_product_creation.sh
@@ -18,7 +18,7 @@ fi
echo OK
RANDOM_IMG='data:image/png;base64,abcdefg'
-INFINITE_PRODUCT_TEMPLATE='{"product_id":"2","description":"product with id 2
and price
:15","price":"TESTKUDOS:15","total_stock":-1,"description_i18n":{},"unit":"","image":"'$RANDOM_IMG'","taxes":[],"address":{},"next_restock":{"t_ms":"never"}}'
+INFINITE_PRODUCT_TEMPLATE='{"product_id":"2","description":"product with id 2
and price
:15","price":"TESTKUDOS:15","total_stock":-1,"description_i18n":{},"unit":"","image":"'$RANDOM_IMG'","taxes":[]}'
PRODUCT_DATA=$INFINITE_PRODUCT_TEMPLATE
@@ -36,9 +36,6 @@ echo OK
PRODUCT_DATA=$(echo $PRODUCT_DATA | jq 'del(.product_id)')
PRODUCT_DATA=$(echo $PRODUCT_DATA | jq '. + {description: "other
description"}')
-PRODUCT_DATA=$(echo $PRODUCT_DATA | jq '. + {total_lost: 0}')
-
-# PRODUCT_DATA=$(echo $PRODUCT_DATA | jq '. + {total_stock: 1}')
echo -n "Updating product..."
STATUS=$(curl 'http://localhost:9966/instances/default/private/products/2' -X
PATCH \
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [taler-merchant] branch master updated: modify test to fail when no address or next_restock for infinite product,
gnunet <=