gnunet-svn
[Top][All Lists]
Advanced

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

[libeufin] branch master updated: checking payment preparation


From: gnunet
Subject: [libeufin] branch master updated: checking payment preparation
Date: Tue, 27 Oct 2020 17:31:56 +0100

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

ms pushed a commit to branch master
in repository libeufin.

The following commit(s) were added to refs/heads/master by this push:
     new eb51193  checking payment preparation
eb51193 is described below

commit eb51193269d8cec1abfd89c266ba74753dd97e01
Author: MS <ms@taler.net>
AuthorDate: Tue Oct 27 17:31:50 2020 +0100

    checking payment preparation
---
 integration-tests/json_checks.py          | 10 ++++++++++
 integration-tests/test-ebics-highlevel.py |  9 +++++----
 2 files changed, 15 insertions(+), 4 deletions(-)

diff --git a/integration-tests/json_checks.py b/integration-tests/json_checks.py
index 03e3404..282d79b 100644
--- a/integration-tests/json_checks.py
+++ b/integration-tests/json_checks.py
@@ -10,6 +10,16 @@ def checkNewUserRequest(json):
     c = T(F("username"), F("password"))
     return c.check(json)
 
+def checkPreparePayment(json):
+    c = T(
+        F("iban"),
+        F("bic"),
+        F("name"),
+        F("subject"),
+        F("amount")
+    )
+    return c.check(json)
+
 def checkNewEbicsConnection(json):
     c = T(
             F("source"),
diff --git a/integration-tests/test-ebics-highlevel.py 
b/integration-tests/test-ebics-highlevel.py
index 4d4f293..3fa47ba 100755
--- a/integration-tests/test-ebics-highlevel.py
+++ b/integration-tests/test-ebics-highlevel.py
@@ -7,6 +7,7 @@ import hashlib
 import base64
 
 from util import startNexus, startSandbox, assertResponse
+from json_checks import checkNewEbicsConnection, checkPreparePayment
 
 # Steps implemented in this test.
 #
@@ -114,14 +115,14 @@ print("creating bank connection")
 assertResponse(
     post(
         "http://localhost:5001/bank-connections";,
-        json=dict(
+        json=checkNewEbicsConnection(dict(
             name="my-ebics",
             source="new",
             type="ebics",
             data=dict(
                 ebicsURL=EBICS_URL, hostID=HOST_ID, partnerID=PARTNER_ID, 
userID=USER_ID
             ),
-        ),
+        )),
         headers=dict(Authorization=USER_AUTHORIZATION_HEADER),
     )
 )
@@ -170,13 +171,13 @@ resp = assertResponse(
         "http://localhost:5001/bank-accounts/{}/payment-initiations".format(
             BANK_ACCOUNT_LABEL
         ),
-        json=dict(
+        json=checkPreparePayment(dict(
             iban="FR7630006000011234567890189",
             bic="AGRIFRPP",
             name="Jacques La Fayette",
             subject="integration test",
             amount="EUR:1",
-        ),
+        )),
         headers=dict(Authorization=USER_AUTHORIZATION_HEADER),
     )
 )

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

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