Skip to content

Commit

Permalink
fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! ci: Ad…
Browse files Browse the repository at this point in the history
…d ci job to run wopi-validator-core
  • Loading branch information
juliusknorr committed Nov 29, 2024
1 parent d33e8ca commit 6211629
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/wopi-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ curl $NEXTCLOUD_URL/status.php --max-time 5 --retry 5 --retry-delay 0 --retry-ma
curl -X PUT -u $USERNAME:$PASSWORD $NEXTCLOUD_URL/remote.php/webdav/$FILENAME.odt -s

PROPFIND_RESULT=$(curl -X PROPFIND -u $USERNAME:$PASSWORD $NEXTCLOUD_URL/remote.php/webdav/$FILENAME.odt --data '<?xml version="1.0"?><d:propfind xmlns:d="DAV:" xmlns:nc="http://nextcloud.org/ns" xmlns:oc="http://owncloud.org/ns" xmlns:ocs="http://open-collaboration-services.org/ns"><d:prop><oc:fileid /></d:prop></d:propfind>' -s)
FILE_ID=$(echo $PROPFIND_RESULT | ggrep -ohE '<oc:fileid>(.*)</oc:fileid>' | cut -d'>' -f 2 | cut -d'<' -f 1)
FILE_ID=$(echo $PROPFIND_RESULT | grep -ohE '<oc:fileid>(.*)</oc:fileid>' | cut -d'>' -f 2 | cut -d'<' -f 1)

COOKIEJAR=/tmp/cookie-jar
rm -f $COOKIEJAR
Expand All @@ -37,4 +37,4 @@ WOPI_URL="$NEXTCLOUD_URL/index.php/apps/richdocuments/wopi/files/$FILE_ID"
echo "WOPI URL: $WOPI_URL"
echo "WOPI token generated: $WOPI_TOKEN"

docker run --add-host nextcloud.local:${HOST_IP} --rm tylerbutler/wopi-validator -- -w $WOPI_URL -t $WOPI_TOKEN -l 0 "$@"
docker run --add-host nextcloud.local:${HOST_IP} --rm tylerbutler/wopi-validator -- -w $WOPI_URL -t $WOPI_TOKEN -l 0 "$@"

0 comments on commit 6211629

Please sign in to comment.