Changeset: e0c0dbd3e852 for MonetDB URL: https://dev.monetdb.org/hg/MonetDB/rev/e0c0dbd3e852 Added Files: sql/jdbc/tests/Tests/TLSTester.py Modified Files: sql/jdbc/tests/Tests/All Branch: Aug2024 Log Message:
Use Mtest's TLSTester to test JDBC TLS diffs (32 lines): diff --git a/sql/jdbc/tests/Tests/All b/sql/jdbc/tests/Tests/All --- a/sql/jdbc/tests/Tests/All +++ b/sql/jdbc/tests/Tests/All @@ -1,4 +1,5 @@ HAVE_JDBCTESTS?JDBC_API_Tester +HAVE_JDBCTESTS?TLSTester HAVE_JDBCTESTS?OnClientTester HAVE_JDBCCLIENT_JAR?Test_JdbcClient # next test should be done AFTER all the other tests have completed diff --git a/sql/jdbc/tests/Tests/TLSTester.py b/sql/jdbc/tests/Tests/TLSTester.py new file mode 100644 --- /dev/null +++ b/sql/jdbc/tests/Tests/TLSTester.py @@ -0,0 +1,18 @@ +import os, sys +from subprocess import run, PIPE, CalledProcessError + +PORT=os.environ['TST_TLSTESTERPORT'] + +cmd = [ + 'java', 'TLSTester', + # '-v', + f'localhost:{PORT}', + '-a', 'localhost.localdomain' +] +try: + p = run(cmd, stdout=PIPE, stderr=PIPE, check=True, encoding='utf-8') + sys.stderr.write(p.stdout) + sys.stderr.write(p.stderr) +except CalledProcessError as e: + raise SystemExit(e.stderr) + _______________________________________________ checkin-list mailing list -- checkin-list@monetdb.org To unsubscribe send an email to checkin-list-le...@monetdb.org