[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[libeufin] branch master updated: Custom DB name for sandbox, too.
From: |
gnunet |
Subject: |
[libeufin] branch master updated: Custom DB name for sandbox, too. |
Date: |
Mon, 08 Jun 2020 16:08:52 +0200 |
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 e30e0ba Custom DB name for sandbox, too.
e30e0ba is described below
commit e30e0ba3866fe79dca0e02a74ec9de033ab732f5
Author: MS <ms@taler.net>
AuthorDate: Mon Jun 8 16:08:34 2020 +0200
Custom DB name for sandbox, too.
---
integration-tests/test-taler-facade.py | 19 ++-----------------
integration-tests/util.py | 4 ++--
2 files changed, 4 insertions(+), 19 deletions(-)
diff --git a/integration-tests/test-taler-facade.py
b/integration-tests/test-taler-facade.py
index 30025cc..5005f5b 100755
--- a/integration-tests/test-taler-facade.py
+++ b/integration-tests/test-taler-facade.py
@@ -44,16 +44,6 @@ def fail(msg):
print(msg)
exit(1)
-def checkPorts(ports):
- for i in ports:
- s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
- try:
- s.bind(("0.0.0.0", i))
- s.close()
- except:
- print("Port {} is not available".format(i))
- exit(77)
-
def assertResponse(response):
if response.status_code != 200:
print("Test failed on URL: {}".format(response.url))
@@ -64,10 +54,8 @@ def assertResponse(response):
# Allows for finer grained checks.
return response
-
-os.chdir("..")
startNexus(NEXUS_DB)
-startSandbox()
+startSandbox(SANDBOX_DB)
# make ebics host at sandbox
assertResponse(
@@ -195,7 +183,4 @@ assertResponse(
# )
#)
-print("sleeping 100s")
-sleep(100)
-
-print("Test passed!")
+input("press enter to stop the test:")
diff --git a/integration-tests/util.py b/integration-tests/util.py
index 86e3f6a..ebc39a7 100644
--- a/integration-tests/util.py
+++ b/integration-tests/util.py
@@ -18,8 +18,8 @@ def checkPort(port):
exit(77)
-def startSandbox():
- db_full_path = str(Path.cwd() / "libeufin-sandbox.sqlite3")
+def startSandbox(dbname = "libeufin-sandbox.sqlite3"):
+ db_full_path = str(Path.cwd() / dbname)
check_call(["rm", "-f", db_full_path])
check_call(["../gradlew", "-p", "..", "sandbox:assemble"])
checkPort(5000)
--
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: Custom DB name for sandbox, too.,
gnunet <=