Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Applied workaround for MID-6721 bug
Test were failing because MID-6721 bug. Workaround applied.
Slavek Licehammer committed Dec 11, 2020
1 parent 6c13fad commit cc60354
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion 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.