Skip to content

Commit 40b64a5

Browse files
committed
test: manually start extra-services for integration tests
1 parent 21634fb commit 40b64a5

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

integration_tests.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
import time
1212
from concurrent.futures import ThreadPoolExecutor, as_completed
1313
from contextlib import contextmanager
14+
from itertools import chain
1415
from pathlib import Path
1516
from typing import Optional
1617

@@ -223,10 +224,15 @@ def prepare_environment(
223224
server_config = _make_config(modules, server_flags, release_var, editable)
224225
client_config = _make_config(modules, client_flags, release_var, editable)
225226

227+
# The dependencies of dirac-server and dirac-client will be automatically
228+
# started but we need to add manually all the extra services
229+
module_configs = _load_module_configs(modules)
230+
extra_services = list(chain(*[config["extra-services"] for config in module_configs.values()]))
231+
226232
typer.secho("Running docker-compose to create containers", fg=c.GREEN)
227233
with _gen_docker_compose(modules) as docker_compose_fn:
228234
subprocess.run(
229-
["docker-compose", "-f", docker_compose_fn, "up", "-d", "dirac-server", "dirac-client"],
235+
["docker-compose", "-f", docker_compose_fn, "up", "-d", "dirac-server", "dirac-client"] + extra_services,
230236
check=True,
231237
env=docker_compose_env,
232238
)

0 commit comments

Comments
 (0)