Skip to content

Commit

Permalink
update github workflow
Browse files Browse the repository at this point in the history
Signed-off-by: Valeriy Svydenko <[email protected]>
  • Loading branch information
svor committed Sep 29, 2023
1 parent e5a0503 commit 0f8db3c
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions .ci/openshift-ci/common-functions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ initUserNamespace() {
OCP_USER_NAME=$1

echo "[INFO] Initialize user namespace"
oc login -u="${OCP_USER_NAME}" -p="${OCP_LOGIN_PASSWORD}" --insecure-skip-tls-verify=false
oc login -u="${OCP_USER_NAME}" -p="${OCP_LOGIN_PASSWORD}" --insecure-skip-tls-verify=true
if requestProvisionNamespace | grep "HTTP/1.1 200"; then
echo "[INFO] Request provision user namespace returned 'HTTP/1.1 200' status code."
else
Expand All @@ -115,6 +115,15 @@ initUserNamespace() {
fi
}

provisionNamespace() {
if requestProvisionNamespace | grep "HTTP/1.1 200"; then
echo "[INFO] Request provision user namespace returned 'HTTP/1.1 200' status code."
else
echo "[ERROR] Request provision user namespace returned wrong status code. Expected: HTTP/1.1 200"
exit 1
fi
}

testProjectIsCloned() {
PROJECT_NAME=$1
OCP_USER_NAMESPACE=$2
Expand Down Expand Up @@ -204,5 +213,5 @@ setupTestEnvironment() {
deployChe
forwardPortToService
getPluginRegistryURL
initUserNamespace "${OCP_USER_NAME}"
provisionNamespace
}

0 comments on commit 0f8db3c

Please sign in to comment.