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

Migrate e2e test for AWS SQS Queue scaler to Go. #3172

Closed
Tracked by #2737
v-shenoy opened this issue Jun 13, 2022 · 8 comments · Fixed by #3263
Closed
Tracked by #2737

Migrate e2e test for AWS SQS Queue scaler to Go. #3172

v-shenoy opened this issue Jun 13, 2022 · 8 comments · Fixed by #3263
Assignees
Labels
help wanted Looking for support from community testing

Comments

@v-shenoy
Copy link
Contributor

v-shenoy commented Jun 13, 2022

Proposal

Relates to #2357, #2737.

Use-Case

No response

Anything else?

No response

@v-shenoy v-shenoy added needs-discussion feature-request All issues for new features that have not been committed to help wanted Looking for support from community testing and removed needs-discussion feature-request All issues for new features that have not been committed to labels Jun 13, 2022
@zroubalik zroubalik mentioned this issue Jun 13, 2022
48 tasks
@aviadlevy
Copy link
Contributor

Hi,
I might be interested in working on this issue, but first needs to verify I understand the current behvior

In e2e test you querying an actual SQS queue in AWS? not mock?

@v-shenoy
Copy link
Contributor Author

Hi, I might be interested in working on this issue, but first needs to verify I understand the current behvior

In e2e test you querying an actual SQS queue in AWS? not mock?

Yes, all of the e2e tests query actual resources.

@aviadlevy
Copy link
Contributor

So I'll start take a look at this test. you can assign this to me 😎

@v-shenoy
Copy link
Contributor Author

v-shenoy commented Jun 22, 2022

Ahaha, I am not in charge here :) Just helping out. Think you can assign it to yourself as well actually.

@aviadlevy
Copy link
Contributor

Can't assign myself, so let's wait for KEDA owners

@aviadlevy
Copy link
Contributor

aviadlevy commented Jun 22, 2022

I'm still wondering about using real AWS resources. don't you think it's better to use sqs mock? (something like https://hub.docker.com/r/roribio16/alpine-sqs/)

My concern is case when something really bad happening and we aren't able to clean the AWS resource created by the test. how do you handle such cases?

Of course a pre condition requirement is the ability to set custom endpoint for aws resources which is currently unsupported.

Let me know what you think.
@v-shenoy @JorTurFer

@JorTurFer
Copy link
Member

JorTurFer commented Jun 22, 2022

hey @aviadlevy
in fact, we prefer to use real resources for e2e always, where is possible. If e2e test fail and the resources are not deleted, we can delete them manually, going to the cloud provider console to do it 😄
if the test fails without a panic, the resources should be deleted, and even that, after solving the panic, the resources will be deleted (running and failing the test again).

The advantage of using real resources is that we can detect/check real behaviors, mocks usually doesn't support all the scenarios like authentication or pod-identities (we want to cover them also with e2e test).

From costs pov, CNCF gives credit on principal cloud providers so it's not a problem, we try to cleanup all resources after tests but it's not a problem if they are there after the test during some time due to an error

@aviadlevy
Copy link
Contributor

Thanks @JorTurFer for the elaborate explanation

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Looking for support from community testing
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

3 participants