Remove the 'Stopped' status for services

It's not an official status from container inspects, and the Supervisor
doesn't set it internally anywhere. It's better to remove it entirely as the
method by which Supervisor sets internal service statuses is by using a global
event emitter (reportNewStatus) which makes things difficult to test.

Change-type: patch
Signed-off-by: Christina Ying Wang <christina@balena.io>
This commit is contained in:
Christina Ying Wang
2023-06-22 12:45:59 -07:00
committed by Felipe Lalanne
parent 098494d6f4
commit 38fe8dae75
4 changed files with 10 additions and 11 deletions

View File

@ -1309,7 +1309,7 @@ describe('compose/application-manager', () => {
{
commit: 'oldrelease',
serviceName: 'fedora',
status: 'Stopped',
status: 'exited',
createdAt: new Date('2021-09-01T12:00:00'),
},
{
@ -1317,7 +1317,7 @@ describe('compose/application-manager', () => {
appUuid: 'debian',
commit: 'otherrelease',
serviceName: 'debian',
status: 'Stopped',
status: 'exited',
createdAt: new Date('2021-09-01T12:00:00'),
},
]);
@ -1351,7 +1351,7 @@ describe('compose/application-manager', () => {
services: {
fedora: {
image: 'fedora:older',
status: 'Stopped',
status: 'exited',
},
},
},