backend-defaults: fixed shuttting down
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
---
|
||||
'@backstage/backend-defaults': patch
|
||||
---
|
||||
|
||||
Fixed a spelling mistake in root health service shutdown response.
|
||||
+1
-1
@@ -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' },
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
+3
-3
@@ -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',
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user