Skip to content

Commit

Permalink
check that the plugin image (version the same as the server) is publi…
Browse files Browse the repository at this point in the history
…shed on quay
  • Loading branch information
jmazzitelli committed Oct 30, 2023
1 parent cd15ad7 commit 261190a
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions hack/smoke-test-release-branch.sh
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,7 @@ fi
# Determine the version we are going to smoke test
OPERATOR_VERSION="$(ls -1 docs/kiali-operator-*.tgz | sort | tail -n1 | grep -Eo '[0-9]+\.[0-9]+\.[0-9]+')"
SERVER_VERSION="$(ls -1 docs/kiali-server-*.tgz | sort | tail -n1 | grep -Eo '[0-9]+\.[0-9]+\.[0-9]+')"
OSSMC_VERSION="${SERVER_VERSION}"

if [ "${OPERATOR_VERSION}" != "${SERVER_VERSION}" ]; then
abort_now "The latest helm chart versions for operator [${OPERATOR_VERSION}] and server [${SERVER_VERSION}] do not match. Aborting the test."
Expand Down Expand Up @@ -239,6 +240,13 @@ if ! ${HELM_EXE} uninstall --namespace ${SERVER_NAMESPACE} kiali-server; then
abort_now "The Server Helm Chart was unable to perform an uninstall successfully. The smoke test has FAILED!"
fi

# SMOKE TESTING THAT THE OSSMC IMAGE IS ON QUAY.IO

EXPECTED_OSSMC_IMAGE="quay.io/kiali/ossmconsole:v${OSSMC_VERSION}"
if ! docker pull ${EXPECTED_OSSMC_IMAGE} &>/dev/null ; then
abort_now "The OSSMC image is not published on quay.io. This is missing: [${EXPECTED_OSSMC_IMAGE}]. The smoke test has FAILED!"
fi

# SMOKE TESTING IS COMPLETE

infomsg "========================="
Expand Down

0 comments on commit 261190a

Please sign in to comment.