Skip to content

Commit

Permalink
fix setup for litmus test
Browse files Browse the repository at this point in the history
  • Loading branch information
David Christofas committed Jan 11, 2023
1 parent e487faf commit a0b300b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/config/drone/setup-for-litmus.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ SHARE_ENDPOINT="ocs/v2.php/apps/files_sharing/api/v1/shares"
# envs
ENV="SPACE_ID="
# get space id
SPACE_ID=$(curl -ks -uadmin:admin "${TEST_SERVER_URL}/graph/v1.0/me/drives" | grep -Po '(?<="webDavUrl":").*?(?="})' | cut -d"/" -f6 | sed "s/\\$/\\\\$/g")
SPACE_ID=$(curl -ks -uadmin:admin "${TEST_SERVER_URL}/graph/v1.0/me/drives" | jq -r '.value[] | select(.driveType == "personal") | .root.webDavUrl' | cut -d"/" -f6 | sed "s/\\$/\\\\$/g")
ENV+=${SPACE_ID}

# create a folder
Expand Down

0 comments on commit a0b300b

Please sign in to comment.