diff options
author | Florian Dold <florian.dold@gmail.com> | 2020-05-19 18:05:33 +0530 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2020-05-19 18:05:33 +0530 |
commit | a43aa2e9e89281b27bbe823d0a9c3197a762c1d2 (patch) | |
tree | b7d46cf427dc7d1f8ca6620543df9d0a2be49848 /integration-tests | |
parent | 4dbd3ae0898c120666329b9b90edea7dc73e777d (diff) | |
download | libeufin-a43aa2e9e89281b27bbe823d0a9c3197a762c1d2.tar.gz libeufin-a43aa2e9e89281b27bbe823d0a9c3197a762c1d2.tar.bz2 libeufin-a43aa2e9e89281b27bbe823d0a9c3197a762c1d2.zip |
make tests pass
Diffstat (limited to 'integration-tests')
-rwxr-xr-x | integration-tests/test-ebics.py | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/integration-tests/test-ebics.py b/integration-tests/test-ebics.py index 50a217bf..f7a94bd4 100755 --- a/integration-tests/test-ebics.py +++ b/integration-tests/test-ebics.py @@ -5,7 +5,6 @@ from subprocess import call, Popen, PIPE from time import sleep import os import socket -import sqlite3 import hashlib import base64 @@ -89,9 +88,11 @@ assert(0 == call(["rm", "-f", "sandbox/libeufin-sandbox.sqlite3"])) assert(0 == call(["rm", "-f", "nexus/libeufin-nexus.sqlite3"])) DEVNULL = open(os.devnull, "w") +assert(0 == call(["./gradlew", "nexus:run", "--console=plain", "--args=superuser admin --password x"])) + # Start nexus checkPorts([5001]) -nexus = Popen(["./gradlew", "nexus:run"], stdout=PIPE, stderr=PIPE) +nexus = Popen(["./gradlew", "nexus:run", "--console=plain", "--args=serve"], stdout=PIPE, stderr=PIPE) for i in range(10): try: get("http://localhost:5001/") @@ -166,15 +167,6 @@ assertResponse( #1.a, make a new nexus user. -# "Create" the admin user first. -dbconn = sqlite3.connect("nexus/libeufin-nexus.sqlite3") -dbconn.execute( - "INSERT INTO NexusUsers (id, password) VALUES (?, ?)", - ("admin", sqlite3.Binary(hashlib.sha256(b"x").digest())) -) -dbconn.commit() -dbconn.close() - assertResponse( post( "http://localhost:5001/users", |