[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [taler-merchant] branch master updated: Payment generator g
From: |
gnunet |
Subject: |
[GNUnet-SVN] [taler-merchant] branch master updated: Payment generator got 202 tracks. |
Date: |
Wed, 06 Jun 2018 12:10:39 +0200 |
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 e76fe05 Payment generator got 202 tracks.
e76fe05 is described below
commit e76fe059808293206f43b293bf2dc2cdde1a6df2
Author: Marcello Stanisci <address@hidden>
AuthorDate: Wed Jun 6 12:09:29 2018 +0200
Payment generator got 202 tracks.
We deliberately leave one deposit unaggregated
at the payment generator, in order to be able to
test a 202 Accepted response from /track/transaction.
---
.../taler-merchant-generate-payments_new.c | 52 +++++++++++++++++++++-
1 file changed, 51 insertions(+), 1 deletion(-)
diff --git a/src/merchant-tools/taler-merchant-generate-payments_new.c
b/src/merchant-tools/taler-merchant-generate-payments_new.c
index 4039d85..cc7bb0f 100644
--- a/src/merchant-tools/taler-merchant-generate-payments_new.c
+++ b/src/merchant-tools/taler-merchant-generate-payments_new.c
@@ -126,7 +126,7 @@ run (void *cls,
CMD_TRANSFER_TO_EXCHANGE
("create-reserve-1",
- "USD:10.02"),
+ "USD:15.03"),
TALER_TESTING_cmd_exec_wirewatch
("wirewatch-1",
@@ -146,6 +146,15 @@ run (void *cls,
"USD:5",
MHD_HTTP_OK),
+ /* This coin will be spent but never aggregated,
+ * in order to get 202 responses from tracks. */
+ TALER_TESTING_cmd_withdraw_amount
+ ("withdraw-coin-3",
+ is->exchange,
+ "create-reserve-1",
+ "USD:5",
+ MHD_HTTP_OK),
+
TALER_TESTING_cmd_proposal
("create-proposal-1",
merchant_url,
@@ -242,6 +251,47 @@ run (void *cls,
"track-transaction-1",
"deposit-simple-2"),
+ TALER_TESTING_cmd_proposal
+ ("create-proposal-3",
+ merchant_url,
+ is->ctx,
+ MHD_HTTP_OK,
+ "{\"max_fee\":\
+ {\"currency\":\"USD\",\
+ \"value\":0,\
+ \"fraction\":50000000},\
+ \"refund_deadline\":\"\\/Date(0)\\/\",\
+ \"pay_deadline\":\"\\/Date(99999999999)\\/\",\
+ \"amount\":\
+ {\"currency\":\"USD\",\
+ \"value\":5,\
+ \"fraction\":0},\
+ \"summary\": \"unaggregated deposit!\",\
+ \"fulfillment_url\": \"https://example.com/\",\
+ \"products\": [ {\"description\":\"unaggregated cream\",\
+ \"value\":\"{USD:5}\"} ] }",
+ NULL),
+
+ TALER_TESTING_cmd_pay
+ ("deposit-simple-3",
+ merchant_url,
+ is->ctx,
+ MHD_HTTP_OK,
+ "create-proposal-3",
+ "withdraw-coin-3",
+ "USD:5",
+ "USD:4.99",
+ "USD:0.01"),
+
+ TALER_TESTING_cmd_merchant_track_transaction
+ ("track-transaction-2",
+ merchant_url,
+ is->ctx,
+ MHD_HTTP_ACCEPTED,
+ "dummy", // "check bank" CMD, never used, to be deleted.
+ "deposit-simple-3",
+ "USD:0.01"),
+
TALER_TESTING_cmd_rewind_ip
("rewind-tracks",
TRACKS_INSTRUCTION,
--
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: Payment generator got 202 tracks.,
gnunet <=