gnunet-svn
[Top][All Lists]
Advanced

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

[libeufin] 06/11: Integration test.


From: gnunet
Subject: [libeufin] 06/11: Integration test.
Date: Thu, 30 Apr 2020 21:46:49 +0200

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

marcello pushed a commit to branch master
in repository libeufin.

commit d9547e525b226c9fa51c4ff9c8ca331077f36bbb
Author: Marcello Stanisci <address@hidden>
AuthorDate: Thu Apr 30 17:00:01 2020 +0200

    Integration test.
    
    Bring up to payment preparation step to pass.
---
 integration-tests/test-ebics.py | 28 ++++++++++++----------------
 1 file changed, 12 insertions(+), 16 deletions(-)

diff --git a/integration-tests/test-ebics.py b/integration-tests/test-ebics.py
index a71516f..b8f2cd0 100755
--- a/integration-tests/test-ebics.py
+++ b/integration-tests/test-ebics.py
@@ -132,39 +132,35 @@ resp = post(
     json=dict()
 )
 assert(resp.status_code == 200)
-exit(77)
 
-#3 Request history via EBICS
+#3
 resp = post(
     
"http://localhost:5001/ebics/subscribers/{}/collect-transactions-c53".format(USERNAME),
     json=dict()
 )
-
 assert(resp.status_code == 200)
 
+#4
 resp = get(
     "http://localhost:5001/users/{}/history".format(USERNAME)
 )
-
-#4
-assert(
-    resp.status_code == 200 and \
-    len(resp.json().get("payments")) == 0
-)
+assert(resp.status_code == 200)
+assert(len(resp.json().get("payments")) == 0)
 
 #5.a
 resp = post(
     "http://localhost:5001/users/{}/prepare-payment".format(USERNAME),
     json=dict(
-        creditorIban="GB33BUKB20201555555555",
-        creditorBic="BUKBGB22",
-        creditorName="Oliver Smith",
-        debitorIban="FR7630006000011234567890189",
-        debitorBic="AGRIFRPP",
-        debitorName="Jacques LaFayette"
+        creditorIban="FR7630006000011234567890189",
+        creditorBic="AGRIFRPP",
+        creditorName="Jacques La Fayette",
+        debitorIban=SUBSCRIBER_IBAN,
+        debitorBic=SUBSCRIBER_BIC,
+        debitorName=SUBSCRIBER_NAME,
+       subject="integration test",
+       sum=1
     )
 )
-
 assert(resp.status_code == 200)
 
 #7 Execute such payment via EBICS

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



reply via email to

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