[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [taler-merchant] 05/05: Importing CMDs.
From: |
gnunet |
Subject: |
[GNUnet-SVN] [taler-merchant] 05/05: Importing CMDs. |
Date: |
Wed, 09 May 2018 16:24:40 +0200 |
This is an automated email from the git hooks/post-receive script.
marcello pushed a commit to branch master
in repository merchant.
commit f0de24740db7a0e62b9affd6a76780e0622a5fe0
Author: Marcello Stanisci <address@hidden>
AuthorDate: Wed May 9 16:23:29 2018 +0200
Importing CMDs.
CMDs up to "pay" were imported from existing
test case into the generator.
---
.../taler-merchant-generate-payments_new.c | 76 ++++++++++++++++++++--
1 file changed, 70 insertions(+), 6 deletions(-)
diff --git a/src/merchant-tools/taler-merchant-generate-payments_new.c
b/src/merchant-tools/taler-merchant-generate-payments_new.c
index 0233f1e..a2df433 100644
--- a/src/merchant-tools/taler-merchant-generate-payments_new.c
+++ b/src/merchant-tools/taler-merchant-generate-payments_new.c
@@ -112,12 +112,76 @@ run (void *cls,
{
struct TALER_TESTING_Command commands[] = {
- CMD_TRANSFER_TO_EXCHANGE ("create-reserve-1",
- "USD:10.02"),
- TALER_TESTING_cmd_exec_wirewatch ("wirewatch-1",
- default_config_file),
- TALER_TESTING_cmd_rewind_ip ("rew-payments", -1,
- &payments_number),
+
+ CMD_TRANSFER_TO_EXCHANGE
+ ("create-reserve-1",
+ "USD:10.02"),
+
+ TALER_TESTING_cmd_exec_wirewatch
+ ("wirewatch-1",
+ default_config_file),
+
+ TALER_TESTING_cmd_withdraw_amount
+ ("withdraw-coin-1",
+ is->exchange,
+ "create-reserve-1",
+ "USD:5",
+ MHD_HTTP_OK),
+
+ TALER_TESTING_cmd_withdraw_amount
+ ("withdraw-coin-2",
+ is->exchange,
+ "create-reserve-1",
+ "USD:5",
+ MHD_HTTP_OK),
+
+ TALER_TESTING_cmd_status
+ ("withdraw-status-1",
+ is->exchange,
+ "create-reserve-1",
+ "USD:0",
+ MHD_HTTP_OK),
+
+ TALER_TESTING_cmd_proposal
+ ("create-proposal-1",
+ 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\": \"merchant-lib testcase\",\
+ \"fulfillment_url\": \"https://example.com/\",\
+ \"products\": [ {\"description\":\"ice cream\",\
+ \"value\":\"{USD:5}\"} ] }",
+ NULL),
+
+ TALER_TESTING_cmd_check_payment
+ ("check-payment-1",
+ merchant_url,
+ is->ctx,
+ MHD_HTTP_OK,
+ "create-proposal-1",
+ GNUNET_NO),
+
+ TALER_TESTING_cmd_pay
+ ("deposit-simple",
+ merchant_url,
+ is->ctx,
+ MHD_HTTP_OK,
+ "create-proposal-1",
+ "withdraw-coin-1",
+ "USD:5",
+ "USD:4.99",
+ "USD:0.01"),
+
TALER_TESTING_cmd_end ()
};
--
To stop receiving notification emails like this one, please contact
address@hidden