From 8466f8e3b4a21449cf7e26394d135dc3eb49fbaa Mon Sep 17 00:00:00 2001 From: Jorge Camarero Vera <jorge.camarero@cern.ch> Date: Tue, 6 Sep 2022 17:21:53 +0200 Subject: [PATCH] Resolve "Save logs in liquibase-update test" --- ReleaseNotes.md | 1 + continuousintegration/orchestration/tests/update_db_test.sh | 2 ++ 2 files changed, 3 insertions(+) diff --git a/ReleaseNotes.md b/ReleaseNotes.md index 438725d414..7cb3543737 100644 --- a/ReleaseNotes.md +++ b/ReleaseNotes.md @@ -15,6 +15,7 @@ - cta/CTA#92 - Refactor CTA code so that it can be build without Oracle dependencies ### Bug fixes - cta/CTA#30 - Check size of comments before commit them to the Catalogue +- cta/CTA#142 - Save logs in liquibase-update test # v4.7.9-2 diff --git a/continuousintegration/orchestration/tests/update_db_test.sh b/continuousintegration/orchestration/tests/update_db_test.sh index 1d2e7858bd..1e8cb81279 100755 --- a/continuousintegration/orchestration/tests/update_db_test.sh +++ b/continuousintegration/orchestration/tests/update_db_test.sh @@ -96,8 +96,10 @@ CURRENT_SCHEMA_VERSION=$(kubectl -n ${NAMESPACE} exec ctafrontend -- cta-catalog | grep -o -E '[0-9]+\.[0-9]') if [ ${CURRENT_SCHEMA_VERSION} == ${NEW_SCHEMA_VERSION} ]; then echo "The current Catalogue Schema Version is: ${CURRENT_SCHEMA_VERSION}" + kubectl -n ${NAMESPACE} logs dbupdatetest &> "../../../pod_logs/${NAMESPACE}/liquibase-update.log" else echo "Error. Unexpected Catalogue Schema Version: ${CURRENT_SCHEMA_VERSION}, it should be: ${NEW_SCHEMA_VERSION}" + kubectl -n ${NAMESPACE} logs dbupdatetest &> "../../../pod_logs/${NAMESPACE}/liquibase-update.log" exit 1 fi -- GitLab