Skip to content

Commit

Permalink
test case for Insert added
Browse files Browse the repository at this point in the history
  • Loading branch information
markheger committed Feb 18, 2020
1 parent 174af8b commit de81c69
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion package/streamsx/eventstore/tests/test_eventstore.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,6 @@ def test_insert(self):
streamsx.spl.toolkit.add_toolkit(topo, self.es_toolkit)
s = self._create_stream(topo)
res = es.insert(s, config='eventstore', table='SampleTablePy', primary_key='id', ssl_connection=False, plugin_flag=False)

# build only
self._build_only(name, topo)

Expand All @@ -96,9 +95,20 @@ def test_statement(self):
s = topo.source(['DROP TABLE STR_SAMPLE']).as_string()
res_sql = s.map(es.SQLStatement(credentials='eventstore'), schema=CommonSchema.String)
res_sql.print()
# build only
self._build_only(name, topo)

def test_insert_composite(self):
print ('\n---------'+str(self))
name = 'test_insert_composite'
topo = Topology(name)
streamsx.spl.toolkit.add_toolkit(topo, self.es_toolkit)
s = self._create_stream(topo)
s.for_each(es.Insert(config='eventstore', table='SampleTablePy', primary_key='id', ssl_connection=False, plugin_flag=False))
# build only
self._build_only(name, topo)


class TestDownloadToolkit(unittest.TestCase):
@classmethod
def tearDownClass(cls):
Expand Down

0 comments on commit de81c69

Please sign in to comment.