Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pagopa-archive/io-functions-lollipop
https://github.com/pagopa-archive/io-functions-lollipop
Last synced: about 12 hours ago
JSON representation
- Host: GitHub
- URL: https://github.com/pagopa-archive/io-functions-lollipop
- Owner: pagopa-archive
- Archived: true
- Created: 2023-02-14T11:14:02.000Z (almost 2 years ago)
- Default Branch: master
- Last Pushed: 2025-01-10T05:38:25.000Z (26 days ago)
- Last Synced: 2025-02-05T02:17:31.128Z (about 12 hours ago)
- Language: TypeScript
- Size: 1.61 MB
- Stars: 0
- Watchers: 7
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Codeowners: CODEOWNERS
Awesome Lists containing this project
README
# IO Functions LolliPOP
## Integration test
### Testing models
To test models [@zeit/cosmosdb-server](https://www.npmjs.com/package/@zeit/cosmosdb-server) is needed, it can be installed globally by running
```bash
yarn global add @zeit/cosmosdb-server
```
It can be ran with```bash
nohup cosmosdb-server -p 3000 &
```Use then
```bash
docker run -d --rm -p 10000:10000 mcr.microsoft.com/azure-storage/azurite azurite-blob --blobHost 0.0.0.0
```Finally you can run your integration test with
```bash
COSMOSDB_URI=https://localhost:3000/ \
COSMOSDB_KEY="dummy key" \
COSMOSDB_NAME=integration-tests \
LOLLIPOP_ASSERTION_STORAGE_CONNECTION_STRING="DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;" \
yarn test:integration:model
```