Skip to content

Commit

Permalink
Fixes for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tomuben committed Jul 30, 2024
1 parent 5dc0f8f commit 89e0778
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion test_container/tests/test/disabled/search.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
'''

cmd = '''%(exaplus)s -c %(conn)s -u sys -P exasol
-no-config -autocommit ON -L -pipe''' % {
-no-config -autocommit ON -L -pipe -jdbcparam "validateservercertificate=0"''' % {
'exaplus': os.environ.get('EXAPLUS',
'/usr/opt/EXASuite-4/EXASolution-4.2.9/bin/Console/exaplus'),
'conn': udf.opts.server
Expand Down
4 changes: 2 additions & 2 deletions test_container/tests/test/generic/dynamic_input.py
Original file line number Diff line number Diff line change
Expand Up @@ -207,12 +207,12 @@ def test_exception_wrong_operation(self):

@requires('EMPTY_SET_RETURNS')
def test_exception_empty_set_returns(self):
with self.assertRaisesRegex(Exception, 'user defined set script has no arguments'):
with self.assertRaisesRegex(Exception, 'data exception - missing input parameters for SET UDF script'):
self.query('''select fn1.empty_set_returns() from groupt''')

@requires('EMPTY_SET_EMITS')
def test_exception_empty_set_emits(self):
with self.assertRaisesRegex(Exception, 'user defined set script has no arguments'):
with self.assertRaisesRegex(Exception, 'data exception - missing input parameters for SET UDF script'):
self.query('''select fn1.empty_set_emits() from groupt''')

class DynamicInputOptimizations(Test):
Expand Down
2 changes: 1 addition & 1 deletion test_container/tests/test/generic/performance.py
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ def setUpClass(cls):
REJECT LIMIT 0;"""

cmd = '''%(exaplus)s -c %(conn)s -u sys -P exasol
-no-config -autocommit ON -L -pipe''' % {
-no-config -autocommit ON -L -pipe -jdbcparam "validateservercertificate=0"''' % {
'exaplus': os.environ.get('EXAPLUS',
'/usr/opt/EXASuite-4/EXASolution-4.2.9/bin/Console/exaplus'),
'conn': udf.opts.server
Expand Down
4 changes: 2 additions & 2 deletions test_container/tests/test/generic/unicode.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def run(ctx):
select pyversion_schema.python_version();
''' % {'sl': script_languages})
cmd = '''%(exaplus)s -c %(conn)s -u sys -P exasol
-no-config -autocommit ON -L -pipe''' % {
-no-config -autocommit ON -L -pipe -jdbcparam "validateservercertificate=0"''' % {
'exaplus': os.environ.get('EXAPLUS',
'/usr/opt/EXASuite-4/EXASolution-4.2.9/bin/Console/exaplus'),
'conn': server
Expand Down Expand Up @@ -136,7 +136,7 @@ def setUpModule():
ROW SEPARATOR = 'CRLF';
''' % os.path.join(os.getcwd(), csvfile.name)
cmd = '''%(exaplus)s -c %(conn)s -u sys -P exasol
-no-config -autocommit ON -L -pipe''' % {
-no-config -autocommit ON -L -pipe -jdbcparam "validateservercertificate=0"''' % {
'exaplus': os.environ.get('EXAPLUS',
'/usr/opt/EXASuite-4/EXASolution-4.2.9/bin/Console/exaplus'),
'conn': udf.opts.server
Expand Down
2 changes: 1 addition & 1 deletion test_container/tests/test/java/unicode.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
class JavaUnicode(udf.TestCase):
def test_unicode_umlaute(self):
cmd = '''%(exaplus)s -c %(conn)s -u sys -P exasol
-no-config -autocommit ON -L -pipe''' % {
-no-config -autocommit ON -L -pipe -jdbcparam "validateservercertificate=0"''' % {
'exaplus': os.environ.get('EXAPLUS',
'/usr/opt/EXASuite-5/EXASolution-5.0.rc1/bin/Console/exaplus'),
'conn': udf.opts.server
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def generate_data_linear(self, multiplier, base=10):
try:
os.mkfifo(fifo_filename)
cmd = '''%(exaplus)s -c %(conn)s -u %(user)s -P %(password)s -s %(schema)s
-no-config -autocommit ON -L -pipe''' % {
-no-config -autocommit ON -L -pipe -jdbcparam "validateservercertificate=0"''' % {
'exaplus': os.environ.get('EXAPLUS'),
'conn': udf.opts.server,
'user': self.user,
Expand Down
4 changes: 2 additions & 2 deletions test_container/tests/test/python3/all/unicode.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@

class PythonUnicode(udf.TestCase):
def test_unicode_umlaute(self):
cmd = '''%(exaplus)s -c %(conn)s -u sys -P exasol
-no-config -autocommit ON -L -pipe''' % {
cmd = '''%(exaplus)s -c %(conn)s -u sys -P exasol
-no-config -autocommit ON -L -pipe -jdbcparam "validateservercertificate=0"''' % {
'exaplus': os.environ.get('EXAPLUS',
'/usr/opt/EXASuite-4/EXASolution-4.2.9/bin/Console/exaplus'),
'conn': udf.opts.server
Expand Down

0 comments on commit 89e0778

Please sign in to comment.