The microservice exposes REST APIs to get the list and the related detailed info regarding payment receipts.
See the OpenApi 3 here.
- Java 17
- Spring Boot
- Spring Web
- Azure CosmosDB
- docker
from ./docker
directory
sh ./run_docker.sh dev
ℹ️ Note: for PagoPa ACR is required the login az acr login -n <acr-name>
- git
- maven
- jdk-17
Start the springboot application with this command:
mvn spring-boot:run -Dspring-boot.run.profiles=local
- local: to develop locally.
- default (no profile set): The application gets the properties from the environment (for Azure).
To run the Junit tests:
mvn clean verify
From ./integration-test/src
yarn install
yarn test
install k6 and then from ./performance-test/src
run the tests. An example is given:
k6 run --env VARS=local.environment.json --env TEST_TYPE=./test-types/load.json --env API_SUBSCRIPTION_KEY=<api-subkey> --env TOKENIZER_API_SUBSCRIPTION_KEY=<tokenizer-api-subkey> --env BIZ_COSMOS_ACCOUNT_PRIMARY_KEY=<biz-cosmos-pk> --env RECEIPT_COSMOS_ACCOUNT_PRIMARY_KEY=<receipt-cosmos-pk> --env STORAGE_ACCOUNT_PRIMARY_KEY= <storage-account-pk> get_pdf_receipt.js
Made with ❤️ by PagoPa S.p.A.
See CODEOWNERS
file