From cc6035494ec11f1fa9bc81c46b4e20ecae86f894 Mon Sep 17 00:00:00 2001 From: Slavek Licehammer Date: Fri, 11 Dec 2020 16:33:51 +0100 Subject: [PATCH] Applied workaround for MID-6721 bug Test were failing because MID-6721 bug. Workaround applied. --- library.bash | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/library.bash b/library.bash index d70e694..ff08822 100644 --- a/library.bash +++ b/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 }