-
Notifications
You must be signed in to change notification settings - Fork 8.2k
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
[Dataset Quality] Enhance Serverless FTR Tests #196599
Comments
Pinging @elastic/obs-ux-logs-team (Team:obs-ux-logs) |
@mohamedhamed-ahmed I think you should not rely on custom roles for serverless Observability testing.
|
@pheyos Thanks for your points. What is confusing to me is that if my understanding is correct, These are eventually going to be enabled for O11y project as well. Our concern here is that we are running all our tests with I get your point of not having custom roles for the customers and only have (admin, editor, viewer) at the moment, but once custom roles are enabled for O11y projects in the future then we might need to amend all these tests. Please correct me if I am missing something there |
@mohamedhamed-ahmed let me try to clarify:
Yes, maybe. And maybe not. We don't know about future decisions and I think it's important that our tests are covering the product as we have it today and not how it might look like in the future.
A totally valid concern. The tests should use the minimum required role for any action they perform. As such they should only run as
I don't really get that point. As long as you don't change the required privileges for an action in the UI (e.g. an editor can or can not perform a certain action), nothing should change with test outcome.
I don't think so. Similar to my point before: if you have a test that e.g. runs as an editor today and can perform certain actions, you wouldn't need to change that test just because more fine-grained roles can be created in the system. You will probably want to create additional test for custom roles, but a test like So my suggestion would be to
|
@pheyos Thanks a million for the elaboration here. What you are suggesting makes sense to me at this point in time, I would then postpone these modification till we see how things are changed in the future. Also agree to the point of keeping the tests as is and add additional ones 👍 |
📝 Summary
Our Dataset Quality FTR serverless tests are all being run with either and
Admin
orEditor
role which might result in false positives in the future and might hide some problems that won't show due to the high privileges given by these 2 roles.It would be ideal to create users with the minimum privileges needed to run the tests. Previously it wasn't possible to do so on serverless until the work in this PR has been merged.
An example of how this can be implemented is provided in the PR linked above.
✔️ Acceptance Criteria
The Dataset Quality FTR serverless tests are updated so that they run without
Admin
users and are given only the necessary rolesThe text was updated successfully, but these errors were encountered: