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

Test data science pipeline deletion #843

Merged
Merged
Show file tree
Hide file tree
Changes from 4 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 @@ -74,3 +74,14 @@ Get Workflow Name From Topology Page
... The workflow name can be used to retrieve pods, for example
${workflow_name}= Get Text xpath://div/div[text()="Workflow name"]/following-sibling::div
RETURN ${workflow_name}

Delete Pipeline
[Documentation] Delete a pipeline. From the left menu select "Data Science Pipelines" -> Pipelines.
... The "Delete Pipeline" will search for a line in the grid that match the pipeline name.
... Based on that, hit the ... Menu in the row and hit Delete drop down menu.
[Arguments] ${pipeline_name}
Navigate To Page Data Science Pipelines Pipelines
Wait Until Page Contains Element xpath://a[text()='${pipeline_name}']
Pipelines.Click Action From Actions Menu ${pipeline_name} Delete
Handle Deletion Confirmation Modal ${pipeline_name} pipeline
Wait Until Page Contains Element xpath://h4[contains(text(), 'No pipelines yet')]
Original file line number Diff line number Diff line change
Expand Up @@ -94,13 +94,14 @@ Create Pipeline Run # robocop: disable
END
RETURN ${workflow_name}

# robocop: disable=too-many-calls-in-keyword,line-too-long
Click Action From Actions Menu
[Documentation] Click an action from Actions menu (3-dots menu on the right)
[Arguments] ${pipeline_name} ${action}
Wait Until Page Contains Element xpath://table//tr[td[a[text()='${pipeline_name}']]]//td[contains(@class, 'pf-c-table__action')]/div # robocop: disable
Click Element xpath://table//tr[td[a[text()='${pipeline_name}']]]//td[contains(@class, 'pf-c-table__action')]/div # robocop: disable
Wait Until Page Contains Element //table//tr[td[a[text()='${pipeline_name}']]]//td[contains(@class, 'pf-c-table__action')]/div/ul/li/button[contains(text(), '${action}')] # robocop: disable
Click Element //table//tr[td[a[text()='${pipeline_name}']]]//td[contains(@class, 'pf-c-table__action')]/div/ul/li/button[contains(text(), '${action}')] # robocop: disable
Wait Until Page Contains Element xpath://table//tr[td[*[a[text()='${pipeline_name}']]]]//td[contains(@class, 'pf-c-table__action')]/div
Click Element xpath://table//tr[td[*[a[text()='${pipeline_name}']]]]//td[contains(@class, 'pf-c-table__action')]/div
Wait Until Page Contains Element //table//tr[td[*[a[text()='${pipeline_name}']]]]//td[contains(@class, 'pf-c-table__action')]/div/ul/li/button[contains(text(), '${action}')]
Click Element //table//tr[td[*[a[text()='${pipeline_name}']]]]//td[contains(@class, 'pf-c-table__action')]/div/ul/li/button[contains(text(), '${action}')]

Pipeline Should Be Listed
[Documentation] Checks a pipeline is listed in the DS Project details page
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ Delete Data Science Project
Open Data Science Projects Home Page
END
Project Should Be Listed project_title=${project_title}
Click Action From Actions Menu item_title=${project_title} item_type=project action=Delete
Workbenches.Click Action From Actions Menu item_title=${project_title} item_type=project action=Delete
Handle Deletion Confirmation Modal item_title=${project_title} item_type=project
... press_cancel=${press_cancel}
... additional_msg=It will destroy all workbenches, storages, data connections and other resources in ${project_title}
Expand Down Expand Up @@ -294,15 +294,15 @@ Check Pagination Is Correct On The Current Page
Check Resource Name Should Be Immutable
[Documentation] Checks if the Resource Name is not editable
[Arguments] ${project_title}
Click Action From Actions Menu item_title=${project_title} item_type=project action=Edit
Workbenches.Click Action From Actions Menu item_title=${project_title} item_type=project action=Edit
Wait Until Page Contains Element ${RESOURCE_INPUT_XP}
Element Should Be Disabled ${RESOURCE_INPUT_XP}
Click Button Cancel

Update Data Science Project Name
[Documentation] Updates the existing DSG project name and verifies changes are done
[Arguments] ${project_title} ${new_title}
Click Action From Actions Menu item_title=${project_title} item_type=project action=Edit
Workbenches.Click Action From Actions Menu item_title=${project_title} item_type=project action=Edit
Wait Until Page Contains Element ${DESCR_INPUT_XP}
Input Text ${TITLE_INPUT_XP} ${new_title}
Click Button Update
Expand All @@ -312,7 +312,7 @@ Update Data Science Project Name
Update Data Science Project Description
[Documentation] Updates the existing DSG project description
[Arguments] ${project_title} ${new_description}
Click Action From Actions Menu item_title=${project_title} item_type=project action=Edit
Workbenches.Click Action From Actions Menu item_title=${project_title} item_type=project action=Edit
Wait Until Page Contains Element ${DESCR_INPUT_XP}
Input Text ${DESCR_INPUT_XP} ${new_description}
Click Button Update
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ Documentation Suite to test Data Science Pipeline feature using RHODS UI
Resource ../../../Resources/Page/ODH/ODHDashboard/ODHDataScienceProject/Projects.resource
Resource ../../../Resources/Page/ODH/ODHDashboard/ODHDataScienceProject/DataConnections.resource
Resource ../../../Resources/Page/ODH/ODHDashboard/ODHDataScienceProject/Pipelines.resource
Resource ../../../Resources/Page/ODH/ODHDashboard/ODHDataSciencePipelines.resource
Suite Setup Pipelines Suite Setup
Suite Teardown Pipelines Suite Teardown

Expand All @@ -22,7 +23,7 @@ Verify User Can Create, Run and Delete A DS Pipeline From DS Project Details Pag
[Documentation] Verifies user are able to create and execute a DS Pipeline leveraging on
... DS Project UI
[Tags] Sanity Tier1
... ODS-2206 ODS-2207
... ODS-2206 ODS-2226
Create Pipeline Server dc_name=${DC_NAME}
... project_title=${PRJ_TITLE}
Wait Until Pipeline Server Is Deployed project_title=${PRJ_TITLE}
Expand Down Expand Up @@ -61,6 +62,8 @@ Verify User Can Create, Run and Delete A DS Pipeline From DS Project Details Pag
Verify Pipeline Run Deployment Is Successful project_title=${PRJ_TITLE}
... workflow_name=${workflow_name}
Delete Pipeline Run ${PIPELINE_TEST_RUN_BASENAME} ${PIPELINE_TEST_NAME}
Delete Pipeline ${PIPELINE_TEST_NAME}
diegolovison marked this conversation as resolved.
Show resolved Hide resolved
Delete Data Science Project ${PRJ_TITLE}

*** Keywords ***
Pipelines Suite Setup # robocop: disable
Expand Down Expand Up @@ -134,7 +137,7 @@ Delete Pipeline Run
Navigate To Page Data Science Pipelines Runs
Wait Until Page Contains Element xpath://span[text()='Triggered']
Click Element //span[text()='Triggered']
Pipelines.Click Action From Actions Menu ${pipeline_name} Delete
Pipelines.Click Action From Actions Menu ${run_name} Delete
Handle Deletion Confirmation Modal ${run_name} triggered run
Wait Until Page Contains Element xpath://h2[contains(text(), 'No triggered runs yet')]
Capture Page Screenshot