balena-supervisor/test/unit/compose
Christina Ying Wang 2537eb8189 Handle the case of 'on-failure' restart policy
As explained in the comments of this commit, a container with the restart policy
of 'on-failure' with a non-zero exit code matches the conditions for the race, so
the Supervisor will also attempt to start it. A container with the 'no' restart
policy that has been started once will not be started again. If a container with
'no' has never been started, its service status will be 'Installed' and the Supervisor
will already try to start it until success, so the service with 'no' doesn't require
special handling.

Signed-off-by: Christina Ying Wang <christina@balena.io>
2023-06-05 11:05:58 -07:00
..
app.spec.ts Handle the case of 'on-failure' restart policy 2023-06-05 11:05:58 -07:00
network.spec.ts Create default network as config-only when services have host networking 2022-11-16 10:19:36 -08:00
ports.spec.ts Migrate simple legacy tests to test/unit and test/integration 2022-10-18 20:36:53 -03:00
service.spec.ts Improve net alias comparison to prevent unwanted restarts 2023-04-20 14:58:58 -04:00
utils.spec.ts Migrate simple legacy tests to test/unit and test/integration 2022-10-18 20:36:53 -03:00
volume.spec.ts Split compose/volume tests into unit/integration 2022-09-28 10:37:40 -03:00