Skip to content

Commit

Permalink
Add oauth login step
Browse files Browse the repository at this point in the history
Signed-off-by: Luca Giorgi <[email protected]>
  • Loading branch information
lugi0 committed Aug 8, 2023
1 parent de276bd commit b6e4c0c
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -288,6 +288,9 @@ Spawn Notebook With Arguments # robocop: disable
END
END
Spawn Notebook ${spawner_timeout} ${same_tab}
Run Keyword And Continue On Failure Wait Until Page Contains Log in with OpenShift timeout=15s
${oauth_prompt_visible} = Is OpenShift OAuth Login Prompt Visible
IF ${oauth_prompt_visible} Click Button Log in with OpenShift
Run Keyword And Warn On Failure Login To Openshift ${username} ${password} ${auth_type}
${authorization_required} = Is Service Account Authorization Required
IF ${authorization_required} Authorize jupyterhub service account
Expand Down
3 changes: 3 additions & 0 deletions ods_ci/tests/Tests/500__jupyterhub/autoscaling-gpus.robot
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,9 @@ Spawn Notebook And Trigger Autoscale
Select Container Size Small
Set Number Of Required GPUs 1
Spawn Notebook spawner_timeout=20 minutes expect_autoscaling=${True}
Run Keyword And Continue On Failure Wait Until Page Contains Log in with OpenShift timeout=15s
${oauth_prompt_visible} = Is OpenShift OAuth Login Prompt Visible
IF ${oauth_prompt_visible} Click Button Log in with OpenShift
Run Keyword And Warn On Failure Login To Openshift ${TEST_USER.USERNAME} ${TEST_USER.PASSWORD} ${TEST_USER.AUTH_TYPE}
${authorization_required} = Is Service Account Authorization Required
IF ${authorization_required} Authorize jupyterhub service account
Expand Down
3 changes: 3 additions & 0 deletions ods_ci/tests/Tests/500__jupyterhub/test.robot
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,9 @@ Can Spawn Notebook
# TODO: Verify why error isn't appearing within 1 minute
# Verify Notebook Spawner Modal Does Not Get Stuck When Requesting Too Many Resources To Spawn Server
Spawn Notebook same_tab=${False}
Run Keyword And Continue On Failure Wait Until Page Contains Log in with OpenShift timeout=15s
${oauth_prompt_visible} = Is OpenShift OAuth Login Prompt Visible
IF ${oauth_prompt_visible} Click Button Log in with OpenShift
Login To Openshift ${TEST_USER.USERNAME} ${TEST_USER.PASSWORD} ${TEST_USER.AUTH_TYPE}
${authorization_required} = Is Service Account Authorization Required
IF ${authorization_required} Authorize jupyterhub service account
Expand Down

0 comments on commit b6e4c0c

Please sign in to comment.