Skip to content
Snippets Groups Projects
Commit 8466f8e3 authored by Jorge Camarero Vera's avatar Jorge Camarero Vera
Browse files

Resolve "Save logs in liquibase-update test"

parent 2e4d9f9f
No related tags found
No related merge requests found
Pipeline #36149 failed
......@@ -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
......
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment