reactive-interaction-gateway icon indicating copy to clipboard operation
reactive-interaction-gateway copied to clipboard

Add/Refactor smoke tests

Open kevinbader opened this issue 6 years ago • 0 comments

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
      1. start a fake server
      2. use RIG's API to add a test API definition against the fake server
      3. issue a HTTP request against the test API
      4. use RIG's API to remove the test API definition

kevinbader avatar Dec 13 '18 10:12 kevinbader