Skip to content

Commit

Permalink
Logging in again with system:admin in order to get a token
Browse files Browse the repository at this point in the history
  • Loading branch information
fabiobrz committed Apr 15, 2023
1 parent 8dbcf45 commit 10e90df
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .ci/openshift-ci/build-root/e2e-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ oc config view

export SYSADMIN_USERNAME=$(oc whoami)
export SYSADMIN_PASSWORD=$(cat "${KUBEADMIN_PASSWORD_FILE}")
export TEST_CLUSTER_URL=$(oc whoami --show-server)
oc login "${TEST_CLUSTER_URL}" -u "${SYSADMIN_USERNAME}" -p "${SYSADMIN_PASSWORD}" --insecure-skip-tls-verify=true
export SYSADMIN_TOKEN=$(oc whoami -t)

#export TEST_ADMIN_USERNAME=tadmin
Expand All @@ -34,7 +36,6 @@ export SYSADMIN_TOKEN=$(oc whoami -t)
#oc patch OAuth cluster -p '{"spec": {"identityProviders": [{"htpasswd": {"fileData": {"name": "htpass-secret-2"}},"mappingMethod": "claim","name": "my_htpasswd_provider","type": "HTPasswd"}]}}' --type=merge
#oc adm policy add-cluster-role-to-user cluster-admin $TEST_ADMIN_USERNAME

export TEST_CLUSTER_URL=$(oc whoami --show-server)

#oc login "${TEST_CLUSTER_URL}" -u ${TEST_USER_USERNAME} -p ${TEST_USER_PASSWORD} --insecure-skip-tls-verify=true
#export TEST_USER_TOKEN=$(oc whoami -t)
Expand Down

0 comments on commit 10e90df

Please sign in to comment.