Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F117755934
put.xml
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
13 KB
Referenced Files
None
Subscribers
None
put.xml
View Options
<?xml version="1.0" standalone="no"?>
<!DOCTYPE caldavtest SYSTEM "caldavtest.dtd">
<!--
Copyright (c) 2006-2013 Apple Inc. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<caldavtest>
<description>
Test putting contacts
</description>
<require-feature>
<feature>
carddav
</feature>
</require-feature>
<start>
</start>
<test-suite
name=
'PUT VCARD'
ignore=
'no'
>
<test
name=
'1'
ignore=
'no'
>
<description>
PUT simple person contact
</description>
<request
end-delete=
'yes'
print-response=
'yes'
>
<method>
PUT
</method>
<ruri>
$
addressbookpath1:/1.vcf
</ruri>
<data>
<content-type>
text/vcard; charset=utf-8
</content-type>
<filepath>
Resource/CardDAV/vcardput/1.vcf
</filepath>
</data>
<verify>
<callback>
statusCode
</callback>
</verify>
<verify>
<callback>
header
</callback>
<arg>
<name>
header
</name>
<value>
ETag
</value>
</arg>
</verify>
</request>
<request>
<method>
GET
</method>
<ruri>
$
addressbookpath1:/1.vcf
</ruri>
<verify>
<callback>
addressDataMatch
</callback>
<arg>
<name>
filepath
</name>
<value>
Resource/CardDAV/vcardput/1.vcf
</value>
</arg>
</verify>
</request>
</test>
<test
name=
'2'
ignore=
'no'
>
<description>
PUT contact created by Mulberry
</description>
<request
end-delete=
'yes'
>
<method>
PUT
</method>
<ruri>
$
addressbookpath1:/2.vcf
</ruri>
<data>
<content-type>
text/vcard; charset=utf-8
</content-type>
<filepath>
Resource/CardDAV/vcardput/2.vcf
</filepath>
</data>
<verify>
<callback>
statusCode
</callback>
</verify>
<verify>
<callback>
header
</callback>
<arg>
<name>
header
</name>
<value>
ETag
</value>
</arg>
</verify>
</request>
<request>
<method>
GET
</method>
<ruri>
$
addressbookpath1:/2.vcf
</ruri>
<verify>
<callback>
addressDataMatch
</callback>
<arg>
<name>
filepath
</name>
<value>
Resource/CardDAV/vcardput/2.vcf
</value>
</arg>
</verify>
</request>
</test>
<test
name=
'3'
ignore=
'no'
>
<description>
PUT company contact
</description>
<request
end-delete=
'yes'
>
<method>
PUT
</method>
<ruri>
$
addressbookpath1:/3.vcf
</ruri>
<data>
<content-type>
text/vcard; charset=utf-8
</content-type>
<filepath>
Resource/CardDAV/vcardput/3.vcf
</filepath>
</data>
<verify>
<callback>
statusCode
</callback>
</verify>
<verify>
<callback>
header
</callback>
<arg>
<name>
header
</name>
<value>
ETag
</value>
</arg>
</verify>
</request>
<request>
<method>
GET
</method>
<ruri>
$
addressbookpath1:/3.vcf
</ruri>
<verify>
<callback>
addressDataMatch
</callback>
<arg>
<name>
filepath
</name>
<value>
Resource/CardDAV/vcardput/3.vcf
</value>
</arg>
</verify>
</request>
</test>
<test
name=
'5'
ignore=
'no'
>
<description>
PUT contact with all default fields filled in
</description>
<request
end-delete=
'yes'
>
<method>
PUT
</method>
<ruri>
$
addressbookpath1:/5.vcf
</ruri>
<data>
<content-type>
text/vcard; charset=utf-8
</content-type>
<filepath>
Resource/CardDAV/vcardput/5.vcf
</filepath>
</data>
<verify>
<callback>
statusCode
</callback>
</verify>
<verify>
<callback>
header
</callback>
<arg>
<name>
header
</name>
<value>
ETag
</value>
</arg>
</verify>
</request>
<request>
<method>
GET
</method>
<header>
<name>
User-Agent
</name>
<value>
Mac OS X/10.9.2 (13C64) AddressBook/1369 | PUT VCARD | 5 | #5
</value>
</header>
<ruri>
$
addressbookpath1:/5.vcf
</ruri>
<verify>
<callback>
addressDataMatch
</callback>
<arg>
<name>
filepath
</name>
<value>
Resource/CardDAV/vcardput/5.vcf
</value>
</arg>
</verify>
</request>
</test>
<test
name=
'6'
ignore=
'no'
>
<description>
PUT contact with picture
</description>
<request
end-delete=
'yes'
>
<method>
PUT
</method>
<ruri>
$
addressbookpath1:/6.vcf
</ruri>
<data>
<content-type>
text/vcard; charset=utf-8
</content-type>
<filepath>
Resource/CardDAV/vcardput/6.vcf
</filepath>
</data>
<verify>
<callback>
statusCode
</callback>
</verify>
<verify>
<callback>
header
</callback>
<arg>
<name>
header
</name>
<value>
ETag
</value>
</arg>
</verify>
</request>
<request>
<method>
GET
</method>
<ruri>
$
addressbookpath1:/6.vcf
</ruri>
<verify>
<callback>
addressDataMatch
</callback>
<arg>
<name>
filepath
</name>
<value>
Resource/CardDAV/vcardput/6.vcf
</value>
</arg>
</verify>
</request>
</test>
<test
name=
'8'
ignore=
'yes'
>
<description>
FIXME: PUT contact with pref parameters
</description>
<request
end-delete=
'yes'
>
<method>
PUT
</method>
<ruri>
$
addressbookpath1:/8.vcf
</ruri>
<data>
<content-type>
text/vcard; charset=utf-8
</content-type>
<filepath>
Resource/CardDAV/vcardput/8.vcf
</filepath>
</data>
<verify>
<callback>
statusCode
</callback>
</verify>
<verify>
<callback>
header
</callback>
<arg>
<name>
header
</name>
<value>
ETag
</value>
</arg>
</verify>
</request>
<request>
<method>
GET
</method>
<ruri>
$
addressbookpath1:/8.vcf
</ruri>
<verify>
<callback>
addressDataMatch
</callback>
<arg>
<name>
filepath
</name>
<value>
Resource/CardDAV/vcardput/8.vcf
</value>
</arg>
</verify>
</request>
</test>
<test
name=
'9'
ignore=
'no'
>
<description>
PUT contact with double bytes contents
</description>
<request
end-delete=
'yes'
>
<method>
PUT
</method>
<ruri>
$
addressbookpath1:/9.vcf
</ruri>
<data>
<content-type>
text/vcard; charset=utf-8
</content-type>
<filepath>
Resource/CardDAV/vcardput/9.vcf
</filepath>
</data>
<verify>
<callback>
statusCode
</callback>
</verify>
<verify>
<callback>
header
</callback>
<arg>
<name>
header
</name>
<value>
ETag
</value>
</arg>
</verify>
</request>
<request>
<method>
GET
</method>
<ruri>
$
addressbookpath1:/9.vcf
</ruri>
<verify>
<callback>
addressDataMatch
</callback>
<arg>
<name>
filepath
</name>
<value>
Resource/CardDAV/vcardput/9.vcf
</value>
</arg>
</verify>
</request>
</test>
<test
name=
'10'
ignore=
'yes'
>
<description>
PUT contact with all custom fields
</description>
<request
end-delete=
'yes'
>
<method>
PUT
</method>
<ruri>
$
addressbookpath1:/10.vcf
</ruri>
<data>
<content-type>
text/vcard; charset=utf-8
</content-type>
<filepath>
Resource/CardDAV/vcardput/10.vcf
</filepath>
</data>
<verify>
<callback>
statusCode
</callback>
</verify>
<verify>
<callback>
header
</callback>
<arg>
<name>
header
</name>
<value>
ETag
</value>
</arg>
</verify>
</request>
<request>
<method>
GET
</method>
<ruri>
$
addressbookpath1:/10.vcf
</ruri>
<verify>
<callback>
addressDataMatch
</callback>
<arg>
<name>
filepath
</name>
<value>
Resource/CardDAV/vcardput/10.vcf
</value>
</arg>
</verify>
</request>
</test>
</test-suite>
<test-suite
name=
'Test \ escapes'
ignore=
'yes'
>
<test
name=
'1'
ignore=
'no'
>
<description>
PUT simple person contact
</description>
<request
end-delete=
'yes'
print-response=
'yes'
>
<method>
PUT
</method>
<ruri>
$
addressbookpath1:/11.vcf
</ruri>
<data>
<content-type>
text/vcard; charset=utf-8
</content-type>
<filepath>
Resource/CardDAV/vcardput/11.vcf
</filepath>
</data>
<verify>
<callback>
statusCode
</callback>
</verify>
<verify>
<callback>
header
</callback>
<arg>
<name>
header
</name>
<value>
ETag
</value>
</arg>
</verify>
</request>
<request>
<method>
GET
</method>
<ruri>
$
addressbookpath1:/11.vcf
</ruri>
<verify>
<callback>
addressDataMatch
</callback>
<arg>
<name>
filepath
</name>
<value>
Resource/CardDAV/vcardput/11.vcf
</value>
</arg>
</verify>
</request>
</test>
<test
name=
'2'
ignore=
'no'
>
<description>
PUT with \n in ADR
</description>
<request
end-delete=
'yes'
print-response=
'yes'
>
<method>
PUT
</method>
<ruri>
$
addressbookpath1:/12.vcf
</ruri>
<data>
<content-type>
text/vcard; charset=utf-8
</content-type>
<filepath>
Resource/CardDAV/vcardput/12.vcf
</filepath>
</data>
<verify>
<callback>
statusCode
</callback>
</verify>
<verify>
<callback>
header
</callback>
<arg>
<name>
header
</name>
<value>
ETag
</value>
</arg>
</verify>
</request>
<request>
<method>
GET
</method>
<ruri>
$
addressbookpath1:/12.vcf
</ruri>
<verify>
<callback>
addressDataMatch
</callback>
<arg>
<name>
filepath
</name>
<value>
Resource/CardDAV/vcardput/12.vcf
</value>
</arg>
</verify>
</request>
</test>
</test-suite>
<test-suite
name=
'PUT with X- using VALUE != TEXT'
ignore=
'no'
>
<test
name=
'1'
ignore=
'yes'
>
<description>
FIXME: PUT simple person contact
</description>
<request
end-delete=
'yes'
print-response=
'yes'
>
<method>
PUT
</method>
<ruri>
$
addressbookpath1:/13.vcf
</ruri>
<data>
<content-type>
text/vcard; charset=utf-8
</content-type>
<filepath>
Resource/CardDAV/vcardput/13.vcf
</filepath>
</data>
<verify>
<callback>
statusCode
</callback>
</verify>
<verify>
<callback>
header
</callback>
<arg>
<name>
header
</name>
<value>
ETag
</value>
</arg>
</verify>
</request>
<request>
<method>
GET
</method>
<ruri>
$
addressbookpath1:/13.vcf
</ruri>
<verify>
<callback>
addressDataMatch
</callback>
<arg>
<name>
filepath
</name>
<value>
Resource/CardDAV/vcardput/13.vcf
</value>
</arg>
</verify>
</request>
</test>
</test-suite>
<test-suite
name=
'PUTs with ^ parameter encoding'
ignore=
'no'
>
<test
name=
'1'
ignore=
'yes'
>
<description>
FIXME: Roundtrip encoded CN=
</description>
<request
end-delete=
'yes'
>
<method>
PUT
</method>
<ruri>
$
addressbookpath1:/14.vcf
</ruri>
<data>
<content-type>
text/vcard; charset=utf-8
</content-type>
<filepath>
Resource/CardDAV/vcardput/14.vcf
</filepath>
</data>
<verify>
<callback>
statusCode
</callback>
</verify>
</request>
<request>
<method>
GET
</method>
<ruri>
$
addressbookpath1:/14.vcf
</ruri>
<verify>
<callback>
addressDataMatch
</callback>
<arg>
<name>
filepath
</name>
<value>
Resource/CardDAV/vcardput/14a.vcf
</value>
</arg>
</verify>
</request>
</test>
</test-suite>
<test-suite
name=
'PUT groups'
ignore=
'no'
>
<test
name=
'1'
ignore=
'no'
>
<description>
PUT group with circular reference, unknown members, group data changed
</description>
<request
end-delete=
'yes'
>
<method>
PUT
</method>
<ruri>
$
addressbookpath1:/16.vcf
</ruri>
<data>
<content-type>
text/vcard; charset=utf-8
</content-type>
<filepath>
Resource/CardDAV/vcardput/16.vcf
</filepath>
</data>
<verify>
<callback>
statusCode
</callback>
</verify>
<verify>
<callback>
header
</callback>
<arg>
<name>
header
</name>
<value>
ETag
</value>
</arg>
</verify>
</request>
<request>
<method>
GET
</method>
<ruri>
$
addressbookpath1:/16.vcf
</ruri>
<header>
<name>
User-Agent
</name>
<value>
Mac OS X/10.9.2 (13C64) AddressBook/1369 | PUT groups | 1 | #1
</value>
</header>
<verify>
<callback>
addressDataMatch
</callback>
<arg>
<name>
filepath
</name>
<value>
Resource/CardDAV/vcardput/16a.vcf
</value>
</arg>
</verify>
</request>
</test>
<test
name=
'2'
ignore=
'yes'
>
<description>
FIXME: PUT user over group
</description>
<request
end-delete=
'yes'
>
<method>
PUT
</method>
<ruri>
$
addressbookpath1:/16.vcf
</ruri>
<data>
<content-type>
text/vcard; charset=utf-8
</content-type>
<filepath>
Resource/CardDAV/vcardput/18.vcf
</filepath>
</data>
<verify>
<callback>
statusCode
</callback>
<arg>
<name>
status
</name>
<value>
403
</value>
</arg>
</verify>
</request>
</test>
<test
name=
'3'
ignore=
'yes'
>
<description>
FIXME: PUT group over user
</description>
<request
end-delete=
'yes'
>
<method>
PUT
</method>
<ruri>
$
addressbookpath1:/1.vcf
</ruri>
<data>
<content-type>
text/vcard; charset=utf-8
</content-type>
<filepath>
Resource/CardDAV/vcardput/19.vcf
</filepath>
</data>
<verify>
<callback>
statusCode
</callback>
<arg>
<name>
status
</name>
<value>
403
</value>
</arg>
</verify>
</request>
</test>
<test
name=
'4'
ignore=
'yes'
>
<description>
FIXME: PUT group over group, no data change
</description>
<request
end-delete=
'yes'
>
<method>
PUT
</method>
<ruri>
$
addressbookpath1:/16.vcf
</ruri>
<data>
<content-type>
text/vcard; charset=utf-8
</content-type>
<filepath>
Resource/CardDAV/vcardput/19.vcf
</filepath>
</data>
<verify>
<callback>
statusCode
</callback>
</verify>
<verify>
<callback>
header
</callback>
<arg>
<name>
header
</name>
<value>
ETag
</value>
</arg>
</verify>
</request>
<request>
<method>
GET
</method>
<ruri>
$
addressbookpath1:/16.vcf
</ruri>
<verify>
<callback>
addressDataMatch
</callback>
<arg>
<name>
filepath
</name>
<value>
Resource/CardDAV/vcardput/19.vcf
</value>
</arg>
</verify>
</request>
</test>
</test-suite>
<end>
<request
user=
"
$userid1:" pswd="$
pswd1:"
>
<method>
DELETEALL
</method>
<ruri>
$
addressbookpath1:/
</ruri>
</request>
</end>
</caldavtest>
File Metadata
Details
Attached
Mime Type
text/xml
Expires
Sat, Apr 4, 8:23 AM (2 w, 3 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
18823207
Default Alt Text
put.xml (13 KB)
Attached To
Mode
rI iRony
Attached
Detach File
Event Timeline