2222# trap cleanup EXIT
2323
2424function delete_data() {
25- curl -i -L ccdb- test.cern.ch:8080 /truncate/qc/TST/MO/BatchTestTask${UNIQUE_ID} *
26- curl -i -L ccdb- test.cern.ch:8080 /truncate/qc/TST/QO/BatchTestCheck${UNIQUE_ID} *
25+ curl -i -L ali-qcdb- test.cern.ch:8083 /truncate/qc/TST/MO/BatchTestTask${UNIQUE_ID} *
26+ curl -i -L ali-qcdb- test.cern.ch:8083 /truncate/qc/TST/QO/BatchTestCheck${UNIQUE_ID} *
2727
2828 rm -f /tmp/batch_test_mergedA${UNIQUE_ID} .root
2929 rm -f /tmp/batch_test_mergedB${UNIQUE_ID} .root
4646
4747# make sure the CCDB is available otherwise we bail (no failure)
4848# we do not use ping because it will fail from outside CERN.
49- if curl --silent --connect-timeout 1 ccdb- test.cern.ch:8080 > /dev/null 2>&1 ; then
49+ if curl --silent --connect-timeout 1 ali-qcdb- test.cern.ch:8083 > /dev/null 2>&1 ; then
5050 echo " CCDB is reachable."
5151else
5252 echo " CCDB not reachable, batch test is cancelled."
@@ -66,7 +66,7 @@ o2-qc --config json:/${JSON_DIR}/batch-test.json --remote-batch /tmp/batch_test_
6666
6767# check the integrated MonitorObject
6868# first the return code must be 200
69- code=$( curl -L ccdb- test.cern.ch:8080 /qc/TST/MO/BatchTestTask${UNIQUE_ID} /example/8000000/PeriodName=LHC9000x/PassName=apass500 --write-out %{http_code} --silent --output /tmp/batch_test_obj${UNIQUE_ID} .root)
69+ code=$( curl -L ali-qcdb- test.cern.ch:8083 /qc/TST/MO/BatchTestTask${UNIQUE_ID} /example/8000000/PeriodName=LHC9000x/PassName=apass500 --write-out %{http_code} --silent --output /tmp/batch_test_obj${UNIQUE_ID} .root)
7070if (( $code != 200 )) ; then
7171 echo " Error, monitor object of the QC Task could not be found."
7272# delete_data
9090
9191# check the moving window MonitorObject
9292# first the return code must be 200
93- code=$( curl -L ccdb- test.cern.ch:8080 /qc/TST/MO/BatchTestTask${UNIQUE_ID} /mw/example/8000000/PeriodName=LHC9000x/PassName=apass500 --write-out %{http_code} --silent --output /tmp/batch_test_obj_mw${UNIQUE_ID} .root)
93+ code=$( curl -L ali-qcdb- test.cern.ch:8083 /qc/TST/MO/BatchTestTask${UNIQUE_ID} /mw/example/8000000/PeriodName=LHC9000x/PassName=apass500 --write-out %{http_code} --silent --output /tmp/batch_test_obj_mw${UNIQUE_ID} .root)
9494if (( $code != 200 )) ; then
9595 echo " Error, monitor object of the QC Task could not be found."
9696 delete_data
114114
115115# check QualityObject
116116# first the return code must be 200
117- code=$( curl -L ccdb- test.cern.ch:8080 /qc/TST/QO/BatchTestCheck${UNIQUE_ID} /8000000/PeriodName=LHC9000x/PassName=apass500 --write-out %{http_code} --silent --output /tmp/batch_test_check${UNIQUE_ID} .root)
117+ code=$( curl -L ali-qcdb- test.cern.ch:8083 /qc/TST/QO/BatchTestCheck${UNIQUE_ID} /8000000/PeriodName=LHC9000x/PassName=apass500 --write-out %{http_code} --silent --output /tmp/batch_test_check${UNIQUE_ID} .root)
118118if (( $code != 200 )) ; then
119119 echo " Error, quality object of the QC Task could not be found."
120120 delete_data
0 commit comments