@@ -6,7 +6,7 @@ docker_build('flow-api', '.',
66 dockerfile = 'stacks/flow.Dockerfile' ,
77 target = 'flow-api' ,
88 only = ['flow/' , 'stacks/flow.Dockerfile' ],
9- build_args = {'PEERDB_VERSION_SHA_SHORT' : os .getenv ('PEERDB_VERSION_SHA_SHORT' , '' )},
9+ build_args = {'PEERDB_VERSION_SHA_SHORT' : os .getenv ('PEERDB_VERSION_SHA_SHORT' , 'unknown ' )},
1010)
1111
1212docker_build ('flow-worker' , '.' ,
@@ -149,6 +149,11 @@ dc_resource('dozzle', labels=['Monitoring'], links=[
149149 link ('http://localhost:8118' , 'Dozzle Container Monitor' ),
150150])
151151
152+ # Test services: Services supporting test execution that are not data stores, like proxies, mock servers, etc.
153+
154+ dc_resource ('toxiproxy' , labels = ['TestInfra' ], auto_init = False )
155+ dc_resource ('openssh' , labels = ['TestInfra' ], auto_init = False )
156+
152157# Cleanup
153158
154159load ('ext://uibutton' , 'cmd_button' , 'location' )
@@ -178,6 +183,8 @@ def e2e_test(name, test_run, extra_deps=[], vars_overrides={}):
178183 resource_deps = ['flow-api' , 'flow-worker' , 'catalog' , 'provision-clickhouse' ] + extra_deps ,
179184 )
180185
186+ # Generic e2e tests
187+
181188# Postgres to ClickHouse generic tests
182189e2e_test ('postgres' , 'TestGenericCH_PG' , ['provision-postgres' ])
183190
@@ -191,4 +198,8 @@ e2e_test('mysql-pos', 'TestGenericCH_MySQL', ['provision-mysql-pos'], vars_overr
191198e2e_test ('mariadb' , 'TestGenericCH_MySQL' , ['provision-mariadb' ], vars_overrides = {'CI_MYSQL_PORT' : '$CI_MARIADB_PORT' })
192199
193200# MongoDB to ClickHouse test suite
194- e2e_test ('mongodb' , 'TestMongoClickhouseSuite' , ['provision-mongodb' ])
201+ e2e_test ('mongodb' , 'TestMongoClickhouseSuite' , ['provision-mongodb' ])
202+
203+ # API e2e tests
204+
205+ e2e_test ('api-postgres' , 'TestApiPg' , ['provision-postgres' ])
0 commit comments