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

[FEATURE] Run same tests for security enabled or disabled cluster #478

Open
owaiskazi19 opened this issue Jan 30, 2024 · 4 comments
Open
Labels
enhancement New feature or request

Comments

@owaiskazi19
Copy link
Member

Is your feature request related to a problem?

Currently, we run different test suites for security enabled tests here, which is mostly checking for the roles and not actually testing the APIs with the response. Whereas our integ tests does that.

What solution would you like?

We should run the same integ tests suite for the plugin with security-enabled or disabled cluster with just changing the local cluster url to pick either https or http protocol based on the flag security-enabled=true or security-enabled=false.

What alternatives have you considered?

The current test suite which just checks for the role based access for security enabled cluster.

Do you have any additional context?

@owaiskazi19 owaiskazi19 added enhancement New feature or request untriaged labels Jan 30, 2024
@dbwiddis dbwiddis removed the untriaged label Feb 2, 2024
@minalsha minalsha changed the title [FEATURE] Run same tests for secuirty enabled or disabled cluster [FEATURE] Run same tests for security enabled or disabled cluster Feb 19, 2024
@minalsha minalsha added the v2.13.0 Issues targeting release v2.13.0 label Feb 19, 2024
@minalsha
Copy link
Collaborator

I thought about this and i think it is alright to have different test for security enabled versus not security enabled. Depending on the test case and what we want to test. Security enabled test need to focus on the special setup brought up by the security such as roles/permission.

With Security enabled, what are we uniquely testing if it is the same test that run without security enabled? Wouldnt we duplicate the work?

@joshpalis
Copy link
Member

I agree with your sentiment, but thinking about this again, overall I think having more tests is always good, especially as we add support for more plugins in the future. Running all of our integration tests with security enabled should at the very least help us catch issues early on that would otherwise only be caught during full distribution builds.

@owaiskazi19
Copy link
Member Author

+1 to @joshpalis and the main reason to open this issue in the first place was to find the failure early be it with security enabled/disabled cluster before the distribution build during the release. For the same reason, all the tests need to be run in both type of cluster.

@minalsha
Copy link
Collaborator

this is a nice to have and I dont think this is a blocker for 2.13.

@minalsha minalsha removed the v2.13.0 Issues targeting release v2.13.0 label Mar 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants