-
Notifications
You must be signed in to change notification settings - Fork 45
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
Add API integration tests #551
Conversation
e6cc27a
to
325ec6f
Compare
This patch adds the docker compose file that will used for the e2e tests Signed-off-by: Santhosh Nagaraj S <[email protected]>
Signed-off-by: Santhosh Nagaraj S <[email protected]>
This patch adds the e2e tests for the endpoints related to applications Signed-off-by: Santhosh Nagaraj S <[email protected]>
This patch adds the e2e tests for the endpoints related to groups Signed-off-by: Santhosh Nagaraj S <[email protected]>
This patch adds the e2e tests for the endpoints related to channels Signed-off-by: Santhosh Nagaraj S <[email protected]>
This patch adds the e2e tests for config endpoint Signed-off-by: Santhosh Nagaraj S <[email protected]>
This patch adds the e2e tests for the endpoints related to instance Signed-off-by: Santhosh Nagaraj S <[email protected]>
This patch adds the e2e tests for the endpoints related to activity Signed-off-by: Santhosh Nagaraj S <[email protected]>
This patch adds the e2e tests for the endpoints related to packages Signed-off-by: Santhosh Nagaraj S <[email protected]>
382d3bb
to
47ea740
Compare
This patch adds the e2e tests for the endpoints related to instance stats Signed-off-by: Santhosh Nagaraj S <[email protected]>
This patch adds the e2e tests for omaha endpoint Signed-off-by: Santhosh Nagaraj S <[email protected]>
|
||
assert.Equal(t, len(timelineDB), len(timelineResponse)) | ||
|
||
// Since the response from DB and API doesn't match as they are relative to the time at which |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎉 Looking good. Thanks for doing this.
I left a little comment about the make target name. Apart from that looks good to me.
I'm not sure if we should be testing the auth related stuff here? But I understand testing auth is out of scope for this PR. Additionally, testing error handling is out of scope of this PR.
In case anyone else is reading, the reason this was done as a http level integration test rather than the usual way with testing handlers... is because the proof-of-concept branch rewrites the backend, so that isn't possible to test the handlers easily. This way the tests can be used on the main branch and then also in the proof of concept branch.
This patch updates the make file to use the docker compose file for tests instead of the shell scripts and docker commands. Signed-off-by: Santhosh Nagaraj S <[email protected]>
Thanks @yolossn for such a massive effort! |
TODO:
stats_test.go
).docker-compose.test.yaml
file.