-
-
Notifications
You must be signed in to change notification settings - Fork 100
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: fix broken unit tests for 7.0.0 release
- Loading branch information
1 parent
247c123
commit 795ce21
Showing
14 changed files
with
78 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,31 @@ | ||
import { HealthIndicatorResult } from '../health-indicator'; | ||
|
||
/** | ||
* @publicApi | ||
*/ | ||
export type HealthCheckStatus = 'error' | 'ok' | 'shutting_down'; | ||
|
||
/** | ||
* The result of a health check | ||
* @publicApi | ||
*/ | ||
export interface HealthCheckResult { | ||
results: any[]; | ||
errors: any[]; | ||
/** | ||
* The overall status of the Health Check | ||
*/ | ||
status: HealthCheckStatus; | ||
/** | ||
* The info object contains information of each health indicator | ||
* which is of status "up" | ||
*/ | ||
info?: HealthIndicatorResult; | ||
/** | ||
* The error object contains information of each health indicator | ||
* which is of status "down" | ||
*/ | ||
errors?: HealthIndicatorResult; | ||
/** | ||
* The details object contains information of every health indicator. | ||
*/ | ||
details: HealthIndicatorResult; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
/** | ||
* @publicApi | ||
*/ | ||
export type HealthIndicatorStatus = 'up' | 'down'; | ||
|
||
/** | ||
* The result object of a health indicator | ||
* @publicApi | ||
*/ | ||
export type HealthIndicatorResult = { | ||
/** | ||
* The key of the health indicator which should be uniqe | ||
*/ | ||
[key: string]: { | ||
/** | ||
* The status if the given health indicator was successful or not | ||
*/ | ||
status: HealthIndicatorStatus; | ||
/** | ||
* Optional settings of the health indicator result | ||
*/ | ||
[optionalKeys: string]: any; | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,11 @@ | ||
export * from './health-indicator-result.interface'; | ||
export * from './health-indicator'; | ||
|
||
/** Health Indicators */ | ||
export * from './dns/dns.health'; | ||
export * from './database/mongoose.health'; | ||
export * from './database/typeorm.health'; | ||
export * from './microservice/microservice.health'; | ||
export * from './microservice/grpc.health'; | ||
export * from './disk'; | ||
export * from './memory'; | ||
|
||
export * from './health-indicator'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters