Mercurial > hg > orthanc-tests
view Plugins/DicomWeb/Jobs/TestStowClientPause.sh @ 259:298f80c6ccc4
test_qido_parent_attributes
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 07 Jan 2020 19:22:25 +0100 |
parents | 1ea269d46d82 |
children |
line wrap: on
line source
set -ex CURL="curl -s -u alice:orthanctest" # CARDIAC job=`${CURL} http://localhost:8042/dicom-web/servers/sample/stow -d '{"Resources":["6e2c0ec2-5d99c8ca-c1c21cee-79a09605-68391d12"],"Synchronous":false,"Debug":true}' | jq -r .ID` sleep 1 ${CURL} http://localhost:8042/jobs/${job} | jq . ${CURL} http://localhost:8042/jobs/${job}/pause -d '{}' sleep 1 ${CURL} http://localhost:8042/jobs/${job} | jq . sleep 2 ${CURL} http://localhost:8042/jobs/${job}/resume -d '{}' set +x while true do info=`${CURL} http://localhost:8042/jobs/${job}` state=`echo $info | jq -r .State` echo $info | jq . echo $state if [ $state != "Running" ]; then break else sleep 1 fi done