Skip to content

Commit

Permalink
Switching from shared cluster in case it is used.
Browse files Browse the repository at this point in the history
  • Loading branch information
phracek committed Nov 5, 2024
1 parent 9b93a77 commit 7c43b36
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions daily_tests/daily_scl_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -56,12 +56,13 @@ function clone_repo() {
}

function clean_ocp4() {
if [[ "${TESTS}" == "test-openshift-4" ]]; then
if [[ "${TESTS}" == "test-openshift-4" ]] || [[ "${TESTS}" == "test-openshift-pytest" ]]; then
echo "Cleaning OpenShift 4 environment"
oc project default
PASS=$(cat "${KUBEPASSWD}")
oc login --username=kubeadmin --insecure-skip-tls-verify=true --password="${PASS}" --server=https://api.core-serv-ocp.hosted.psi.rdu2.redhat.com:6443
export PATH="/usr/local/oc-v4/bin:$PATH"
oc project default
oc projects | grep sclorg
# oc projects | grep sclorg | xargs oc delete project
# oc delete all --all
Expand Down Expand Up @@ -105,18 +106,13 @@ git clone https://gitlab.cee.redhat.com/platform-eng-core-services/sclorg-tmt-pl
git clone https://github.com/sclorg/container-common-scripts.git /root/container-common-scripts


if [[ "${TESTS}" == "test-openshift-4" ]]; then
if [[ "${TESTS}" == "test-openshift-4" ]] || [[ "${TESTS}" == "test-openshift-pytest" ]]; then
echo "Testing OpenShift 4 is enabled"
curl -L --insecure https://url.corp.redhat.com/sclorg-data-kubeconfig >$KUBECONFIG
# Download kubepasswd
curl -L --insecure https://url.corp.redhat.com/sclorg-data-kubepasswd >$KUBEPASSWD
fi

if [[ "${TESTS}" == "test-openshift" ]]; then
echo "Starting cluster on Nightly Build request"
start_ocp3
fi

iterate_over_all_containers

cd "${CUR_WD}"

0 comments on commit 7c43b36

Please sign in to comment.