reactive-interaction-gateway
reactive-interaction-gateway copied to clipboard
Add/Refactor smoke tests
Move existing smoke tests to, or create new ones in, apps/rig_tests/test/smoke_tests (there should be no smoke tests outside that folder). The smoke-test suite is meant to run against a production setup to ensure RIG is correctly set up, so they should not cause any side effects to RIG's environment.
The test suite should cover the following:
- ensure RIG is healthy:
- check the health endpoint
- ensure RIG can consume events:
- if a kafka connection is configured, setting up a consumer should work
- same for kinesis
- ensure RIG can forward events:
- connect to SSE endpoint, produce a message using HTTP endpoint and check it gets delivered.
- same for websockets
- ensure RIG can forward incoming HTTP requests:
- only HTTP target
- start a fake server
- use RIG's API to add a test API definition against the fake server
- issue a HTTP request against the test API
- use RIG's API to remove the test API definition
- only HTTP target