[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [taler-merchant] 04/04: Finish splitting main "lib" test ca
From: |
gnunet |
Subject: |
[GNUnet-SVN] [taler-merchant] 04/04: Finish splitting main "lib" test cases. |
Date: |
Tue, 26 Jun 2018 12:51:31 +0200 |
This is an automated email from the git hooks/post-receive script.
marcello pushed a commit to branch master
in repository merchant.
commit c2ae9340e072addc16dd6423938a55febb895978
Author: Marcello Stanisci <address@hidden>
AuthorDate: Tue Jun 26 12:50:53 2018 +0200
Finish splitting main "lib" test cases.
---
src/lib/test_merchant_api_new.c | 86 +++++++++++++++++++++++------------------
1 file changed, 48 insertions(+), 38 deletions(-)
diff --git a/src/lib/test_merchant_api_new.c b/src/lib/test_merchant_api_new.c
index 9f32802..301802a 100644
--- a/src/lib/test_merchant_api_new.c
+++ b/src/lib/test_merchant_api_new.c
@@ -857,44 +857,8 @@ run (void *cls,
TALER_TESTING_cmd_end ()
};
- struct TALER_TESTING_Command commands[] = {
-
- TALER_TESTING_cmd_batch ("pay",
- pay),
-
- TALER_TESTING_cmd_batch ("double-spending",
- double_spending),
-
- TALER_TESTING_cmd_batch ("track",
- track),
-
- /**
- * Just a weird /history request, not really tied to
- * any CMDs chunk.
- */
- TALER_TESTING_cmd_history
- ("history-2",
- merchant_url,
- is->ctx,
- MHD_HTTP_OK,
- GNUNET_TIME_absolute_add (GNUNET_TIME_UNIT_ZERO_ABS,
- GNUNET_TIME_UNIT_MICROSECONDS),
- /* zero results expected, time too ancient. */
- 0,
- 10,
- 10),
-
- TALER_TESTING_cmd_batch ("refund",
- refund),
+ struct TALER_TESTING_Command pay_again[] = {
- TALER_TESTING_cmd_batch ("tip",
- tip),
-
-// TALER_TESTING_cmd_batch ("pay-again",
- // pay_again),
-
-
- /* pay again logic. */
TALER_TESTING_cmd_fakebank_transfer
("create-reserve-10",
"EUR:10.02",
@@ -981,7 +945,10 @@ run (void *cls,
TALER_TESTING_cmd_check_bank_empty ("check_bank_empty-10"),
- /* pay abort */
+ TALER_TESTING_cmd_end ()
+ };
+
+ struct TALER_TESTING_Command pay_abort[] = {
CMD_TRANSFER_TO_EXCHANGE ("create-reserve-11",
"EUR:10.02"),
@@ -1072,6 +1039,49 @@ run (void *cls,
TALER_TESTING_cmd_check_bank_empty ("check_bank_empty-11"),
+ TALER_TESTING_cmd_end ()
+ };
+
+
+
+ struct TALER_TESTING_Command commands[] = {
+
+ TALER_TESTING_cmd_batch ("pay",
+ pay),
+
+ TALER_TESTING_cmd_batch ("double-spending",
+ double_spending),
+
+ TALER_TESTING_cmd_batch ("track",
+ track),
+
+ /**
+ * Just a weird /history request, not really tied to
+ * any CMDs chunk.
+ */
+ TALER_TESTING_cmd_history
+ ("history-2",
+ merchant_url,
+ is->ctx,
+ MHD_HTTP_OK,
+ GNUNET_TIME_absolute_add (GNUNET_TIME_UNIT_ZERO_ABS,
+ GNUNET_TIME_UNIT_MICROSECONDS),
+ /* zero results expected, time too ancient. */
+ 0,
+ 10,
+ 10),
+
+ TALER_TESTING_cmd_batch ("refund",
+ refund),
+
+ TALER_TESTING_cmd_batch ("tip",
+ tip),
+
+ TALER_TESTING_cmd_batch ("pay-again",
+ pay_again),
+
+ TALER_TESTING_cmd_batch ("pay-abort",
+ pay_abort),
/**
* End the suite. Fixme: better to have a label for this
* too, as it shows a "(null)" token on logs.
--
To stop receiving notification emails like this one, please contact
address@hidden
- [GNUnet-SVN] [taler-merchant] branch master updated (877f49d -> c2ae934), gnunet, 2018/06/26
- [GNUnet-SVN] [taler-merchant] 02/04: Splitting tests, up to tip, gnunet, 2018/06/26
- [GNUnet-SVN] [taler-merchant] 04/04: Finish splitting main "lib" test cases.,
gnunet <=
- [GNUnet-SVN] [taler-merchant] 03/04: Splitting tests, _actually_ up to tip, gnunet, 2018/06/26
- [GNUnet-SVN] [taler-merchant] 01/04: Splitting tests, up to refund, gnunet, 2018/06/26