Skip to content

Commit

Permalink
Merge pull request #17 from tribofustack/config/gateway
Browse files Browse the repository at this point in the history
Config/gateway
  • Loading branch information
LucasGomesSantos authored May 18, 2024
2 parents 4458c5f + bf9e721 commit fb2ab07
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 12 deletions.
8 changes: 4 additions & 4 deletions infra/kong/k8s/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -83,10 +83,6 @@ data:
- /payments/order/(?<id>\d+)/approve
- /payments/order/(?<id>\d+)/cancel
plugins:
- name: http-log
config:
http_endpoint: https://webhook.site/ad3a0bcc-25f8-491e-8c18-fae253167580
method: POST
- name: request-transformer
config:
add:
Expand All @@ -108,6 +104,10 @@ data:
minute: 5
hour: 10
policy: local
- name: http-log
config:
http_endpoint: https://webhook.site/ad3a0bcc-25f8-491e-8c18-fae253167580
method: POST
strip_path: false
consumers:
Expand Down
2 changes: 2 additions & 0 deletions infra/kong/k8s/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,12 @@ spec:
value: "debug"
- name: KONG_PLUGINS
value: "bundled,jwt"

volumeMounts:
- name: kong-config-volume
mountPath: /tmp/kong-config.yml
subPath: kong-config.yml

volumes:
- name: kong-config-volume
configMap:
Expand Down
8 changes: 4 additions & 4 deletions infra/kong/kong-config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,10 +75,6 @@ services:
- /payments/order/(?<id>\d+)/approve
- /payments/order/(?<id>\d+)/cancel
plugins:
- name: http-log
config:
http_endpoint: https://webhook.site/ad3a0bcc-25f8-491e-8c18-fae253167580
method: POST
- name: request-transformer
config:
add:
Expand All @@ -100,6 +96,10 @@ services:
minute: 5
hour: 10
policy: local
- name: http-log
config:
http_endpoint: https://webhook.site/ad3a0bcc-25f8-491e-8c18-fae253167580
method: POST
strip_path: false

consumers:
Expand Down
2 changes: 1 addition & 1 deletion ms-checkin
Submodule ms-checkin updated 32 files
+17 −7 .github/workflows/build.yaml
+0 −21 jest.config.js
+41 −0 jest.config.ts
+1 −1 k8s/api-configmap.yaml
+2 −9 package.json
+11 −0 sonar-project.properties
+4 −2 src/external/adapters/product/sequelize/product-sequelize.repository.ts
+0 −6 src/external/api/health/health.controller.ts
+1 −1 src/external/infra/database/sequelize.ts
+0 −0 src/external/infra/errors/database.error.ts
+0 −1 src/internal/application/errors/index.ts
+5 −0 src/internal/application/useCases/product/find-by-category.usecase.ts
+0 −5 src/internal/domain/customers/events/customer-created.event.ts
+0 −5 src/internal/domain/product/events/product-increased.event.ts
+1 −1 src/internal/domain/product/repositories/product.repository.ts
+29 −0 tests/customer/entities/customer.entity.spec.ts
+71 −0 tests/customer/useCases/create-customer.usecase.spec.ts
+40 −0 tests/customer/useCases/find-by-cpf.usecase.spec.ts
+40 −0 tests/customer/useCases/find-by-id.usecase.spec.ts
+52 −0 tests/product/entities/category.entity.spec.ts
+107 −0 tests/product/entities/product.entity.spec.ts
+57 −0 tests/product/useCases/create-product.usecase.spec.ts
+24 −0 tests/product/useCases/delete-product.usecase.spec.ts
+45 −0 tests/product/useCases/find-by-category.usecase.spec.ts
+24 −0 tests/product/useCases/get-categories.usecase.spec.ts
+26 −0 tests/product/useCases/update-product.usecase.spec.ts
+69 −0 tests/product/useCases/verify-product-quantity.usecase.spec.ts
+46 −0 tests/stubs/customer-repository.stub.ts
+55 −0 tests/stubs/event-emitter.stub.ts
+10 −0 tests/stubs/id-generator.stub.ts
+65 −0 tests/stubs/product-repository.stub.ts
+1 −1 tsconfig.json

0 comments on commit fb2ab07

Please sign in to comment.