Skip to content

Commit

Permalink
Added a quick and dirty OLM check for devworkspace-che.
Browse files Browse the repository at this point in the history
  • Loading branch information
metlos authored and tolusha committed Mar 10, 2021
1 parent 3c8fd76 commit ac033ea
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
6 changes: 5 additions & 1 deletion .ci/oci-nightly-olm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,11 @@ runTests() {
waitDevWorkspaceControllerStarted

sleep 10s
createWorksaceDevWorkspaceController
createWorkspaceDevWorkspaceController
waitWorkspaceStartedDevWorkspaceController

sleep 10s
createWorkspaceDevWorkspaceCheOperator
waitWorkspaceStartedDevWorkspaceController
}

Expand Down
8 changes: 6 additions & 2 deletions .github/bin/common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,7 @@ waitDevWorkspaceControllerStarted() {
exit 1
}

createWorksaceDevWorkspaceController () {
createWorkspaceDevWorkspaceController () {
oc apply -f https://raw.githubusercontent.com/devfile/devworkspace-operator/main/samples/flattened_theia-next.yaml -n ${NAMESPACE}
}

Expand All @@ -390,7 +390,7 @@ waitWorkspaceStartedDevWorkspaceController() {
do
pods=$(oc get pods -n ${NAMESPACE})
if [[ $pods =~ .*Running.* ]]; then
echo "[INFO] Wokrspace started succesfully"
echo "[INFO] Workspace started succesfully"
return
fi

Expand All @@ -401,3 +401,7 @@ waitWorkspaceStartedDevWorkspaceController() {
echo "Failed to start a workspace"
exit 1
}

createWorkspaceDevWorkspaceCheOperator() {
oc apply -f https://raw.githubusercontent.com/che-incubator/devworkspace-che-operator/main/samples/flattened_theia-nodejs.yaml -n ${NAMESPACE}
}

0 comments on commit ac033ea

Please sign in to comment.