opencrvs / opencrvs-core

A global solution to civil registration
https://www.opencrvs.org
Other
90 stars 73 forks source link

Integration tests for webhooks / gateway endpoints #6601

Open rikukissa opened 8 months ago

rikukissa commented 8 months ago

Description

We need to have guarantees our external APIs won't change, or even worse, break when we release new OpenCRVS versions.

Dev tasks

curl --request POST \
  --url https://requestbin-api.pipedream.com/api/v2/http_endpoints \
  --header 'Content-Type: application/json' \
  --header 'User-Agent: insomnia/9.2.0' \
  --data '{"name":"Untitled","pvt":false}'
rikukissa commented 8 months ago

@naftis can you make a technical design for this?

Zangetsu101 commented 8 months ago

we should be able to do it via cypress

rikukissa commented 8 months ago

@Zangetsu101 that sounds like a good idea – I'm spinning up a Node.js server to respond to incoming webhook requests won't be that difficult inside the cypress code either. Wonder if there's something built-in already @naftis