diff options
author | MS <ms@taler.net> | 2020-05-26 13:55:28 +0200 |
---|---|---|
committer | MS <ms@taler.net> | 2020-05-26 13:55:28 +0200 |
commit | c05a2ff6bf6d9d8067aaec6a23f411972295eabf (patch) | |
tree | 96d944494a1fe1e1edf771a6016584ac4b3b5833 /integration-tests/test-ebics-highlevel.py | |
parent | 4ebe7337a586779b7ae8414523188cdf7e768ed8 (diff) | |
download | libeufin-c05a2ff6bf6d9d8067aaec6a23f411972295eabf.tar.gz libeufin-c05a2ff6bf6d9d8067aaec6a23f411972295eabf.tar.bz2 libeufin-c05a2ff6bf6d9d8067aaec6a23f411972295eabf.zip |
Custom DB for tests.
Plus fixing the conversion from dashed date
to Long timestamp.
Diffstat (limited to 'integration-tests/test-ebics-highlevel.py')
-rwxr-xr-x | integration-tests/test-ebics-highlevel.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/integration-tests/test-ebics-highlevel.py b/integration-tests/test-ebics-highlevel.py index 2732f772..cf6396ba 100755 --- a/integration-tests/test-ebics-highlevel.py +++ b/integration-tests/test-ebics-highlevel.py @@ -58,6 +58,8 @@ SUBSCRIBER_BIC = "BUKBGB22" SUBSCRIBER_NAME = "Oliver Smith" BANK_ACCOUNT_LABEL = "savings" +# Databases +NEXUS_DB="test-nexus.sqlite3" def fail(msg): print(msg) @@ -93,17 +95,17 @@ def assertResponse(response): # -1 Clean databases and start services. os.chdir("..") assert 0 == call(["rm", "-f", "sandbox/libeufin-sandbox.sqlite3"]) -assert 0 == call(["rm", "-f", "nexus/libeufin-nexus.sqlite3"]) +assert 0 == call(["rm", "-f", "nexus/{}".format(NEXUS_DB)]) DEVNULL = open(os.devnull, "w") assert 0 == call( - ["./gradlew", "nexus:run", "--console=plain", "--args=superuser admin --password x"] + ["./gradlew", "nexus:run", "--console=plain", "--args=superuser admin --password x --db-name={}".format(NEXUS_DB)] ) # Start nexus checkPorts([5001]) nexus = Popen( - ["./gradlew", "nexus:run", "--console=plain", "--args=serve"], + ["./gradlew", "nexus:run", "--console=plain", "--args=serve --db-name={}".format(NEXUS_DB)], stdout=PIPE, stderr=PIPE, ) |