See the OpenApi 3 here.
- Java 17
- Spring Boot
- Spring Web
- Feign Client
- docker
- a running GPD mock (see
mock
folder of this repository)
Under main folder typing:
docker build pagopagpdpayments
or under docker folder typing:
docker-compose up --build
- if you have a Mac with m1 processor and you want to start the project locally using the Docker Compose, you must update
this instruction in the Dockerfile as follows
FROM --platform=linux/amd64 adoptopenjdk/openjdk16:alpine
- If you run this command on Mac device, you may find an error related to the impossibility to generate the Docker containers:
... SomeServiceTest IllegalState Previous attempts to find a Docker environment
This could be caused by a permission issue during the generation of these containers. In order to perform correctly thedocker-compose
command in local, is recommended to leave thetest.skip
parameter in themaven package
phase totrue
and rely on code-review pipeline for the execution of the unit tests.
- git
- maven
- jdk-11
- docker
Under main folder typing:
mvn spring-boot:run -Dspring-boot.run.profiles=local
- maven
- newman
- postman-to-k6
- k6
Under payments
folder typing:
mvn clean verify -DGPD_SUBSCRIPTION_KEY=secret -DGPS_SUBSCRIPTION_KEY=secret -DAPICONFIG_SUBSCRIPTION_KEY=secret -DGPD_HOST=host -DGPS_HOST=host -DAPI_CONFIG_HOST=host
Under payments
folder typing:
newman run api-test/GPD.postman_collection.json --environment=api-test/local.postman_environment.json
NOTE: suppose
Started Payments
on port8080
Under payments
folder typing:
postman-to-k6 api-test/GPD.postman_collection.json --environment api-test/local.postman_environment.json -o ./k6-script.js
k6 run --vus 2 --duration 30s ./k6-script.js
NOTE: suppose
Started Payments
on port8085
See CODEOWNERS
file