gnunet-svn
[Top][All Lists]
Advanced

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

[libeufin] 02/02: Update start script to import one bank account by defa


From: gnunet
Subject: [libeufin] 02/02: Update start script to import one bank account by default and submit one prepare payment
Date: Thu, 02 Jul 2020 18:33:59 +0200

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

heng-yeow pushed a commit to branch master
in repository libeufin.

commit 57f6f576069b5c0febb832b5c3ee4ad2869f8e8e
Author: tanhengyeow <E0032242@u.nus.edu>
AuthorDate: Fri Jul 3 00:33:49 2020 +0800

    Update start script to import one bank account by default and submit one 
prepare payment
---
 integration-tests/start-testenv.py | 55 +++++++++++++++++++++++---------------
 1 file changed, 34 insertions(+), 21 deletions(-)

diff --git a/integration-tests/start-testenv.py 
b/integration-tests/start-testenv.py
index 386a63b..bfde5ba 100755
--- a/integration-tests/start-testenv.py
+++ b/integration-tests/start-testenv.py
@@ -367,6 +367,19 @@ assertResponse(
         headers=dict(Authorization=USER_AUTHORIZATION_HEADER),
     )
 )
+
+# 2.d, import bank account
+assertResponse(
+    post(
+        "http://localhost:5001/bank-connections/my-ebics-1/import-account";,
+        json=dict(
+          offeredAccountId=BC1_SUBSCRIBER1_BANK_ACCOUNT_LABEL,
+          nexusBankAccountId=BC1_SUBSCRIBER1_BANK_ACCOUNT_LABEL
+        ),
+        headers=dict(Authorization=USER_AUTHORIZATION_HEADER),
+    )
+)
+
 # assertResponse(
 #     post(
 #         "http://localhost:5001/bank-connections/my-ebics-3/import-accounts";,
@@ -382,7 +395,7 @@ assertResponse(
 #     )
 # )
 
-# # 3, ask nexus to download history
+# 3, ask nexus to download history
 # assertResponse(
 #     post(
 #         
f"http://localhost:5001/bank-accounts/{BC1_SUBSCRIBER1_BANK_ACCOUNT_LABEL}/fetch-transactions";,
@@ -390,7 +403,7 @@ assertResponse(
 #     )
 # )
 
-# # 4, make sure history is empty
+# 4, make sure history is empty
 # resp = assertResponse(
 #     get(
 #         
f"http://localhost:5001/bank-accounts/{BC1_SUBSCRIBER1_BANK_ACCOUNT_LABEL}/transactions";,
@@ -400,25 +413,25 @@ assertResponse(
 # if len(resp.json().get("transactions")) != 0:
 #     fail("unexpected number of transactions")
 
-# # 5.a, prepare a payment
-# resp = assertResponse(
-#     post(
-#         "http://localhost:5001/bank-accounts/{}/payment-initiations".format(
-#             BC1_SUBSCRIBER1_BANK_ACCOUNT_LABEL
-#         ),
-#         json=dict(
-#             iban="FR7630006000011234567890189",
-#             bic="AGRIFRPP",
-#             name="Jacques La Fayette",
-#             subject="integration test",
-#             amount="EUR:1",
-#         ),
-#         headers=dict(Authorization=USER_AUTHORIZATION_HEADER),
-#     )
-# )
-# PREPARED_PAYMENT_UUID = resp.json().get("uuid")
-# if PREPARED_PAYMENT_UUID == None:
-#     fail("Payment UUID not received")
+# 5.a, prepare a payment
+resp = assertResponse(
+    post(
+        "http://localhost:5001/bank-accounts/{}/payment-initiations".format(
+            BC1_SUBSCRIBER1_BANK_ACCOUNT_LABEL
+        ),
+        json=dict(
+            iban="FR7630006000011234567890189",
+            bic="AGRIFRPP",
+            name="Jacques La Fayette",
+            subject="integration test",
+            amount="EUR:1",
+        ),
+        headers=dict(Authorization=USER_AUTHORIZATION_HEADER),
+    )
+)
+PREPARED_PAYMENT_UUID = resp.json().get("uuid")
+if PREPARED_PAYMENT_UUID == None:
+    fail("Payment UUID not received")
 
 # # 5.b, submit prepared statement
 # assertResponse(

-- 
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]