diff --git a/testing/tests/carddav/2061-REPORT-carddavclient-ParamDefined.result b/testing/tests/carddav/2061-REPORT-carddavclient-ParamDefined.result new file mode 100644 index 00000000..b59a3ca1 --- /dev/null +++ b/testing/tests/carddav/2061-REPORT-carddavclient-ParamDefined.result @@ -0,0 +1,25 @@ + + + + /caldav.php/user5/addresses/sabre-vobject-131cdf91-5460-423b-a836-e420e5affe13.vcf + + + some valid etag + BEGIN:VCARD +VERSION:4.0 +PRODID:-//Sabre//Sabre VObject 4.3.3//EN +UID:sabre-vobject-131cdf91-5460-423b-a836-e420e5affe13 +FN:CardDavClient Test212420682 +N:Test212420682;CardDavClient;;; +NICKNAME:Jonny0 +EMAIL;TYPE=HOME:john6doe@example.com +EMAIL;TYPE=WORK:doe6@example.com +X-CUSTOMPROP;X-CUSTOMPARAM=WORK:foobar +REV:date +END:VCARD + + + HTTP/1.1 200 OK + + + diff --git a/testing/tests/carddav/2061-REPORT-carddavclient-ParamDefined.test b/testing/tests/carddav/2061-REPORT-carddavclient-ParamDefined.test new file mode 100644 index 00000000..1b53ee68 --- /dev/null +++ b/testing/tests/carddav/2061-REPORT-carddavclient-ParamDefined.test @@ -0,0 +1,33 @@ +# +# Request a REPORT for EMAIL with defined TYPE parameter +# +# (only Jonny0 has a TYPE defined) +# +TYPE=REPORT +URL=http://regression.host/caldav.php/user5/addresses/ + +HEADER=Accept: text/xml,application/xml +HEADER=Content-Type: text/xml +HEADER=Depth: 1 + +AUTH=user5:user5 + +# HEAD + +BEGINDATA + + + + + + + + + + + + +ENDDATA + +REPLACE=_"[0-9a-f]+"_some valid etag_ +REPLACE=/^REV:.*$/REV:date/ diff --git a/testing/tests/carddav/2062-REPORT-carddavclient-ParamDefinedDiffCase.result b/testing/tests/carddav/2062-REPORT-carddavclient-ParamDefinedDiffCase.result new file mode 100644 index 00000000..b59a3ca1 --- /dev/null +++ b/testing/tests/carddav/2062-REPORT-carddavclient-ParamDefinedDiffCase.result @@ -0,0 +1,25 @@ + + + + /caldav.php/user5/addresses/sabre-vobject-131cdf91-5460-423b-a836-e420e5affe13.vcf + + + some valid etag + BEGIN:VCARD +VERSION:4.0 +PRODID:-//Sabre//Sabre VObject 4.3.3//EN +UID:sabre-vobject-131cdf91-5460-423b-a836-e420e5affe13 +FN:CardDavClient Test212420682 +N:Test212420682;CardDavClient;;; +NICKNAME:Jonny0 +EMAIL;TYPE=HOME:john6doe@example.com +EMAIL;TYPE=WORK:doe6@example.com +X-CUSTOMPROP;X-CUSTOMPARAM=WORK:foobar +REV:date +END:VCARD + + + HTTP/1.1 200 OK + + + diff --git a/testing/tests/carddav/2062-REPORT-carddavclient-ParamDefinedDiffCase.test b/testing/tests/carddav/2062-REPORT-carddavclient-ParamDefinedDiffCase.test new file mode 100644 index 00000000..7ad8bd69 --- /dev/null +++ b/testing/tests/carddav/2062-REPORT-carddavclient-ParamDefinedDiffCase.test @@ -0,0 +1,34 @@ +# +# Request a REPORT for EMAIL with defined TYPE parameter +# (like 2061, but param-filter needs to be case-insensitive) +# +# (again only Jonny0) +# +TYPE=REPORT +URL=http://regression.host/caldav.php/user5/addresses/ + +HEADER=Accept: text/xml,application/xml +HEADER=Content-Type: text/xml +HEADER=Depth: 1 + +AUTH=user5:user5 + +# HEAD + +BEGINDATA + + + + + + + + + + + + +ENDDATA + +REPLACE=_"[0-9a-f]+"_some valid etag_ +REPLACE=/^REV:.*$/REV:date/