[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [taler-merchant] branch master updated: test tip_enable API
From: |
gnunet |
Subject: |
[GNUnet-SVN] [taler-merchant] branch master updated: test tip_enable API |
Date: |
Wed, 01 Nov 2017 12:04:01 +0100 |
This is an automated email from the git hooks/post-receive script.
grothoff pushed a commit to branch master
in repository merchant.
The following commit(s) were added to refs/heads/master by this push:
new 26f8dda test tip_enable API
26f8dda is described below
commit 26f8dda0fe79159fcb47acb9706d8dad8a2426dc
Author: Christian Grothoff <address@hidden>
AuthorDate: Wed Nov 1 12:03:57 2017 +0100
test tip_enable API
---
src/lib/merchant_api_tip_enable.c | 1 +
src/lib/reserve_tip.priv | Bin 0 -> 32 bytes
src/lib/test_merchant_api.c | 10 ++++++++++
3 files changed, 11 insertions(+)
diff --git a/src/lib/merchant_api_tip_enable.c
b/src/lib/merchant_api_tip_enable.c
index 6b57594..eb7dadf 100644
--- a/src/lib/merchant_api_tip_enable.c
+++ b/src/lib/merchant_api_tip_enable.c
@@ -145,6 +145,7 @@ TALER_MERCHANT_tip_enable (struct GNUNET_CURL_Context *ctx,
CURL *eh;
json_t *te_obj;
+ (void) GNUNET_TIME_round_abs (&expiration);
teo = GNUNET_new (struct TALER_MERCHANT_TipEnableOperation);
teo->ctx = ctx;
teo->cb = enable_cb;
diff --git a/src/lib/reserve_tip.priv b/src/lib/reserve_tip.priv
new file mode 100644
index 0000000..3cd7505
Binary files /dev/null and b/src/lib/reserve_tip.priv differ
diff --git a/src/lib/test_merchant_api.c b/src/lib/test_merchant_api.c
index adbd52c..b0b546e 100644
--- a/src/lib/test_merchant_api.c
+++ b/src/lib/test_merchant_api.c
@@ -3108,6 +3108,16 @@ run (void *cls)
.details.admin_add_incoming.transfer_details
= "{ \"uuid\": 100}",
.details.admin_add_incoming.amount = "EUR:10.02" },
+ { .oc = OC_TIP_ENABLE,
+ .label = "enable-tip-1",
+ .expected_response_code = MHD_HTTP_OK,
+ .details.tip_enable.admin_add_incoming_ref = "create-reserve-tip-1",
+ .details.tip_enable.amount = "EUR:5.01" },
+ { .oc = OC_TIP_ENABLE,
+ .label = "enable-tip-2",
+ .expected_response_code = MHD_HTTP_OK,
+ .details.tip_enable.admin_add_incoming_ref = "create-reserve-tip-1",
+ .details.tip_enable.amount = "EUR:5.01" },
/* Fill reserve with EUR:5.01, as withdraw fee is 1 ct per
--
To stop receiving notification emails like this one, please contact
address@hidden
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] [taler-merchant] branch master updated: test tip_enable API,
gnunet <=