[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [taler-exchange] branch master updated: Splitting twisted t
From: |
gnunet |
Subject: |
[GNUnet-SVN] [taler-exchange] branch master updated: Splitting twisted test case into smaller CMD chunks. |
Date: |
Mon, 25 Jun 2018 14:41:33 +0200 |
This is an automated email from the git hooks/post-receive script.
marcello pushed a commit to branch master
in repository exchange.
The following commit(s) were added to refs/heads/master by this push:
new 6500fab Splitting twisted test case into smaller CMD chunks.
6500fab is described below
commit 6500fab93b11a7d404324f5c997b4092c5bdbbbd
Author: Marcello Stanisci <address@hidden>
AuthorDate: Mon Jun 25 14:41:07 2018 +0200
Splitting twisted test case into smaller CMD chunks.
---
src/exchange-lib/test_exchange_api_twisted.c | 42 ++++++++++++++++++----------
1 file changed, 27 insertions(+), 15 deletions(-)
diff --git a/src/exchange-lib/test_exchange_api_twisted.c
b/src/exchange-lib/test_exchange_api_twisted.c
index 7d24fbc..5cbe4b8 100644
--- a/src/exchange-lib/test_exchange_api_twisted.c
+++ b/src/exchange-lib/test_exchange_api_twisted.c
@@ -140,7 +140,12 @@ run (void *cls,
struct TALER_TESTING_Interpreter *is)
{
- struct TALER_TESTING_Command commands[] = {
+
+ /**
+ * This batch aims to trigger the 409 Conflict
+ * response from a refresh-reveal operation.
+ */
+ struct TALER_TESTING_Command refresh_409_conflict[] = {
CMD_TRANSFER_TO_EXCHANGE
("refresh-create-reserve",
@@ -198,14 +203,12 @@ run (void *cls,
"refresh-melt",
MHD_HTTP_CONFLICT),
- /* Next chunk, refund conflicts
-
- (contract hash missmatch [!],
- original deposit does not exist V,
- currency missmatch) V;
-
- 'refund_transaction()' has many of the relevant cases;
- */
+ TALER_TESTING_cmd_end ()
+
+ };
+
+
+ struct TALER_TESTING_Command refund[] = {
CMD_TRANSFER_TO_EXCHANGE
("create-reserve-r1",
@@ -261,12 +264,9 @@ run (void *cls,
"EUR:0.01",
"deposit-refund-1"),
- /* This deposit CMD is used to provide "good" traits
- * to the next refund CMD, where 'good' means that the
- * POST /refund will pass the signature verification,
- * but the handler will then NOT judge the deposit as
- * refundable - actually it won't be found since it will
- * fail as double-spending attempt. */
+ /* This next deposit CMD is only used to provide a
+ * good merchant signature to the next (failing) refund
+ * operations. */
TALER_TESTING_cmd_deposit
("deposit-refund-to-fail",
@@ -307,6 +307,18 @@ run (void *cls,
"deposit-refund-1"),
TALER_TESTING_cmd_end ()
+
+ };
+
+ struct TALER_TESTING_Command commands[] = {
+
+ TALER_TESTING_cmd_batch ("refresh-reveal-409-conflict",
+ refresh_409_conflict),
+
+ TALER_TESTING_cmd_batch ("refund",
+ refund),
+
+ TALER_TESTING_cmd_end ()
};
TALER_TESTING_run_with_fakebank (is,
--
To stop receiving notification emails like this one, please contact
address@hidden
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] [taler-exchange] branch master updated: Splitting twisted test case into smaller CMD chunks.,
gnunet <=