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

Create automated test for the podman run scenario

XMLWordPrintable

    • False
    • None
    • False

      *WARNING: This test is for when https://github.com/redhat-developer/devspaces-images/pull/489 is merged*

      We need to verify that, when starting a workspace from https://github.com/l0rd/dockerfile-hello-world (notice that there is no devfile so the default UDI will be used) then, after opening the terminal, the following commands should succeed:

      # Enable Kubedock
      KUBEDOCK_ENABLED="true"
      /entrypoint.sh
      
      export USER=$(oc whoami)
      export TKN=$(oc whoami -t)
      export REG="image-registry.openshift-image-registry.svc:5000"
      export PROJECT=$(oc project -q)
      export IMG="${REG}/${PROJECT}/hello"
      
      $ podman login --tls-verify=false --username ${USER} --password ${TKN} ${REG}
      Login Succeeded!
      $ podman build -t ${IMG} .
      (...)
      $ podman push --tls-verify=false ${IMG}
      (...)
      $ podman run --rm ${IMG}
      Hello from Kubedock!
      (...)
      

            rh-ee-mdolhalo Maryna Dolhalova (Inactive)
            mloriedo Mario Loriedo
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: