Uploaded image for project: 'Red Hat OpenShift Dev Spaces (formerly CodeReady Workspaces) '
  1. Red Hat OpenShift Dev Spaces (formerly CodeReady Workspaces)
  2. CRW-222

Ensure correct automated verification of CRW with Github auth

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Done
    • Icon: Major Major
    • 1.2.0.GA
    • 1.1.0.GA
    • testing
    • None
    • QE-2019-05-21 (Sprint: 166)

      There is command to add GitHub provider to CRW instance on OCP:

        # add GitHub provider
        keycloakPodName=$(/tmp/oc get pod --namespace=$CHE_OPENSHIFT_PROJECT -l app=codeready --no-headers | grep "keycloak" | awk '{print $1}')
        /tmp/oc exec $keycloakPodName --namespace=$CHE_OPENSHIFT_PROJECT -- /opt/eap/bin/kcadm.sh create identity-provider/instances -r codeready \
         -s alias=github \
         -s providerId=github \
         -s enabled=true \
         -s storeToken=true \
         -s addReadTokenRoleOnCreate=true \
         -s 'config.useJwksUrl="true"' \
         -s config.clientId=d55576e74716f176fc19 \
         -s config.clientSecret=02b4497c0d349e6e096967346109f87a27a7c122 \
         -s 'config.defaultScope="repo,user,write:public_key"' \
         --no-config --server http://0.0.0.0:8080/auth --realm master --user admin --password admin
      

      There is Jenkins job about E2E upstream Che tests https://codeready-workspaces-jenkins.rhev-ci-vms.eng.rdu2.redhat.com/view/pre-release/view/OCP%203.11/job/pre-release-upstream-che-e2e-tests-against-OCP/configure

      All GitHub related E2E upstream Che tests belong to group `TestGroup.GITHUB`.

              dnochevn Dmytro Nochevnov
              rhopp@redhat.com Radim Hopp
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: