diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2016-02-02 15:13:28 +0100 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2016-02-03 17:18:23 +0100 |
commit | a3cc448c9dba0693feedd7f304b83ce16aee16ca (patch) | |
tree | 7a753baa22b2ec72d2a90a70e7e11eb1cc9afb42 /apps/dav/tests/travis | |
parent | 8c14ce01ba361cffefee7e450e8b51743fcc4f4c (diff) | |
download | nextcloud-server-a3cc448c9dba0693feedd7f304b83ce16aee16ca.tar.gz nextcloud-server-a3cc448c9dba0693feedd7f304b83ce16aee16ca.zip |
Adding propfind property to retrieve sharee information from a dav resource
Diffstat (limited to 'apps/dav/tests/travis')
3 files changed, 25 insertions, 4 deletions
diff --git a/apps/dav/tests/travis/caldav/script.sh b/apps/dav/tests/travis/caldav/script.sh index 7259372567c..aa5fc732922 100644 --- a/apps/dav/tests/travis/caldav/script.sh +++ b/apps/dav/tests/travis/caldav/script.sh @@ -10,8 +10,6 @@ sleep 30 # run the tests cd "$SCRIPTPATH/CalDAVTester" PYTHONPATH="$SCRIPTPATH/pycalendar/src" python testcaldav.py --print-details-onfail --basedir "$SCRIPTPATH/../caldavtest/" -o cdt.txt \ - "CalDAV/current-user-principal.xml" \ - "CalDAV/sync-report.xml" \ "CalDAV/sharing-calendars.xml" RESULT=$? diff --git a/apps/dav/tests/travis/caldavtest/data/Resource/CalDAV/sharing/calendars/read-write/5.xml b/apps/dav/tests/travis/caldavtest/data/Resource/CalDAV/sharing/calendars/read-write/5.xml index e52a842ff66..4862ed195f8 100644 --- a/apps/dav/tests/travis/caldavtest/data/Resource/CalDAV/sharing/calendars/read-write/5.xml +++ b/apps/dav/tests/travis/caldavtest/data/Resource/CalDAV/sharing/calendars/read-write/5.xml @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="utf-8" ?> -<D:propfind xmlns:D="DAV:" xmlns:CS="http://calendarserver.org/ns/"> +<D:propfind xmlns:D="DAV:" xmlns:CS="http://owncloud.org/ns"> <D:prop> <CS:invite/> </D:prop> diff --git a/apps/dav/tests/travis/caldavtest/tests/CalDAV/sharing-calendars.xml b/apps/dav/tests/travis/caldavtest/tests/CalDAV/sharing-calendars.xml index a5fabcf6e82..334fa561aec 100644 --- a/apps/dav/tests/travis/caldavtest/tests/CalDAV/sharing-calendars.xml +++ b/apps/dav/tests/travis/caldavtest/tests/CalDAV/sharing-calendars.xml @@ -161,7 +161,30 @@ <arg> <name>exists</name> <value>$verify-property-prefix:/{DAV:}owner/{DAV:}href[=$principaluri1:]</value> - <!-- value>$verify-property-prefix:/{urn:ietf:params:xml:ns:caldav}schedule-calendar-transp/{urn:ietf:params:xml:ns:caldav}opaque</value --> + <!--<value>$verify-property-prefix:/{urn:ietf:params:xml:ns:caldav}schedule-calendar-transp/{urn:ietf:params:xml:ns:caldav}opaque</value>--> + </arg> + </verify> + </request> + </test> + <test name='5a'> + <description>Invite propfind returns sharees</description> + <request> + <method>PROPFIND</method> + <ruri>$calendarhome1:/shared/</ruri> + <header> + <name>Depth</name> + <value>0</value> + </header> + <data> + <content-type>text/xml; charset=utf-8</content-type> + <filepath>Resource/CalDAV/sharing/calendars/read-write/5.xml</filepath> + </data> + <verify> + <callback>xmlElementMatch</callback> + <arg> + <name>exists</name> + <value>$verify-property-prefix:/{http://owncloud.org/ns}invite/{http://owncloud.org/ns}user/{DAV:}href</value> + <value>$verify-property-prefix:/{http://owncloud.org/ns}invite/{http://owncloud.org/ns}user/{http://owncloud.org/ns}invite-accepted</value> </arg> </verify> </request> |