Fail update tests if bundle contains only one bundle. (#959)

Signed-off-by: Oleksandr Andriienko <oandriie@redhat.com>
pull/961/head
Oleksandr Andriienko 2021-07-22 08:44:22 +03:00 committed by GitHub
parent 9195560156
commit 5650d4cf85
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 1 deletions

View File

@ -53,9 +53,16 @@ run() {
installCatalogSource "${platform}" "${namespace}" "${CATALOG_IMAGENAME}"
getBundleListFromCatalogSource "${platform}" "${namespace}"
getPreviousCSVInfo "${channel}"
getPreviousCSVInfo "${channel}"
getLatestCSVInfo "${channel}"
echo "[INFO] Test update from version: ${PREVIOUS_CSV_BUNDLE_IMAGE} to: ${LATEST_CSV_BUNDLE_IMAGE}"
if [ "${PREVIOUS_CSV_BUNDLE_IMAGE}" == "${LATEST_CSV_BUNDLE_IMAGE}" ]; then
echo "[ERROR] Nothing to update. OLM channel '${channel}' contains only one bundle."
exit 1
fi
forcePullingOlmImages "${namespace}" "${PREVIOUS_CSV_BUNDLE_IMAGE}"
forcePullingOlmImages "${namespace}" "${LATEST_CSV_BUNDLE_IMAGE}"