Changeset: d51588fd0863 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/d51588fd0863
Modified Files:
sql/jdbc/tests/Tests/Test_JdbcClient.SQL.py
sql/jdbc/tests/Tests/ValidateSystemCatalogTables.SQL.py
Branch: default
Log Message:
fix add credentials to jdbc test
diffs (32 lines):
diff --git a/sql/jdbc/tests/Tests/Test_JdbcClient.SQL.py
b/sql/jdbc/tests/Tests/Test_JdbcClient.SQL.py
--- a/sql/jdbc/tests/Tests/Test_JdbcClient.SQL.py
+++ b/sql/jdbc/tests/Tests/Test_JdbcClient.SQL.py
@@ -6,13 +6,15 @@ HOST=os.getenv('HOST')
MAPIPORT=os.getenv('MAPIPORT')
TSTDB=os.getenv('TSTDB')
TSTSRCBASE=os.getenv('TSTSRCBASE')
+TSTTRGBASE=os.getenv('TSTTRGBASE')
TSTDIR=os.getenv('TSTDIR')
CLIENT='org.monetdb.client.JdbcClient'
USER='monetdb'
PASSWORD='monetdb'
-
if __name__ == '__main__':
+ with open(os.path.join('.monetdb'), 'w') as f:
+ f.write('\n'.join(['user=monetdb', 'password=monetdb']))
cmd = ['java', CLIENT, '-h', HOST, '-p', MAPIPORT, '-d', TSTDB, '--help']
try:
p = run(cmd, stdout=PIPE, stderr=PIPE, check=True, encoding='utf-8')
diff --git a/sql/jdbc/tests/Tests/ValidateSystemCatalogTables.SQL.py
b/sql/jdbc/tests/Tests/ValidateSystemCatalogTables.SQL.py
--- a/sql/jdbc/tests/Tests/ValidateSystemCatalogTables.SQL.py
+++ b/sql/jdbc/tests/Tests/ValidateSystemCatalogTables.SQL.py
@@ -13,6 +13,8 @@ PASSWORD='monetdb'
if __name__ == '__main__':
+ with open(os.path.join('.monetdb'), 'w') as f:
+ f.write('\n'.join(['user=monetdb', 'password=monetdb']))
cmd = ['java', CLIENT, '-h', HOST, '-p', MAPIPORT, '-d', TSTDB, '-f',
os.path.join(TSTSRCBASE, TSTDIR, 'Tests/ValidateSystemCatalogTables.sql')]
try:
p = run(cmd, stdout=PIPE, stderr=PIPE, check=True, encoding='utf-8')
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list