Skip to content

Commit

Permalink
add common kw to set thanos suite variables
Browse files Browse the repository at this point in the history
  • Loading branch information
bdattoma committed Jan 23, 2024
1 parent 93ea6d2 commit c1f5fb5
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -160,3 +160,10 @@ Get Thanos Metrics List
END
${rc} ${out}= Run And Return Rc And Output ${cmd} | tr -d '"'
RETURN ${out}


Set Thanos Credentials Variables
${thanos_url}= Get OpenShift Thanos URL
${token}= Generate Thanos Token
Set Suite Variable ${THANOS_URL} ${thanos_url}
Set Suite Variable ${THANOS_TOKEN} ${token}
1 change: 1 addition & 0 deletions ods_ci/tests/Resources/RHOSi.resource
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ Resource Common.robot
... Create Secret For S3-Like Buckets
... Login To OCP Using API
... Generate Thanos Token
... Set Thanos Credentials Variables


*** Keywords ***
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,10 +87,7 @@ Non-Admin Setup Kserve UI Test
${PROJECTS_TO_DELETE}= Create List ${TEST_NS}
Set Suite Variable ${PROJECTS_TO_DELETE}
Fetch CA Certificate If RHODS Is Self-Managed
${thanos_url}= Get OpenShift Thanos URL
${token}= Generate Thanos Token
Set Suite Variable ${THANOS_URL} ${thanos_url}
Set Suite Variable ${THANOS_TOKEN} ${token}
Set Thanos Credentials Variables

Non-Admin Teardown Kserve UI Test
Delete Data Science Project project_title=${TEST_NS}
Expand Down

0 comments on commit c1f5fb5

Please sign in to comment.