Skip to content
Snippets Groups Projects
Commit 23b70cbf authored by Victor Kotlyar's avatar Victor Kotlyar
Browse files

Make gitlab CI tests stop after catalogue verification errors.

parent 0d33f1be
No related branches found
No related tags found
No related merge requests found
......@@ -29,6 +29,10 @@ fi
echo "Preparing namespace for the tests"
./prepare_tests.sh -n ${NAMESPACE}
if [ $? -ne 0 ]; then
echo "ERROR: failed to prepare namespace for the tests"
exit 1
fi
echo
echo "Launching simple_client_ar.sh on client pod"
......
......@@ -67,6 +67,10 @@ NB_TAPEDRIVES_IN_USE=${#TAPEDRIVES_IN_USE[@]}
echo "Preparing CTA configuration for tests"
# verify the catalogue DB schema
kubectl --namespace ${NAMESPACE} exec ctafrontend -- cta-catalogue-schema-verify /etc/cta/cta-catalogue.conf
if [ $? -ne 0 ]; then
echo "ERROR: failed to verify the catalogue DB schema"
exit 1
fi
kubectl --namespace ${NAMESPACE} exec ctafrontend -- cta-catalogue-admin-user-create /etc/cta/cta-catalogue.conf --username ctaadmin1 -m "docker cli"
for ((i=0; i<${#TAPEDRIVES_IN_USE[@]}; i++)); do
kubectl --namespace ${NAMESPACE} exec ctacli -- cta-admin logicallibrary add \
......
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