[CalendarServer-changes] [1853]
CalDAVTester/branches/users/cdaboo/server2server-1846
source_changes at macosforge.org
source_changes at macosforge.org
Sun Sep 9 20:26:32 PDT 2007
Revision: 1853
http://trac.macosforge.org/projects/calendarserver/changeset/1853
Author: cdaboo at apple.com
Date: 2007-09-09 20:26:31 -0700 (Sun, 09 Sep 2007)
Log Message:
-----------
Some basic tests for remote requests. Need to add error cases to this. To test this another server has to be running
and configured as a remote server etc.
Added Paths:
-----------
CalDAVTester/branches/users/cdaboo/server2server-1846/Resource/servertoserver/8.ics
CalDAVTester/branches/users/cdaboo/server2server-1846/Resource/servertoserver/9.ics
CalDAVTester/branches/users/cdaboo/server2server-1846/scripts/tests/servertoserveroutgoing.xml
Added: CalDAVTester/branches/users/cdaboo/server2server-1846/Resource/servertoserver/8.ics
===================================================================
--- CalDAVTester/branches/users/cdaboo/server2server-1846/Resource/servertoserver/8.ics (rev 0)
+++ CalDAVTester/branches/users/cdaboo/server2server-1846/Resource/servertoserver/8.ics 2007-09-10 03:26:31 UTC (rev 1853)
@@ -0,0 +1,14 @@
+BEGIN:VCALENDAR
+CALSCALE:GREGORIAN
+PRODID:-//Cyrusoft International\, Inc.//Mulberry v4.0//EN
+VERSION:2.0
+METHOD:REQUEST
+BEGIN:VFREEBUSY
+UID:20060110T231240Z-4011c71-187-6f73-fb
+ORGANIZER;CN=User 01:$cuaddr1:
+ATTENDEE;CN=Remote 01:mailto:remote01 at example.org
+DTSTART:20060101T000000Z
+DTSTAMP:20060309T185105Z
+DTEND:20060103T000000Z
+END:VFREEBUSY
+END:VCALENDAR
Added: CalDAVTester/branches/users/cdaboo/server2server-1846/Resource/servertoserver/9.ics
===================================================================
--- CalDAVTester/branches/users/cdaboo/server2server-1846/Resource/servertoserver/9.ics (rev 0)
+++ CalDAVTester/branches/users/cdaboo/server2server-1846/Resource/servertoserver/9.ics 2007-09-10 03:26:31 UTC (rev 1853)
@@ -0,0 +1,18 @@
+BEGIN:VCALENDAR
+VERSION:2.0
+METHOD:REQUEST
+PRODID:-//CALENDARSERVER.ORG//NONSGML Version 1//EN
+BEGIN:VEVENT
+UID:20060110T231240Z-4011c71-187-6f73-1
+DTSTART:20060102T200000Z
+DTEND:20060102T210000Z
+ATTENDEE;CN=Remote 01:mailto:remote01 at calendarserver.org
+CREATED:20060110T231240Z
+DESCRIPTION:+1 605 990 0100\nAccess: 879307#
+DTSTAMP:20060309T185105Z
+ORGANIZER;CN=User 01:$cuaddr1:
+STATUS:CONFIRMED
+SUMMARY:TC Realtime
+TRANSP:OPAQUE
+END:VEVENT
+END:VCALENDAR
Added: CalDAVTester/branches/users/cdaboo/server2server-1846/scripts/tests/servertoserveroutgoing.xml
===================================================================
--- CalDAVTester/branches/users/cdaboo/server2server-1846/scripts/tests/servertoserveroutgoing.xml (rev 0)
+++ CalDAVTester/branches/users/cdaboo/server2server-1846/scripts/tests/servertoserveroutgoing.xml 2007-09-10 03:26:31 UTC (rev 1853)
@@ -0,0 +1,94 @@
+<?xml version="1.0" standalone="no"?>
+
+<!DOCTYPE caldavtest SYSTEM "caldavtest.dtd">
+
+<!--
+ Copyright (c) 2006-2007 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.
+
+ DRI: Cyrus Daboo, cdaboo at apple.com
+ -->
+
+<caldavtest ignore-all="yes">
+ <description>Test POST method in CalDAV</description>
+
+ <start/>
+
+ <test-suite name="POST free-busy" ignore='no'>
+ <test name='1'>
+ <description>POST free busy one valid user</description>
+ <request print-response='yes'>
+ <method>POST</method>
+ <header>
+ <name>Originator</name>
+ <value>$cuaddr1:</value>
+ </header>
+ <header>
+ <name>Recipient</name>
+ <value>mailto:remote01 at example.org</value>
+ </header>
+ <ruri>$pathprefix:/$outbox:/</ruri>
+ <data>
+ <content-type>text/calendar; charset=utf-8</content-type>
+ <filepath>Resource/servertoserver/8.ics</filepath>
+ </data>
+ <verify>
+ <callback>statusCode</callback>
+ </verify>
+ <verify>
+ <callback>dataString</callback>
+ <arg>
+ <name>contains</name>
+ <value>2.0;Success</value>
+ </arg>
+ </verify>
+ </request>
+ </test>
+ </test-suite>
+
+ <test-suite name="POST invite" ignore='no'>
+ <test name='1'>
+ <description>POST invite one valid user</description>
+ <request print-response='yes'>
+ <method>POST</method>
+ <header>
+ <name>Originator</name>
+ <value>$cuaddr1:</value>
+ </header>
+ <header>
+ <name>Recipient</name>
+ <value>mailto:remote01 at example.org</value>
+ </header>
+ <ruri>$pathprefix:/$outbox:/</ruri>
+ <data>
+ <content-type>text/calendar; charset=utf-8</content-type>
+ <filepath>Resource/servertoserver/9.ics</filepath>
+ </data>
+ <verify>
+ <callback>statusCode</callback>
+ </verify>
+ <verify>
+ <callback>dataString</callback>
+ <arg>
+ <name>contains</name>
+ <value>2.0;Success</value>
+ </arg>
+ </verify>
+ </request>
+ </test>
+ </test-suite>
+
+ <end/>
+
+</caldavtest>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20070909/641d9c65/attachment.html
More information about the calendarserver-changes
mailing list