Fixes minors

Signed-off-by: Flavius Lacatusu <flacatus@redhat.com>
pull/836/head
Flavius Lacatusu 2021-05-19 08:41:00 +02:00
parent 6175ab1318
commit 1589dd3b9c
No known key found for this signature in database
GPG Key ID: 3C0A7685C14681A8
4 changed files with 26 additions and 2 deletions

View File

@ -29,6 +29,8 @@ function bumpPodsInfo() {
TARGET_DIR="${ARTIFACTS_DIR}/${NS}-info"
mkdir -p "$TARGET_DIR"
oc get pods -n ${NS}
for POD in $(oc get pods -o name -n ${NS}); do
for CONTAINER in $(oc get -n ${NS} ${POD} -o jsonpath="{.spec.containers[*].name}"); do
echo ""
@ -46,6 +48,7 @@ function bumpPodsInfo() {
function Catch_Finish() {
# grab devworkspace-controller namespace events after running e2e
bumpPodsInfo "devworkspace-controller"
bumpPodsInfo "devworkspace-che"
bumpPodsInfo "admin-che"
oc get devworkspaces -n "admin-che" -o=yaml > $ARTIFACTS_DIR/devworkspaces.yaml

View File

@ -51,6 +51,7 @@ runTests() {
sleep 10s
createWorkspaceDevWorkspaceCheOperator
waitWorkspaceStartedDevWorkspaceController
}
initDefaults

View File

@ -40,6 +40,18 @@ runTests() {
provisionOAuth
startNewWorkspace
waitWorkspaceStart
# Dev Workspace controller tests
deployDevWorkspaceController
waitDevWorkspaceControllerStarted
sleep 10s
createWorkspaceDevWorkspaceController
waitWorkspaceStartedDevWorkspaceController
sleep 10s
createWorkspaceDevWorkspaceCheOperator
waitWorkspaceStartedDevWorkspaceController
}
initDefaults

12
.github/bin/common.sh vendored
View File

@ -160,7 +160,7 @@ deployEclipseCheStable(){
--installer ${installer} \
--chenamespace ${NAMESPACE} \
--skip-kubernetes-health-check \
--che-operator-cr-yaml ${CR_PATCH_PATH}
--che-operator-cr-patch-yaml ${CR_PATCH_PATH} \
--version=${version}
}
@ -401,7 +401,15 @@ waitDevWorkspaceControllerStarted() {
}
createWorkspaceDevWorkspaceController () {
oc apply -f https://raw.githubusercontent.com/devfile/devworkspace-operator/main/samples/flattened_theia-next.yaml -n ${NAMESPACE}
echo -e "[INFO] Waiting for webhook-server to be running"
CURRENT_TIME=$(date +%s)
ENDTIME=$(($CURRENT_TIME + 180))
while [ $(date +%s) -lt $ENDTIME ]; do
if oc apply -f https://raw.githubusercontent.com/che-incubator/devworkspace-che-operator/main/samples/flattened_theia-nodejs.yaml -n ${NAMESPACE}; then
break
fi
sleep 10
done
}
waitWorkspaceStartedDevWorkspaceController() {