Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Integration test for connectors #7

Open
2 tasks
vishal-biyani opened this issue Aug 11, 2020 · 1 comment
Open
2 tasks

Integration test for connectors #7

vishal-biyani opened this issue Aug 11, 2020 · 1 comment

Comments

@vishal-biyani
Copy link
Member

vishal-biyani commented Aug 11, 2020

A generic integration test framework for Keda connectors which can simulate:

  1. Create a Kind cluster
  2. Deploy the respective MQ (For PR - detect changes to specific connector dynamically)
  3. Deploy the mq-keda-connector deployment
  4. A simple HTTP server which can listen for messages
  5. Drop a message in source topic, expect a response in (4) server and response topic
  6. Bring down the server in (4) and expect a response in error topic

Specific Tests for:

  • Kafka-http-connector
  • RabbitMQ-http-connector

Recommend using Github workflow for end to end cycle.

@vishal-biyani
Copy link
Member Author

  • Our initial thought was to probably decouple the testing of connectors from Fission - while that is good, it seems that it might make it easy for us to Fission instead of writing all custom logic in docker images. Evaluate this and potentially use Fission in the integration test
  • Currently the integration test only caters to SQS, Kafka and RabbitMQ, we need to add tests for others
  • The release process needs a workflow - basically when a new PR is merged for a specific connector - the version should be bumped and pushed to Dockerhub and also tagged to be latest. The version number can be maintained as a file inside each connector directory and should be updated by person who raises the PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants