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

Create pipeline run with different user #1628

Merged
Merged
Show file tree
Hide file tree
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
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ ${ADMIN_GROUPS_SECTION}= //div[@data-testid="data-science-administrator-group
${ADMIN_GROUPS_LIST}= ${ADMIN_GROUPS_SECTION}//div[@role="group" and @aria-label="Current selections"]
${USER_GROUPS_SECTION}= //div[@data-testid="data-science-user-groups"]
${USER_GROUPS_LIST}= ${USER_GROUPS_SECTION}//div[@role="group" and @aria-label="Current selections"]
${SAVE_BUTTON}= //button[@data-testid="save-button"]
${SAVE_BUTTON}= //button[@data-testid="save-new-button"]

*** Keywords ***
Add OpenShift Groups To Data Science Administrators
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ Resource ../../Resources/ODS.robot
Resource ../../Resources/Common.robot
Resource ../../Resources/Page/ODH/ODHDashboard/ODHDashboard.robot
Resource ../../Resources/Page/ODH/ODHDashboard/ODHDataSciencePipelines.resource
Resource ../../Resources/Page/ODH/ODHDashboard/ODHDataScienceProject/Permissions.resource
Library DateTime
Library ../../../libs/DataSciencePipelinesAPI.py
Library ../../../libs/DataSciencePipelinesKfp.py
Expand All @@ -26,16 +27,20 @@ Verify Ods Users Can Create And Run A Data Science Pipeline Using The kfp Python
[Tags] Smoke Tier1 ODS-2203
${emtpy_dict}= Create Dictionary
End To End Pipeline Workflow Using Kfp
... username=${TEST_USER.USERNAME}
... password=${TEST_USER.PASSWORD}
... admin_username=${TEST_USER.USERNAME}
... admin_password=${TEST_USER.PASSWORD}
... username=${TEST_USER_3.USERNAME}
... password=${TEST_USER_3.PASSWORD}
... project=${PROJECT_NAME}
... python_file=flip_coin.py
... method_name=flipcoin_pipeline
... status_check_timeout=440
... pipeline_params=${emtpy_dict}
End To End Pipeline Workflow Using Kfp
... username=${TEST_USER.USERNAME}
... password=${TEST_USER.PASSWORD}
... admin_username=${TEST_USER.USERNAME}
... admin_password=${TEST_USER.PASSWORD}
... username=${TEST_USER_3.USERNAME}
... password=${TEST_USER_3.PASSWORD}
... project=${PROJECT_NAME}
... python_file=iris_pipeline.py
... method_name=my_pipeline
Expand All @@ -49,8 +54,10 @@ Verify Upload Download In Data Science Pipelines Using The kfp Python Package
[Tags] Sanity Tier1 ODS-2683
${upload_download_dict}= Create Dictionary mlpipeline_minio_artifact_secret=value bucket_name=value
End To End Pipeline Workflow Using Kfp
... username=${TEST_USER.USERNAME}
... password=${TEST_USER.PASSWORD}
... admin_username=${TEST_USER.USERNAME}
... admin_password=${TEST_USER.PASSWORD}
... username=${TEST_USER_3.USERNAME}
... password=${TEST_USER_3.PASSWORD}
... project=${PROJECT_NAME}
... python_file=upload_download.py
... method_name=wire_up_pipeline
Expand All @@ -68,8 +75,10 @@ Verify Ods Users Can Create And Run A Data Science Pipeline With Ray Using The k
Skip If Component Is Not Enabled codeflare
${ray_dict}= Create Dictionary
End To End Pipeline Workflow Using Kfp
... username=${TEST_USER.USERNAME}
... password=${TEST_USER.PASSWORD}
... admin_username=${TEST_USER.USERNAME}
... admin_password=${TEST_USER.PASSWORD}
... username=${TEST_USER_3.USERNAME}
... password=${TEST_USER_3.PASSWORD}
... project=${PROJECT_NAME}
... python_file=ray_integration.py
... method_name=ray_integration
Expand All @@ -84,19 +93,21 @@ Verify Ods Users Can Create And Run A Data Science Pipeline With Ray Using The k
End To End Pipeline Workflow Using Kfp
[Documentation] Create, run and double check the pipeline result using Kfp python package. In the end,
... clean the pipeline resources.
[Arguments] ${username} ${password} ${project} ${python_file} ${method_name}
... ${pipeline_params} ${status_check_timeout}=160 ${ray}=${FALSE}
[Arguments] ${username} ${password} ${admin_username} ${admin_password} ${project} ${python_file}
... ${method_name} ${pipeline_params} ${status_check_timeout}=160 ${ray}=${FALSE}
Remove Pipeline Project ${project}
New Project ${project}
Install DataSciencePipelinesApplication CR ${project}
${status} Login And Wait Dsp Route ${username} ${password} ${project}
${status} Login And Wait Dsp Route ${admin_username} ${admin_password} ${project}
Should Be True ${status} == 200 Could not login to the Data Science Pipelines Rest API OR DSP routing is not working
# we remove and add a new project for sanity. LocalQueue is per namespace
IF ${ray} == ${TRUE}
Setup Kueue Resources ${project} cluster-queue-user resource-flavor-user local-queue-user
END
# The run_robot_test.sh is sending the --variablefile ${TEST_VARIABLES_FILE} which may contain the `PIP_INDEX_URL`
# and `PIP_TRUSTED_HOST` variables, e.g. for disconnected testing.
Launch Data Science Project Main Page username=${admin_username} password=${admin_password}
Assign Contributor Permissions To User ${username} in Project ${project}
${pip_index_url} = Get Variable Value ${PIP_INDEX_URL} ${NONE}
${pip_trusted_host} = Get Variable Value ${PIP_TRUSTED_HOST} ${NONE}
Log pip_index_url = ${pip_index_url} / pip_trusted_host = ${pip_trusted_host}
Expand Down
Loading