From 2f7719aa37935280a14ffe5f7c4fca9f885f9dd0 Mon Sep 17 00:00:00 2001 From: Cedric CAFFY <cedric.caffy@cern.ch> Date: Wed, 4 Mar 2020 16:22:37 +0100 Subject: [PATCH] Added Catalogue cleaning at the end of repack_system_test_wrapper.sh and archive_retrieve.sh --- continuousintegration/orchestration/tests/archive_retrieve.sh | 3 +++ .../orchestration/tests/repack_systemtest_wrapper.sh | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/continuousintegration/orchestration/tests/archive_retrieve.sh b/continuousintegration/orchestration/tests/archive_retrieve.sh index 1dbd6a0ec5..ccd693f847 100755 --- a/continuousintegration/orchestration/tests/archive_retrieve.sh +++ b/continuousintegration/orchestration/tests/archive_retrieve.sh @@ -59,4 +59,7 @@ kubectl -n ${NAMESPACE} exec client -- bash /root/client_ar.sh -n ${NB_FILES} -s kubectl -n ${NAMESPACE} exec ctaeos -- bash /root/grep_xrdlog_mgm_for_error.sh || exit 1 +# Cleaning catalogue content +echo 'yes' | kubectl -n ${NAMESPACE} exec ctafrontend -i /usr/bin/cta-catalogue-schema-drop /etc/cta/cta-catalogue.conf + exit 0 diff --git a/continuousintegration/orchestration/tests/repack_systemtest_wrapper.sh b/continuousintegration/orchestration/tests/repack_systemtest_wrapper.sh index 56e715d196..1b649c3d7c 100755 --- a/continuousintegration/orchestration/tests/repack_systemtest_wrapper.sh +++ b/continuousintegration/orchestration/tests/repack_systemtest_wrapper.sh @@ -477,3 +477,7 @@ repackTapeRepair 4 repackJustAddCopies 5 repackCancellation 6 # repackMoveAndAddCopies 7 + +#Cleaning catalogue content + +echo 'yes' | kubectl -n ${NAMESPACE} exec ctafrontend -i /usr/bin/cta-catalogue-schema-drop /etc/cta/cta-catalogue.conf -- GitLab