[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[libeufin] 01/02: test operation with new password
From: |
gnunet |
Subject: |
[libeufin] 01/02: test operation with new password |
Date: |
Sat, 30 Jan 2021 13:35:48 +0100 |
This is an automated email from the git hooks/post-receive script.
ms pushed a commit to branch master
in repository libeufin.
commit 6aeac38dcf0fa31b45f63b455f0dc1a143a281b7
Author: ms <ms@taler.net>
AuthorDate: Sat Jan 30 13:04:47 2021 +0100
test operation with new password
---
integration-tests/tests.py | 29 +++++++++++++++++++++++++++--
1 file changed, 27 insertions(+), 2 deletions(-)
diff --git a/integration-tests/tests.py b/integration-tests/tests.py
index 999ee4d..658f386 100755
--- a/integration-tests/tests.py
+++ b/integration-tests/tests.py
@@ -135,14 +135,39 @@ def teardown_function():
dropSandboxTables()
dropNexusTables()
-def test_change_password():
+# def test_double_username():
+
+
+def test_change_nonadmin_password():
assertResponse(
- post(f"{PERSONA.nexus.base_url}/users/password",
+ post(f"{PERSONA.nexus.base_url}/users",
auth=PERSONA.nexus.auth,
+ json=dict(username="nonadmin", password="secret")
+ )
+ )
+
+ resp = assertResponse(
+ get(
+ f"{PERSONA.nexus.base_url}/bank-accounts",
+ auth=auth.HTTPBasicAuth("nonadmin", "secret")
+ )
+ )
+
+ assertResponse(
+ post(f"{PERSONA.nexus.base_url}/users/password",
+ auth=auth.HTTPBasicAuth("nonadmin", "secret"),
json=dict(newPassword="changed")
)
)
+ resp = assertResponse(
+ get(
+ f"{PERSONA.nexus.base_url}/bank-accounts",
+ auth=auth.HTTPBasicAuth("nonadmin", "changed")
+ )
+ )
+
+
def test_connection_deletion():
resp = assertResponse(
get(
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.