[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [taler-merchant] branch master updated: Adapt "traditional"
From: |
gnunet |
Subject: |
[GNUnet-SVN] [taler-merchant] branch master updated: Adapt "traditional" test case to latest changes. |
Date: |
Tue, 22 May 2018 14:46:23 +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 9948929 Adapt "traditional" test case to latest changes.
9948929 is described below
commit 9948929694bc74c9a9ff21dd8bff7ab687b271bd
Author: Marcello Stanisci <address@hidden>
AuthorDate: Tue May 22 14:43:05 2018 +0200
Adapt "traditional" test case to latest changes.
---
src/lib/test_merchant_api.c | 24 ++++++++++++++++++++++++
1 file changed, 24 insertions(+)
diff --git a/src/lib/test_merchant_api.c b/src/lib/test_merchant_api.c
index cb2b884..f0d7f49 100644
--- a/src/lib/test_merchant_api.c
+++ b/src/lib/test_merchant_api.c
@@ -4614,6 +4614,30 @@ run (void *cls)
.details.tip_pickup.authorize_ref = "authorize-tip-2",
.details.tip_pickup.amounts = pickup_amounts_1 },
/* Test authorization failure modes */
+
+ /* Need first to _create_ the reserve that should
+ * give back the "insufficient funds" error. */
+
+ { .oc = OC_ADMIN_ADD_INCOMING,
+ .label = "create-insufficient-funds-tip-reserve",
+ .expected_response_code = MHD_HTTP_OK,
+ .details.admin_add_incoming.instance = "dtip",
+ .details.admin_add_incoming.debit_account_no = TIP_ACCOUNT_NO,
+ .details.admin_add_incoming.credit_account_no = EXCHANGE_ACCOUNT_NO,
+ .details.admin_add_incoming.auth_username = "user62",
+ .details.admin_add_incoming.auth_password = "pass62",
+ /* we run *two* __merchant__ instances, but only this first call will
+ actually fill the reserve, as the second one will be seen as
+ a duplicate. Hence fill with twice the require amount per
+ round. */
+ .details.admin_add_incoming.amount = "EUR:1.01" },
+ { .oc = OC_RUN_WIREWATCH,
+ .label = "wirewatch-insufficient-funds-tip-reserve" },
+ { .oc = OC_CHECK_BANK_TRANSFER,
+ .label = "check_bank_transfer-insufficient-funds-tip-reserve",
+ .details.check_bank_transfer.amount = "EUR:1.01",
+ .details.check_bank_transfer.account_debit = TIP_ACCOUNT_NO,
+ .details.check_bank_transfer.account_credit = EXCHANGE_ACCOUNT_NO },
{ .oc = OC_TIP_AUTHORIZE,
.label = "authorize-tip-3-insufficient-funds",
.expected_response_code = MHD_HTTP_PRECONDITION_FAILED,
--
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: Adapt "traditional" test case to latest changes.,
gnunet <=