gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[taler-merchant] branch master updated: make test_merchant_api build aga


From: gnunet
Subject: [taler-merchant] branch master updated: make test_merchant_api build again
Date: Sat, 18 Jan 2020 23:51:42 +0100

This is an automated email from the git hooks/post-receive script.

dold pushed a commit to branch master
in repository merchant.

The following commit(s) were added to refs/heads/master by this push:
     new f639334  make test_merchant_api build again
f639334 is described below

commit f63933420848927128b5d50afff3936ae08ca1e2
Author: Florian Dold <address@hidden>
AuthorDate: Sat Jan 18 23:51:37 2020 +0100

    make test_merchant_api build again
---
 src/lib/test_merchant_api.c | 46 +++++++++++++++------------------------------
 1 file changed, 15 insertions(+), 31 deletions(-)

diff --git a/src/lib/test_merchant_api.c b/src/lib/test_merchant_api.c
index 67c2059..59afaae 100644
--- a/src/lib/test_merchant_api.c
+++ b/src/lib/test_merchant_api.c
@@ -1,6 +1,6 @@
 /*
   This file is part of TALER
-  Copyright (C) 2014-2019 Taler Systems SA
+  Copyright (C) 2014-2020 Taler Systems SA
 
   TALER is free software; you can redistribute it and/or modify
   it under the terms of the GNU General Public License as
@@ -17,7 +17,7 @@
   <http://www.gnu.org/licenses/>
 */
 /**
- * @file exchange/test_merchant_api.c
+ * @file lib/test_merchant_api.c
  * @brief testcase to test exchange's HTTP API interface
  * @author Sree Harsha Totakura <address@hidden>
  * @author Christian Grothoff
@@ -54,7 +54,6 @@ static const char *pickup_amounts_1[] = {"EUR:5", NULL};
  */
 static char *fakebank_url;
 
-static struct TALER_WireTransferIdentifierRawP wtid;
 static char *payer_payto;
 static struct TALER_BANK_AuthenticationData auth;
 static char *exchange_payto;
@@ -77,11 +76,6 @@ static struct GNUNET_OS_Process *merchantd;
  */
 static char *exchange_url;
 
-/**
- * Auditor base URL; only used to fix FTBFS.
- */
-static char *auditor_url;
-
 /**
  * Map for #intern()
  */
@@ -153,7 +147,7 @@ CMD_TRANSFER_TO_EXCHANGE (char *label, char *amount)
   return TALER_TESTING_cmd_admin_add_incoming (label,
                                                amount,
                                                &auth,
-                                               customer_payto);
+                                               payer_payto);
 }
 
 
@@ -421,13 +415,8 @@ run (void *cls,
       merchant_url,
       MHD_HTTP_OK,
       "check_bank_transfer-498c"),
-    TALER_TESTING_cmd_transfer
-      ("create-reserve-2",
-      "EUR:1",
-      &auth,
-      exchange_payto,
-      &wtid,
-      EXCHANGE_URL),
+    CMD_TRANSFER_TO_EXCHANGE ("create-reserve-2",
+                              "EUR:1"),
     TALER_TESTING_cmd_admin_add_incoming_with_ref
       ("create-reserve-2b",
       "EUR:4.01",
@@ -563,13 +552,14 @@ run (void *cls,
       "EUR:0.01",
       MHD_HTTP_NOT_FOUND),
 
-    /**
-     * The following block will (1) create a new
-     * reserve, then (2) a proposal, then (3) pay for
-     * it, and finally (4) attempt to pick up a refund
-     * from it without any increasing taking place
-     * in the first place.
-     **/CMD_TRANSFER_TO_EXCHANGE ("create-reserve-unincreased-refund",
+    /*
+       The following block will (1) create a new
+       reserve, then (2) a proposal, then (3) pay for
+       it, and finally (4) attempt to pick up a refund
+       from it without any increasing taking place
+       in the first place.
+     */
+    CMD_TRANSFER_TO_EXCHANGE ("create-reserve-unincreased-refund",
                               "EUR:5.01"),
 
     CMD_EXEC_WIREWATCH ("wirewatch-unincreased-refund"),
@@ -834,14 +824,8 @@ run (void *cls,
   };
 
   struct TALER_TESTING_Command pay_again[] = {
-
-    TALER_TESTING_cmd_transfer
-      ("create-reserve-10",
-      "EUR:10.02",
-      &auth,
-      exchange_payto,
-      &wtid,
-      EXCHANGE_URL),
+    CMD_TRANSFER_TO_EXCHANGE ("create-reserve-1",
+                              "EUR:10.02"),
 
     CMD_EXEC_WIREWATCH ("wirewatch-10"),
 

-- 
To stop receiving notification emails like this one, please contact
address@hidden.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]