balena-supervisor/test/unit/compose
Christina Ying Wang 10f294cf8e Add takeLock to state funnel
A takeLock step should be generated before any of the following steps:
* kill
* start
* stop
* updateMetadata
* restart
* handover

ALL services in an app will be locked for any of the above actions,
unless the action is generated through Supervisor API's
`POST /v2/applications/:appId/(start|stop|restart)-service` endpoints,
in which case only the target service will be locked.

A lock will be taken for a service before it starts by creating the
directory in /tmp before the Engine creates it through bind mounts.

Also, the commit simplifies the generation of service kill
steps from network/volume changes or removals.

Signed-off-by: Christina Ying Wang <christina@balena.io>
2024-04-04 14:07:47 -07:00
..
app.spec.ts Add takeLock to state funnel 2024-04-04 14:07:47 -07:00
network.spec.ts Update @balena/lint to v7 2024-03-01 18:27:30 -03:00
ports.spec.ts Update @balena/lint to v7 2024-03-01 18:27:30 -03:00
service.spec.ts Expose ports from port mappings on services 2023-10-24 15:04:39 -03:00
utils.spec.ts Parse container exit error message instead of status 2023-06-22 14:43:17 -07:00
volume.spec.ts Split compose/volume tests into unit/integration 2022-09-28 10:37:40 -03:00