-
Notifications
You must be signed in to change notification settings - Fork 81
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 negative test for dashboard RBAC on Model Registry #2039
Add negative test for dashboard RBAC on Model Registry #2039
Conversation
Signed-off-by: lugi0 <[email protected]>
ods_ci/tests/Resources/Page/ModelRegistry/ModelRegistry.resource
Dismissed
Show dismissed
Hide dismissed
Robot Results
|
Verified in rhoai-test-flow/1567 |
Launch Dashboard ${TEST_USER_3.USERNAME} ${TEST_USER_3.PASSWORD} ${TEST_USER_3.AUTH_TYPE} | ||
... ${ODH_DASHBOARD_URL} ${BROWSER.NAME} ${BROWSER.OPTIONS} | ||
Open Model Registry Dashboard Page allowed_user=${FALSE} | ||
SeleniumLibrary.Page Should Contain Request access to model registries |
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.
It is, but I wanted to surface it as an explicit step in this TC just for clarity when going through the logs
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.
hm okay, although the step will not run in case of unallowed user cos it would fail in the previous keyword.
Maybe an alternative approach would be to split the permission check from the keyword to open the Registry UI page.
Example
Open Model Registry Dashboard Page
User Should Not Be Allowed
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.
I think it makes more sense to have it defined this way because if the user is allowed we need to refresh the page in case the permissions have not been reconciled yet, and so the keyword will still need to be passed some variable to define if the user is allowed or not.
Once you have that information in the keyword what makes the most sense IMHO is to have that logic defined in the keyword
Quality Gate passedIssues Measures |
…services#2039) Signed-off-by: lugi0 <[email protected]>
No description provided.