gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] [taler-merchant] branch master updated: Testing replayed pa


From: gnunet
Subject: [GNUnet-SVN] [taler-merchant] branch master updated: Testing replayed payment.
Date: Mon, 13 Feb 2017 15:15:19 +0100

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

marcello pushed a commit to branch master
in repository merchant.

The following commit(s) were added to refs/heads/master by this push:
     new 405b696  Testing replayed payment.
405b696 is described below

commit 405b696e57c3e35a72046f01896fb1c5c0cc46e6
Author: Marcello Stanisci <address@hidden>
AuthorDate: Mon Feb 13 15:15:07 2017 +0100

    Testing replayed payment.
---
 src/lib/test_merchant_api.c | 12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)

diff --git a/src/lib/test_merchant_api.c b/src/lib/test_merchant_api.c
index 286f002..f0fca8e 100644
--- a/src/lib/test_merchant_api.c
+++ b/src/lib/test_merchant_api.c
@@ -2294,6 +2294,7 @@ run (void *cls)
                  \"summary\": \"merchant-lib testcase\",\
                   \"products\":\
                      [ {\"description\":\"ice cream\", \"value\":\"{EUR:5}\"} 
] }"},
+
     { .oc = OC_PAY,
       .label = "deposit-simple",
       .expected_response_code = MHD_HTTP_OK,
@@ -2302,6 +2303,15 @@ run (void *cls)
       .details.pay.amount_with_fee = "EUR:5",
       .details.pay.amount_without_fee = "EUR:4.99" },
 
+    /* Try to replay payment reusing coin */
+    { .oc = OC_PAY,
+      .label = "replay-simple",
+      .expected_response_code = MHD_HTTP_OK,
+      .details.pay.contract_ref = "create-proposal-1",
+      .details.pay.coin_ref = "withdraw-coin-1",
+      .details.pay.amount_with_fee = "EUR:5",
+      .details.pay.amount_without_fee = "EUR:4.99" },
+
 
     /* Create another contract */
     { .oc = OC_PROPOSAL,
@@ -2352,7 +2362,7 @@ run (void *cls)
       .details.reserve_withdraw.reserve_reference = "create-reserve-2",
       .details.reserve_withdraw.amount = "EUR:5" },
 
-    /* Fetch contract-1 */
+    /* Proposal lookup */
     {
       .oc = OC_PROPOSAL_LOOKUP, 
       .label = "fetch-proposal-2",

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



reply via email to

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