fix health
This commit is contained in:
parent
51314695ef
commit
f59f56b459
|
@ -19,7 +19,7 @@ test:
|
|||
- docker-compose -f docker-compose.ci.tools.yml -p ad-tools --env-file ci/.env.ci up -d
|
||||
- sh ci/wait-up.sh
|
||||
- docker-compose -f docker-compose.ci.service.yml -p ad-service --env-file ci/.env.ci up -d
|
||||
# - docker exec -t v3-ad-api sh -c "npm run test:integration:ci"
|
||||
- docker exec -t v3-ad-api sh -c "npm run test:integration:ci"
|
||||
coverage: /All files[^|]*\|[^|]*\s+([\d\.]+)/
|
||||
rules:
|
||||
- if: '$CI_MERGE_REQUEST_TARGET_BRANCH_NAME == $CI_DEFAULT_BRANCH || $CI_COMMIT_MESSAGE =~ /--check/ || $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH'
|
||||
|
|
|
@ -0,0 +1,21 @@
|
|||
syntax = "proto3";
|
||||
|
||||
package health;
|
||||
|
||||
|
||||
service Health {
|
||||
rpc Check(HealthCheckRequest) returns (HealthCheckResponse);
|
||||
}
|
||||
|
||||
message HealthCheckRequest {
|
||||
string service = 1;
|
||||
}
|
||||
|
||||
message HealthCheckResponse {
|
||||
enum ServingStatus {
|
||||
UNKNOWN = 0;
|
||||
SERVING = 1;
|
||||
NOT_SERVING = 2;
|
||||
}
|
||||
ServingStatus status = 1;
|
||||
}
|
|
@ -14,10 +14,7 @@ async function bootstrap() {
|
|||
package: ['ad', 'health'],
|
||||
protoPath: [
|
||||
join(__dirname, 'modules/ad/interface/grpc-controllers/ad.proto'),
|
||||
join(
|
||||
__dirname,
|
||||
'modules/health/interface/grpc-controllers/health.proto',
|
||||
),
|
||||
join(__dirname, 'health.proto'),
|
||||
],
|
||||
url: `${process.env.SERVICE_URL}:${process.env.SERVICE_PORT}`,
|
||||
loader: { keepCase: true },
|
||||
|
|
Loading…
Reference in New Issue