6
0
mirror of https://github.com/ChristianLight/tutor.git synced 2024-12-13 14:43:03 +00:00
tutor/tests
Régis Behmo a2a3c022b8 fix: bind-mount in dev-specific services
The -m/--mount option makes it possible to bind-mount volumes at runtime. The
volumes are declared in a local/docker-compose.tmp.yml file. The problem with
this approach is when we want to bind-mount a volume to a service which is
specific to the dev context. For instance: the "learning" service when the MFE
plugin is enabled.

In such a case, starting the service triggers a call to `docker-compose stop`
in the local context. This call fails because the "learning" service does not
exist in the local context. Note that this issue only seems to occur with
docker-compose v1.

To resolve this issue, we create two additional filters for
the dev context, which emulate the behaviour of the local context. With this approach, we convert the -m/--mount arguments right after they are parsed. Because they are parsed just once, we can get rid of the de-duplication logic initially introduced with the COMPOSE_CLI_MOUNTS context.

Close #711. Close also https://github.com/overhangio/tutor-mfe/issues/57.
2022-07-29 19:53:02 +02:00
..
commands fix: bind-mount in dev-specific services 2022-07-29 19:53:02 +02:00
hooks feat: migrate to plugins.v1 with filters & actions 2022-04-15 15:30:54 +02:00
__init__.py Add unit tests! yay! 2019-03-23 16:16:44 -07:00
helpers.py feat: migrate to plugins.v1 with filters & actions 2022-04-15 15:30:54 +02:00
openedx-lms-common-settings Better dev environment 2019-10-24 20:03:36 +02:00
test_bindmounts.py fix: crash during local quickstart -p 2021-05-07 17:01:09 +02:00
test_config.py feat: introduce tutor dev quickstart 2022-04-19 16:53:57 +02:00
test_env.py v14.0.0: upgrade to Nutmeg 2022-06-09 19:18:20 +02:00
test_images.py refactor: add code coverage, cover CLI commands with tests 2022-01-04 13:40:33 +01:00
test_jobs.py fix: unit tests with v1 plugin installed 2022-04-20 19:48:21 +02:00
test_plugins_v0.py feat: migrate to plugins.v1 with filters & actions 2022-04-15 15:30:54 +02:00
test_serialize.py fix: YamlParamType supports line terminators 2021-04-25 09:14:21 +02:00
test_utils.py fix: accurately log shell commands when running jobs 2022-07-25 22:46:53 +02:00