Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/hmcts/ccpay-functions-node


https://github.com/hmcts/ccpay-functions-node

jenkins-cft jenkins-cft-a-c

Last synced: about 1 month ago
JSON representation

Awesome Lists containing this project

README

        

**Payments Functions for Azure**

**Service Callback**

Receives a message from the service bus which is then sent to a callback endpoint by HTTP PATCH

**How to test and develop locally**

Go to functions directory `$ cd functions`

Installation

`yarn install`

Configuration

Set below environment variables with corresponding servicebus you want to connect to.

- SERVICE_CALLBACK_BUS_CONNECTION
- SERVICE_CALLBACK_SUBSCRIPTION

Start

`yarn start`

Run tests

`yarn test`

.

Debugging tests

Create a new run configuration, choosing `Node.js Mocha` from the drop down. The arguements may need changing. See below example.

```
"args": [
"--timeout",
"999999",
"--colors",
"${workspaceFolder}/test"
],
```