def test_update_toolkit(self):
     topo = Topology()
     url = None
     # download event store toolkit from GitHub
     eventstore_toolkit = es.download_toolkit(url)
     # add event store toolkit to topology
     streamsx.spl.toolkit.add_toolkit(topo, eventstore_toolkit)
 def test_download_with_url_and_target_dir(self):
     topology = Topology()
     target_dir = 'pypi.streamsx.eventstore.tests-' + str(uuid.uuid4()) + '/eventstore-toolkit'
     url = 'https://github.com/IBMStreams/streamsx.eventstore/releases/download/v2.2.0/streamsx.eventstore.toolkits-2.2.0-20190731-0640.tgz'
     location = es.download_toolkit(url=url, target_dir=target_dir)
     print('toolkit location: ' + location)
     streamsx.spl.toolkit.add_toolkit(topology, location)
 def test_download_with_url(self):
     topology = Topology()
     url = 'https://github.com/IBMStreams/streamsx.eventstore/releases/download/v2.2.0/streamsx.eventstore.toolkits-2.2.0-20190731-0640.tgz'
     location = es.download_toolkit(url=url)
     print('toolkit location: ' + location)
     streamsx.spl.toolkit.add_toolkit(topology, location)
 def test_download_latest_with_target_dir(self):
     topology = Topology()
     target_dir = 'pypi.streamsx.eventstore.tests-' + str(uuid.uuid4()) + '/eventstore-toolkit'
     location = es.download_toolkit(target_dir=target_dir)
     print('toolkit location: ' + location)
     streamsx.spl.toolkit.add_toolkit(topology, location)
 def test_download_latest(self):
     topology = Topology()
     location = es.download_toolkit()
     print('toolkit location: ' + location)
     streamsx.spl.toolkit.add_toolkit(topology, location)