diff options
Diffstat (limited to 'js/dav/test/unit/data')
-rw-r--r-- | js/dav/test/unit/data/address_book_query.xml | 72 | ||||
-rw-r--r-- | js/dav/test/unit/data/calendar_query.xml | 24 | ||||
-rw-r--r-- | js/dav/test/unit/data/current_user_principal.xml | 13 | ||||
-rw-r--r-- | js/dav/test/unit/data/index.js | 24 | ||||
-rw-r--r-- | js/dav/test/unit/data/propfind.xml | 39 | ||||
-rw-r--r-- | js/dav/test/unit/data/propfind_oc.xml | 37 | ||||
-rw-r--r-- | js/dav/test/unit/data/sync_collection.xml | 16 |
7 files changed, 0 insertions, 225 deletions
diff --git a/js/dav/test/unit/data/address_book_query.xml b/js/dav/test/unit/data/address_book_query.xml deleted file mode 100644 index 3e7690b7..00000000 --- a/js/dav/test/unit/data/address_book_query.xml +++ /dev/null @@ -1,72 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<d:multistatus xmlns:d="DAV:" - xmlns:s="http://sabredav.org/ns" - xmlns:cal="urn:ietf:params:xml:ns:caldav" - xmlns:cs="http://calendarserver.org/ns/" - xmlns:card="urn:ietf:params:xml:ns:carddav"> - <d:response> - <d:href>/addressbooks/admin/</d:href> - <d:propstat> - <d:prop> - <d:supported-report-set> - <d:supported-report> - <d:report> - <d:expand-property/> - </d:report> - </d:supported-report> - <d:supported-report> - <d:report> - <d:principal-property-search/> - </d:report> - </d:supported-report> - <d:supported-report> - <d:report> - <d:principal-search-property-set/> - </d:report> - </d:supported-report> - </d:supported-report-set> - </d:prop> - <d:status>HTTP/1.1 200 OK</d:status> - </d:propstat> - </d:response> - <d:response> - <d:href>/addressbooks/admin/default/</d:href> - <d:propstat> - <d:prop> - <d:supported-report-set> - <d:supported-report> - <d:report> - <d:expand-property/> - </d:report> - </d:supported-report> - <d:supported-report> - <d:report> - <d:principal-property-search/> - </d:report> - </d:supported-report> - <d:supported-report> - <d:report> - <d:principal-search-property-set/> - </d:report> - </d:supported-report> - <d:supported-report> - <d:report> - <card:addressbook-multiget/> - </d:report> - </d:supported-report> - <d:supported-report> - <d:report> - <card:addressbook-query/> - </d:report> - </d:supported-report> - <d:supported-report> - <d:report> - <d:sync-collection/> - </d:report> - </d:supported-report> - </d:supported-report-set> - </d:prop> - <d:status>HTTP/1.1 200 OK</d:status> - </d:propstat> - </d:response> -</d:multistatus> diff --git a/js/dav/test/unit/data/calendar_query.xml b/js/dav/test/unit/data/calendar_query.xml deleted file mode 100644 index 3a276b75..00000000 --- a/js/dav/test/unit/data/calendar_query.xml +++ /dev/null @@ -1,24 +0,0 @@ -<d:multistatus xmlns:d="DAV:" xmlns:cs="http://calendarserver.org/ns/"> - <d:response> - <d:href>/calendars/johndoe/home/132456762153245.ics</d:href> - <d:propstat> - <d:prop> - <d:getetag>"2134-314"</d:getetag> - <c:calendar-data>BEGIN:VCALENDAR -END:VCALENDAR</c:calendar-data> - </d:prop> - <d:status>HTTP/1.1 200 OK</d:status> - </d:propstat> - </d:response> - <d:response> - <d:href>/calendars/johndoe/home/132456-34365.ics</d:href> - <d:propstat> - <d:prop> - <d:getetag>"5467-323"</d:getetag> - <c:calendar-data>BEGIN:VCALENDAR -END:VCALENDAR</c:calendar-data> - </d:prop> - <d:status>HTTP/1.1 200 OK</d:status> - </d:propstat> - </d:response> -</d:multistatus> diff --git a/js/dav/test/unit/data/current_user_principal.xml b/js/dav/test/unit/data/current_user_principal.xml deleted file mode 100644 index c1b3ead7..00000000 --- a/js/dav/test/unit/data/current_user_principal.xml +++ /dev/null @@ -1,13 +0,0 @@ -<d:multistatus xmlns:d="DAV:" xmlns:s="http://sabredav.org/ns" xmlns:cal="urn:ietf:params:xml:ns:caldav" xmlns:cs="http://calendarserver.org/ns/"> - <d:response> - <d:href>/</d:href> - <d:propstat> - <d:prop> - <d:current-user-principal> - <d:href>/principals/admin%40domain.tld/</d:href> - </d:current-user-principal> - </d:prop> - <d:status>HTTP/1.1 200 OK</d:status> - </d:propstat> - </d:response> -</d:multistatus> diff --git a/js/dav/test/unit/data/index.js b/js/dav/test/unit/data/index.js deleted file mode 100644 index 2394dffc..00000000 --- a/js/dav/test/unit/data/index.js +++ /dev/null @@ -1,24 +0,0 @@ -import fs from 'fs'; -import { format } from 'util'; - -import camelize from '../../../lib/camelize'; - -let docs = {}; -export default docs; - -[ - 'address_book_query', - 'current_user_principal', - 'calendar_query', - 'propfind', - 'propfind_oc', - 'sync_collection' -].forEach(function(responseType) { - var camelCase = camelize(responseType); - docs[camelCase] = fs - .readFileSync( - format('%s/%s.xml', __dirname, responseType), - 'utf-8' - ) - .replace(/>\s+</g, '><'); // Remove whitespace between close and open tag. -}); diff --git a/js/dav/test/unit/data/propfind.xml b/js/dav/test/unit/data/propfind.xml deleted file mode 100644 index 274520c7..00000000 --- a/js/dav/test/unit/data/propfind.xml +++ /dev/null @@ -1,39 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<d:multistatus xmlns:d="DAV:" xmlns:s="http://sabredav.org/ns" xmlns:cal="urn:ietf:params:xml:ns:caldav" xmlns:cs="http://calendarserver.org/ns/"> - <d:response> - <d:href>/calendars/admin/</d:href> - <d:propstat> - <d:prop> - <d:displayname/> - <cs:getctag/> - <cal:supported-calendar-component-set/> - </d:prop> - <d:status>HTTP/1.1 404 Not Found</d:status> - </d:propstat> - </d:response> - <d:response> - <d:href>/calendars/admin/default/</d:href> - <d:propstat> - <d:prop> - <d:displayname>default calendar</d:displayname> - <cs:getctag>http://sabre.io/ns/sync/0</cs:getctag> - <cal:supported-calendar-component-set> - <cal:comp name="VEVENT"/> - <cal:comp name="VTODO"/> - </cal:supported-calendar-component-set> - </d:prop> - <d:status>HTTP/1.1 200 OK</d:status> - </d:propstat> - </d:response> - <d:response> - <d:href>/calendars/admin/outbox/</d:href> - <d:propstat> - <d:prop> - <d:displayname/> - <cs:getctag/> - <cal:supported-calendar-component-set/> - </d:prop> - <d:status>HTTP/1.1 404 Not Found</d:status> - </d:propstat> - </d:response> -</d:multistatus> diff --git a/js/dav/test/unit/data/propfind_oc.xml b/js/dav/test/unit/data/propfind_oc.xml deleted file mode 100644 index f233be04..00000000 --- a/js/dav/test/unit/data/propfind_oc.xml +++ /dev/null @@ -1,37 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<d:multistatus xmlns:d="DAV:" xmlns:oc="http://owncloud.org/ns/"> - <d:response> - <d:href>/calendars/admin/</d:href> - <d:propstat> - <d:prop> - <d:owner> - <d:href>/remote.php/dav/principals/users/admin/</d:href> - </d:owner> - <oc:groups> - <oc:group>Friends</oc:group> - <oc:group>Co-Workers</oc:group> - </oc:groups> - <oc:invite> - <oc:user> - <d:href>principal:principals/users/user01</d:href> - <oc:common-name>user01</oc:common-name> - <oc:invite-accepted/> - <oc:access> - - <oc:read/> - </oc:access> - </oc:user> - <oc:user> - <d:href>principal:principals/users/user02</d:href> - <oc:common-name>user02</oc:common-name> - <oc:invite-accepted/> - <oc:access> - <oc:read/> - </oc:access> - </oc:user> - </oc:invite> - </d:prop> - <d:status>HTTP/1.1 200 OK</d:status> - </d:propstat> - </d:response> -</d:multistatus> diff --git a/js/dav/test/unit/data/sync_collection.xml b/js/dav/test/unit/data/sync_collection.xml deleted file mode 100644 index a2f805ce..00000000 --- a/js/dav/test/unit/data/sync_collection.xml +++ /dev/null @@ -1,16 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<d:multistatus xmlns:d="DAV:" xmlns:s="http://sabredav.org/ns" xmlns:cal="urn:ietf:params:xml:ns:caldav" xmlns:cs="http://calendarserver.org/ns/"> - <d:response> - <d:href>/calendars/admin/default/test.ics</d:href> - <d:propstat> - <d:prop> - <d:getetag>"e91f3c9518f76753a7dc5a0cf8998986"</d:getetag> - <cal:calendar-data>BEGIN:VCALENDAR -END:VCALENDAR -</cal:calendar-data> - </d:prop> - <d:status>HTTP/1.1 200 OK</d:status> - </d:propstat> - </d:response> - <d:sync-token>http://sabre.io/ns/sync/3</d:sync-token> -</d:multistatus> |