balena-supervisor/test/integration/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
..
application-manager.spec.ts Add takeLock to state funnel 2024-04-04 14:07:47 -07:00
commit.spec.ts Migrate simple legacy tests to test/unit and test/integration 2022-10-18 20:36:53 -03:00
images.spec.ts Update typescript to v5 2024-03-05 15:33:56 -03:00
network.spec.ts Update typescript to v5 2024-03-05 15:33:56 -03:00
service.spec.ts Update @balena/lint to v7 2024-03-01 18:27:30 -03:00
volume-manager.spec.ts Update typescript to v5 2024-03-05 15:33:56 -03:00
volume.spec.ts Update typescript to v5 2024-03-05 15:33:56 -03:00