Skip to content
Permalink
Browse files

Applied workaround for MID-6721 bug

Test were failing because MID-6721 bug. Workaround applied.
  • Loading branch information
Slavek Licehammer
Slavek Licehammer committed Dec 11, 2020
1 parent 6c13fad commit cc6035494ec11f1fa9bc81c46b4e20ecae86f894
Showing with 6 additions and 1 deletion.
  1. +6 −1 library.bash
@@ -108,7 +108,12 @@ function get_object () {
local OID=$2
OUTFILE=$(mktemp /tmp/get.XXXXXX)
echo out file is $OUTFILE
curl -k --user administrator:5ecr3t -H "Content-Type: application/xml" -X GET "https://localhost:8443/midpoint/ws/rest/$TYPE/$OID" >$OUTFILE || (rm $OUTFILE ; return 1)
#FIXME workaround for MID-6721 bug
if [ "$TYPE" == "tasks" ]; then
PARAM='?include=result'
fi

curl -k --user administrator:5ecr3t -H "Content-Type: application/xml" -X GET "https://localhost:8443/midpoint/ws/rest/$TYPE/$OID$PARAM" >$OUTFILE || (rm $OUTFILE ; return 1)
return 0
}

0 comments on commit cc60354

Please sign in to comment.
You can’t perform that action at this time.