Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

jenkins test - add client validation test for crab recover #8087

Merged
merged 2 commits into from
Aug 23, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 23 additions & 2 deletions test/container/testingScripts/clientValidation.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ source setupCRABClient.sh
TASK_DIR="${WORK_DIR}/CRABServer/test/clientValidationTasks"

#list of commands to execute for full testing (sl7/8)
FULL_TEST=(createmyproxy checkusername checkwrite tasks preparelocal status report getlog getoutput)
FULL_TEST=(createmyproxy checkusername checkwrite tasks preparelocal status report getlog getoutput recover)
#list of commands to execute on sl6
SL6_TESTS=(status checkusername)

Expand Down Expand Up @@ -194,9 +194,15 @@ source setupCRABClient.sh
done
for param in "${USETHISPARMS[@]}"; do
checkThisCommand status "$param"

done

### 6b. test crab status --proxy=PROXY --task=TASKNAME --instance=INSTANCE
USETHISPARMS=()
INITPARMS="--proxy --task --instance"
feedParms "$PROXY $TASKTOTRACK $REST_Instance"
for param in "${USETHISPARMS[@]}"; do
checkThisCommand status "$param"
done

### 7. test crab report --proxy=PROXY --dir=PROJDIR --outputdir=OUTPUTDIR
USETHISPARMS=()
Expand Down Expand Up @@ -245,5 +251,20 @@ source setupCRABClient.sh
checkThisCommand kill "$param"
done

### 11. test crab recover --proxy=PROXY --dir=PROJDIR
USETHISPARMS=()
INITPARMS="--proxy --dir"
feedParms "$PROXY $PROJDIR"
for param in "${USETHISPARMS[@]}"; do
checkThisCommand recover "$param"
done

### 12. test crab recover --proxy=PROXY --task=TASKNAME --instance=INSTANCE
USETHISPARMS=()
INITPARMS="--proxy --task --instance"
feedParms "$PROXY $TASKTOTRACK $REST_Instance"
for param in "${USETHISPARMS[@]}"; do
checkThisCommand recover "$param"
done

} 2>&1 | tee ${WORK_DIR}/client-validation.log