backend-defaults: fixed shuttting down

Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
Patrik Oldsberg
2025-12-19 14:22:06 +01:00
parent 4122a443cf
commit 7126bf2d47
4 changed files with 10 additions and 5 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/backend-defaults': patch
---
Fixed a spelling mistake in root health service shutdown response.
@@ -69,7 +69,7 @@ describe('DefaultRootHealthService', () => {
await expect(service.getReadiness()).resolves.toEqual({
status: 503,
payload: {
message: 'Backend is shuttting down',
message: 'Backend is shutting down',
status: 'error',
},
});
@@ -50,7 +50,7 @@ export class DefaultRootHealthService implements RootHealthService {
if (this.#state === 'down') {
return {
status: 503,
payload: { message: 'Backend is shuttting down', status: 'error' },
payload: { message: 'Backend is shutting down', status: 'error' },
};
}
@@ -285,7 +285,7 @@ describe('rootHttpRouterServiceFactory', () => {
// Immediately start failing the readiness health check
await request(app).get('/.backstage/health/v1/readiness').expect(503, {
message: 'Backend is shuttting down',
message: 'Backend is shutting down',
status: 'error',
});
@@ -301,7 +301,7 @@ describe('rootHttpRouterServiceFactory', () => {
.expect(200, { status: 'ok' });
await request(app).get('/.backstage/health/v1/readiness').expect(503, {
message: 'Backend is shuttting down',
message: 'Backend is shutting down',
status: 'error',
});
@@ -312,7 +312,7 @@ describe('rootHttpRouterServiceFactory', () => {
.expect(200, { status: 'ok' });
await request(app).get('/.backstage/health/v1/readiness').expect(503, {
message: 'Backend is shuttting down',
message: 'Backend is shutting down',
status: 'error',
});