[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [taler-exchange] 01/06: prepare ground to refund twist-test
From: |
gnunet |
Subject: |
[GNUnet-SVN] [taler-exchange] 01/06: prepare ground to refund twist-tests. |
Date: |
Thu, 17 May 2018 13:11:23 +0200 |
This is an automated email from the git hooks/post-receive script.
marcello pushed a commit to branch master
in repository exchange.
commit 7a1bb2b4c8ea579f0745f9471922098a9daffa38
Author: Marcello Stanisci <address@hidden>
AuthorDate: Thu May 17 09:36:30 2018 +0200
prepare ground to refund twist-tests.
---
src/exchange-lib/test_exchange_api_twisted.c | 34 ++++++++++++++++++++++++++++
1 file changed, 34 insertions(+)
diff --git a/src/exchange-lib/test_exchange_api_twisted.c
b/src/exchange-lib/test_exchange_api_twisted.c
index 762f124..11533e2 100644
--- a/src/exchange-lib/test_exchange_api_twisted.c
+++ b/src/exchange-lib/test_exchange_api_twisted.c
@@ -198,6 +198,40 @@ run (void *cls,
"refresh-melt",
MHD_HTTP_CONFLICT),
+ /* Next chunk, refund conflicts (contract hash missmatch,
+ original deposit does not exist,
+ currency missmatch);
+
+ 'refund_transaction()' has many of the relevant cases;
+ */
+
+
+ CMD_TRANSFER_TO_EXCHANGE
+ ("create-reserve-r1",
+ "EUR:5.01"),
+ CMD_EXEC_WIREWATCH
+ ("wirewatch-r1"),
+ TALER_TESTING_cmd_withdraw_amount
+ ("withdraw-coin-r1",
+ is->exchange,
+ "create-reserve-r1",
+ "EUR:5",
+ MHD_HTTP_OK),
+
+ TALER_TESTING_cmd_deposit
+ ("deposit-refund-1",
+ is->exchange,
+ "withdraw-coin-r1",
+ 0,
+ TALER_TESTING_make_wire_details
+ (42,
+ fakebank_url),
+ "{\"items\":[{\"name\":\"ice cream\","
+ "\"value\":\"EUR:5\"}]}",
+ GNUNET_TIME_UNIT_MINUTES,
+ "EUR:5",
+ MHD_HTTP_OK),
+
TALER_TESTING_cmd_end ()
};
--
To stop receiving notification emails like this one, please contact
address@hidden
- [GNUnet-SVN] [taler-exchange] branch master updated (8ec523a -> e94e8c3), gnunet, 2018/05/17
- [GNUnet-SVN] [taler-exchange] 03/06: trigger refund fee currency missmatch., gnunet, 2018/05/17
- [GNUnet-SVN] [taler-exchange] 01/06: prepare ground to refund twist-tests.,
gnunet <=
- [GNUnet-SVN] [taler-exchange] 05/06: Trigger invalid merchant signature on refund, gnunet, 2018/05/17
- [GNUnet-SVN] [taler-exchange] 02/06: Adding the refund CMD, genuine for now, to be evil-tuned., gnunet, 2018/05/17
- [GNUnet-SVN] [taler-exchange] 04/06: Trigger above-amount error, gnunet, 2018/05/17
- [GNUnet-SVN] [taler-exchange] 06/06: Trigger deposit to refund not found, gnunet, 2018/05/17