Skip to content

Commit

Permalink
fixup! fixup! ci: Add ci job to run wopi-validator-core
Browse files Browse the repository at this point in the history
  • Loading branch information
juliusknorr committed Nov 29, 2024
1 parent bde0f1d commit e39268e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/wopi-test.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#!/bin/bash

set -e
set -x

# current timestamp as filename
FILENAME=$(date +%s)
Expand All @@ -9,6 +10,8 @@ NEXTCLOUD_URL=${NEXTCLOUD_URL:-http://localhost}
USERNAME=${USERNAME:-admin}
PASSWORD=${PASSWORD:-admin}

curl -v $NEXTCLOUD_URL/status.php

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)
Expand Down

0 comments on commit e39268e

Please sign in to comment.