[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[libeufin] branch master updated: test connection deletion
From: |
gnunet |
Subject: |
[libeufin] branch master updated: test connection deletion |
Date: |
Tue, 26 Jan 2021 16:22:59 +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 c6cbdfe test connection deletion
c6cbdfe is described below
commit c6cbdfe23727d6a6cce74ea18ae65db211781c5e
Author: MS <ms@taler.net>
AuthorDate: Tue Jan 26 16:22:56 2021 +0100
test connection deletion
---
integration-tests/tests.py | 25 +++++++++++++++++++++++++
1 file changed, 25 insertions(+)
diff --git a/integration-tests/tests.py b/integration-tests/tests.py
index e76f334..dec1875 100755
--- a/integration-tests/tests.py
+++ b/integration-tests/tests.py
@@ -141,6 +141,31 @@ def test_change_password():
)
)
+def test_connection_deletion():
+ resp = assertResponse(
+ get(
+ f"{PERSONA.nexus.base_url}/bank-connections",
+ auth=PERSONA.nexus.auth
+ )
+ )
+ connection = resp.json().get("bankConnections").pop()
+ assert PERSONA.nexus.bank_connection == connection.get("name")
+
+ assertResponse(
+ post(
+ f"{PERSONA.nexus.base_url}/bank-connections/delete-connection",
+ json=dict(bankConnectionId=PERSONA.nexus.bank_connection),
+ auth=PERSONA.nexus.auth
+ )
+ )
+ resp = assertResponse(
+ get(
+ f"{PERSONA.nexus.base_url}/bank-connections",
+ auth=PERSONA.nexus.auth
+ )
+ )
+ assert len(resp.json().get("bankConnections")) == 0
+
# Tests whether Nexus knows the imported bank account.
def test_imported_account():
resp = assertResponse(
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [libeufin] branch master updated: test connection deletion,
gnunet <=