-
Notifications
You must be signed in to change notification settings - Fork 81
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Run pipeline upstream tests in ods-ci (#1144)
Run pipeline upstream tests in ods-ci
- Loading branch information
1 parent
ccf975e
commit f3ba5d5
Showing
2 changed files
with
53 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
52 changes: 52 additions & 0 deletions
52
...430__data_science_pipelines/436__test-run-data-science-pipelines-operator-e2e-tests.robot
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
*** Settings *** | ||
Documentation Data Science Pipelines Operator E2E tests - https://github.com/opendatahub-io/data-science-pipelines-operator/tree/main/tests | ||
Suite Setup Prepare Data Science Pipelines Operator E2E Test Suite | ||
Suite Teardown Teardown Data Science Pipelines Operator E2E Test Suite | ||
Library OperatingSystem | ||
Library Process | ||
Resource ../../../../tasks/Resources/RHODS_OLM/install/oc_install.robot | ||
Resource ../../../Resources/RHOSi.resource | ||
Library ../../../../libs/DataSciencePipelinesAPI.py | ||
|
||
|
||
*** Variables *** | ||
# For the initial commit we are hardcoding those environment variables | ||
${DATA-SCIENCE-PIPELINES-OPERATOR-SDK_DIR} /tmp/data-science-pipelines-operator | ||
${DATA-SCIENCE-PIPELINES-OPERATOR-SDK_REPO_URL} https://github.com/opendatahub-io/data-science-pipelines-operator.git | ||
${DATA-SCIENCE-PIPELINES-OPERATOR-SDK_REPO_BRANCH} c9e336df3e6cc8b8e03af2e951dfa54143790339 | ||
${DSPANAMESPACE} dspa-e2e | ||
${KUBECONFIGPATH} %{HOME}/.kube/config | ||
|
||
#robocop: disable: line-too-long | ||
*** Test Cases *** | ||
Run Data Science Pipelines Operator E2E Test | ||
[Documentation] Run Data Science Pipelines Operator E2E Test | ||
[Tags] | ||
... Sanity | ||
... DataSciencePipelines | ||
... Tier1 | ||
${openshift_api} Get Openshift Server | ||
Log ${openshift_api} | ||
${return_code} ${output} Run And Return Rc And Output cd ${DATA-SCIENCE-PIPELINES-OPERATOR-SDK_DIR} && make integrationtest K8SAPISERVERHOST=${openshift_api} DSPANAMESPACE=${DSPANAMESPACE} KUBECONFIGPATH=${KUBECONFIGPATH} | ||
Log ${output} | ||
Should Be Equal As Integers ${return_code} 0 msg= Run Data Science Pipelines Operator E2E Test failed | ||
|
||
#robocop: disable: line-too-long | ||
*** Keywords *** | ||
Prepare Data Science Pipelines Operator E2E Test Suite | ||
[Documentation] Prepare Data Science Pipelines Operator E2E Test Suite | ||
${return_code} ${output} Run And Return Rc And Output rm -fR ${DATA-SCIENCE-PIPELINES-OPERATOR-SDK_DIR} | ||
Log ${output} | ||
${return_code} ${output} Run And Return Rc And Output git clone ${DATA-SCIENCE-PIPELINES-OPERATOR-SDK_REPO_URL} ${DATA-SCIENCE-PIPELINES-OPERATOR-SDK_DIR} | ||
Log ${output} | ||
Should Be Equal As Integers ${return_code} 0 msg=Unable to clone data-science-pipelines-operator repo ${DATA-SCIENCE-PIPELINES-OPERATOR-SDK_REPO_URL}:${DATA-SCIENCE-PIPELINES-OPERATOR-SDK_REPO_BRANCH}:${DATA-SCIENCE-PIPELINES-OPERATOR-SDK_DIR} | ||
${return_code} ${output} Run And Return Rc And Output cd ${DATA-SCIENCE-PIPELINES-OPERATOR-SDK_DIR} && git checkout -b it_test ${DATA-SCIENCE-PIPELINES-OPERATOR-SDK_REPO_BRANCH} | ||
Should Be Equal As Integers ${return_code} 0 msg=Unable to checkout data-science-pipelines-operator | ||
RHOSi Setup | ||
${rc} ${out}= Run And Return Rc And Output oc new-project ${DSPANAMESPACE} | ||
Should Be Equal As Integers ${rc} 0 msg=Cannot create a new project ${DSPANAMESPACE} | ||
|
||
Teardown Data Science Pipelines Operator E2E Test Suite | ||
${return_code} ${output} Run And Return Rc And Output oc delete project ${DSPANAMESPACE} --force --grace-period=0 | ||
Log ${output} | ||
RHOSi Teardown |