Skip to content
This repository was archived by the owner on May 23, 2023. It is now read-only.

Commit b58a417

Browse files
Pequenas melhorias nos exemplos
1 parent 17e6eab commit b58a417

File tree

5 files changed

+9
-6
lines changed

5 files changed

+9
-6
lines changed

examples/lambda_api/app.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
import boot
66
import os
77
import base64
8-
from lambda_app.services.v1.healthcheck import HealthCheckSchema
8+
from lambda_app.services.v1.healthcheck import HealthCheckSchema, HealthCheckResult
99
from lambda_app.services.v1.healthcheck.resources import \
1010
MysqlConnectionHealthCheck, RedisConnectionHealthCheck, \
1111
SQSConnectionHealthCheck, SelfConnectionHealthCheck
@@ -85,6 +85,7 @@ def alive():
8585
LOGGER, CONFIG), ["redis"])
8686
service.add_check("queue", SQSConnectionHealthCheck(
8787
LOGGER, CONFIG), ["queue"])
88+
service.add_check("internal", lambda: HealthCheckResult.unhealthy("connect"), ["example"])
8889

8990
return service.get_response()
9091

examples/lambda_api/public/swagger/openapi.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ paths:
224224
$ref: '#/components/schemas/EventCreateErrorResponse'
225225
summary: Create event
226226
servers:
227-
- description: null
228-
url: null
229-
- description: 'Development server '
227+
- description: Development server
228+
url: http://localhost:5000
229+
- description: Development server
230230
url: http://localhost:5000

examples/lambda_api/sonar-project.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
sonar.projectKey=madeiramadeirabr_template-serverless-lambda-python
1+
sonar.projectKey=madeiramadeirabr_template-serverless-lambda-python-lambda-api
22
sonar.organization=madeiramadeirabr
33

44
# Path is relative to the sonar-project.properties file. Replace "\" by "/" on Windows.

examples/lambda_sqs/.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,3 +63,5 @@ config/integration.en
6363

6464
#output lambda
6565
output/response.json
66+
/output/
67+
/include/

examples/lambda_sqs/sonar-project.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
sonar.projectKey=madeiramadeirabr_template-serverless-lambda-python
1+
sonar.projectKey=madeiramadeirabr_template-serverless-lambda-python-lambda-sqs
22
sonar.organization=madeiramadeirabr
33

44
# Path is relative to the sonar-project.properties file. Replace "\" by "/" on Windows.

0 commit comments

Comments
 (0)