Skip to content
This repository was archived by the owner on Jun 26, 2024. It is now read-only.
Merged
Changes from all 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
17 changes: 1 addition & 16 deletions test/acceptance/openshift-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,22 +10,7 @@ USER_TOKEN=acceptance-tests-dev
oc get secret $HTPASSWD_SECRET -n openshift-config >/dev/null 2>&1 \
|| oc create secret generic $HTPASSWD_SECRET --from-file=htpasswd=$HTPASSWD_FILE -n openshift-config

oc apply -f - <<EOF
apiVersion: config.openshift.io/v1
kind: OAuth
metadata:
name: cluster
spec:
identityProviders:
- name: acceptance-tests
challenge: true
login: true
mappingMethod: claim
type: HTPasswd
htpasswd:
fileData:
name: $HTPASSWD_SECRET
EOF
oc patch oauth cluster --type merge -p '{"spec":{"identityProviders":[{"htpasswd":{"fileData":{"name":"'$HTPASSWD_SECRET'"}},"mappingMethod":"claim","name":"acceptance-tests","challenge":"true","login":true,"type":"HTPasswd"}]}}'

CURRENT_CTX=$(oc config current-context)

Expand Down