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

[Fix] test to check various user group access #1034

Merged
merged 3 commits into from
Nov 24, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 7 additions & 12 deletions ods_ci/tests/Tests/500__jupyterhub/jupyterhub-user-access.robot
Original file line number Diff line number Diff line change
Expand Up @@ -103,20 +103,15 @@ Set Custom Access Groups
Check New Access Configuration Works As Expected
[Documentation] Checks if the new access configuration (using two custom groups)
... works as expected in JH
Launch Dashboard ocp_user_name=${TEST_USER.USERNAME} ocp_user_pw=${TEST_USER.PASSWORD}
... ocp_user_auth_type=${TEST_USER.AUTH_TYPE} dashboard_url=${ODH_DASHBOARD_URL}
Launch Dashboard ocp_user_name=${TEST_USER_4.USERNAME} ocp_user_pw=${TEST_USER_4.PASSWORD}
... ocp_user_auth_type=${TEST_USER_4.AUTH_TYPE} dashboard_url=${ODH_DASHBOARD_URL}
... browser=${BROWSER.NAME} browser_options=${BROWSER.OPTIONS}
... expected_page=${NONE} wait_for_cards=${FALSE}
${version_check}= Is RHODS Version Greater Or Equal Than 1.20.0
IF ${version_check} == True
${status}= Run Keyword And Return Status Launch Jupyter From RHODS Dashboard Link
Run Keyword And Continue On Failure Should Be Equal ${status} ${FALSE}
Run Keyword And Continue On Failure Page Should Contain Access permissions needed
Run Keyword And Continue On Failure Page Should Contain ask your administrator to adjust your permissions.
ELSE
Launch Jupyter From RHODS Dashboard Link
Run Keyword And Continue On Failure Verify Jupyter Access Level expected_result=none
END
${status}= Run Keyword And Return Status Launch Jupyter From RHODS Dashboard Link
Run Keyword And Continue On Failure Should Be Equal ${status} ${FALSE}
Run Keyword And Continue On Failure Page Should Contain Access permissions needed
Run Keyword And Continue On Failure Page Should Contain ask your administrator to adjust your permissions.

Capture Page Screenshot perm_denied_custom.png
Logout From RHODS Dashboard
Login To RHODS Dashboard ${TEST_USER_2.USERNAME} ${TEST_USER_2.PASSWORD} ${TEST_USER_2.AUTH_TYPE}
Expand Down