Skip to content

Commit

Permalink
Change tier & authentication using Kueue specific Kubeconfig
Browse files Browse the repository at this point in the history
  • Loading branch information
Shilpa Chugh authored and ChughShilpa committed Apr 4, 2024
1 parent 6647369 commit 24c43cd
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
6 changes: 6 additions & 0 deletions ods_ci/tests/Resources/Page/OCPLogin/OCPLogin.robot
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,9 @@ Login To OCP Using API
[Arguments] ${username} ${password}
${rc} ${out}= Run And Return Rc And Output oc login $(oc whoami --show-server) -u ${username} -p ${password} #robocop:disable
Should Be Equal As Integers ${rc} ${0}

Login To OCP Using API And Kubeconfig
[Documentation] Login to openshift using username and password, storing credentials to Kubeconfig file
[Arguments] ${username} ${password} ${kubeconfig}
${rc} ${out}= Run And Return Rc And Output oc login $(oc whoami --show-server) -u ${username} -p ${password} --kubeconfig=${kubeconfig} --insecure-skip-tls-verify=true #robocop:disable
Should Be Equal As Integers ${rc} ${0}
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,18 @@ Library OperatingSystem
Library Process
Library OpenShiftLibrary
Resource ../../../tasks/Resources/RHODS_OLM/install/oc_install.robot
Resource ../../../tests/Resources/Page/OCPLogin/OCPLogin.robot


*** Variables ***
${KUEUE_KUBECONFIG} %{HOME}/.kube/config
${KUEUE_KUBECONFIG} %{WORKSPACE=.}/kueue-kubeconfig
${WORKER_NODE} ${EMPTY}
${KUEUE_RELEASE_ASSETS} %{KUEUE_RELEASE_ASSETS=https://github.com/opendatahub-io/kueue/releases/latest/download}

*** Test Cases ***
Run E2E test
[Documentation] Run ginkgo E2E single cluster test
[Tags] Tier2
[Tags] Tier1
... Kueue
... DistributedWorkloads
Run Kueue E2E Test e2e_test.go
Expand All @@ -41,6 +42,9 @@ Prepare Kueue E2E Test Suite
FAIL Unable to retrieve e2e-singlecluster compiled binary
END

# Store login information into dedicated config
Login To OCP Using API And Kubeconfig ${OCP_ADMIN_USER.USERNAME} ${OCP_ADMIN_USER.PASSWORD} ${KUEUE_KUBECONFIG}

Check warning

Code scanning / Robocop

Line is too long ({{ line_length }}/{{ allowed_length }}) Warning test

Line is too long (124/120)

Enable Component kueue
Wait Component Ready kueue

Expand Down

0 comments on commit 24c43cd

Please sign in to comment.