summaryrefslogtreecommitdiff
path: root/test/synckolab/parser/kolab3
diff options
context:
space:
mode:
authorniko <niko>2012-10-01 22:54:16 (GMT)
committerniko <niko>2012-10-01 22:54:16 (GMT)
commit7b47175cd7c82f806b37d2fe2332cc3b6b8e105b (patch)
tree0b8e251df97fa99301e8909e1804b9adcaec81dc /test/synckolab/parser/kolab3
parent9df93aa72d2e67afde9e4e6d515072720f98f9fc (diff)
downloadsynckolab-7b47175cd7c82f806b37d2fe2332cc3b6b8e105b.tar.gz
initial tests
Diffstat (limited to 'test/synckolab/parser/kolab3')
-rw-r--r--test/synckolab/parser/kolab3/raw/testContactMinimalFromXML.xml2
-rw-r--r--test/synckolab/parser/kolab3/raw/testcontact.xml61
-rw-r--r--test/synckolab/parser/kolab3/raw/testevent.xml81
-rw-r--r--test/synckolab/parser/kolab3/raw/testnote.xml18
-rw-r--r--test/synckolab/parser/kolab3/raw/xcalCalendar.xml142
-rw-r--r--test/synckolab/parser/kolab3/raw/xcalEvent.xml34
6 files changed, 338 insertions, 0 deletions
diff --git a/test/synckolab/parser/kolab3/raw/testContactMinimalFromXML.xml b/test/synckolab/parser/kolab3/raw/testContactMinimalFromXML.xml
new file mode 100644
index 0000000..7a316ff
--- /dev/null
+++ b/test/synckolab/parser/kolab3/raw/testContactMinimalFromXML.xml
@@ -0,0 +1,2 @@
+<?xml version="1.0" ?>
+<contact xmlns="http://kolab.org"><uid>0123456789</uid><product-id>PyKolab Format XML Bindings</product-id><creation-date>2011-10-25T14:31:43.604435</creation-date><last-modification-date>2011-10-25T14:31:43.605026</last-modification-date><sensitivity>public</sensitivity><email><smtp-address>vanmeeuwen@kolabsys.com</smtp-address></email></contact>
diff --git a/test/synckolab/parser/kolab3/raw/testcontact.xml b/test/synckolab/parser/kolab3/raw/testcontact.xml
new file mode 100644
index 0000000..1db956b
--- /dev/null
+++ b/test/synckolab/parser/kolab3/raw/testcontact.xml
@@ -0,0 +1,61 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<contact version="3.0dev1" xmlns="http://kolab.org">
+ <!-- Common fields -->
+ <uid>uid</uid>
+ <body></body>
+ <categories></categories>
+ <creation-date>2004-05-04T15:00:00Z</creation-date>
+ <last-modification-date>2004-05-04T15:00:00Z</last-modification-date>
+ <sensitivity>public</sensitivity>
+ <inline-attachment></inline-attachment>
+ <link-attachment></link-attachment>
+ <product-id></product-id>
+ <!-- Contact specific fields -->
+ <name>
+ <given-name>(string, default empty)</given-name>
+ <middle-names>(string, default empty)</middle-names>
+ <last-name>(string, default empty)</last-name>
+ <full-name>(string, default empty)</full-name>
+ <initials>(string, default empty)</initials>
+ <prefix>(string, default empty)</prefix>
+ <suffix>(string, default empty)</suffix>
+ </name>
+ <free-busy-url>(string, default empty)</free-busy-url>
+ <organization>(string, default empty)</organization>
+ <web-page>(string, default empty)</web-page>
+ <im-address>(string, default empty)</im-address>
+ <department>(string, default empty)</department>
+ <office-location>(string, default empty)</office-location>
+ <profession>(string, default empty)</profession>
+ <job-title>(string, default empty)</job-title>
+ <manager-name>(string, default empty)</manager-name>
+ <assistant>(string, default empty)</assistant>
+ <nick-name>(string, default empty)</nick-name>
+ <spouse-name>(string, default empty)</spouse-name>
+ <birthday>(date, no default)</birthday>
+ <anniversary>(date, no default)</anniversary>
+ <picture>(string(attachment filename), default empty)</picture>
+ <children>(string, default empty)</children>
+ <gender>(string, default empty)</gender>
+ <language>(string, default empty)</language>
+ <phone>
+ <type>(string, no default)</type>
+ <number>(string, default empty)</number>
+ </phone>
+ <email>
+ <display-name>(string, default empty)</display-name>
+ <smtp-address>(string, default empty)</smtp-address>
+ </email>
+ <address>
+ <type>(string, default home)</type>
+ <street>(string, default empty)</street>
+ <locality>(string, default empty)</locality>
+ <region>(string, default empty)</region>
+ <postal-code>(string, default empty)</postal-code>
+ <country>(string, default empty)</country>
+ </address>
+ <preferred-address>(string, default none)</preferred-address>
+ <latitude>3.23</latitude>
+ <longitude>5.222</longitude>
+</contact>
+
diff --git a/test/synckolab/parser/kolab3/raw/testevent.xml b/test/synckolab/parser/kolab3/raw/testevent.xml
new file mode 100644
index 0000000..57aff69
--- /dev/null
+++ b/test/synckolab/parser/kolab3/raw/testevent.xml
@@ -0,0 +1,81 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- event version="1.0" xmlns="http://www.kolab.org/Kolab">
+ <uid>uid</uid>
+ <body>body</body>
+ <categories>categories</categories>
+ <creation-date>2001-12-31T12:00:00</creation-date>
+ <last-modification-date>2001-12-31T12:00:00</last-modification-date>
+ <sensitivity>public</sensitivity>
+ <product-id>product-id</product-id>
+ <summary>summary</summary>
+ <location>location</location>
+ <creator>
+ <display-name>display-name</display-name>
+ <smtp-address>smtp-address</smtp-address>
+ </creator>
+ <organizer>
+ <display-name>display-name</display-name>
+ <smtp-address>smtp-address</smtp-address>
+ </organizer>
+ <alarm>alarm</alarm>
+ <recurrence>
+ <interval>interval</interval>
+ <rangetype/>
+ </recurrence>
+ <attendees>
+ <display-name>display-name</display-name>
+ <smtp-address>smtp-address</smtp-address>
+ <status>status</status>
+ <request-response>request-response</request-response>
+ <role>role</role>
+ </attendees>
+ <show-time-as>show-time-as</show-time-as>
+ <color-label>color-label</color-label>
+ <start-date>2001-12-31T12:00:00</start-date>
+ <end-date>2001-12-31T12:00:00</end-date>
+</event-->
+<event version="3.0dev1" xmlns="http://kolab.org">
+ <!-- Common fields -->
+ <uid>uid</uid>
+ <product-id></product-id>
+ <creation-date>2004-05-04T15:00:00Z</creation-date>
+ <last-modification-date>2004-05-04T15:00:00Z</last-modification-date>
+ <sensitivity>public</sensitivity>
+ <body></body>
+ <categories></categories>
+ <inline-attachment></inline-attachment>
+ <link-attachment></link-attachment>
+ <!-- Incidence fields -->
+ <summary>(string, default empty)</summary>
+ <location>(string, default empty)</location>
+ <creator>
+ <smtp-address>(string, default empty)</smtp-address>
+ <display-name>(string, default empty)</display-name>
+ </creator>
+ <organizer>
+ <smtp-address>(string, default empty)</smtp-address>
+ <display-name>(string, default empty)</display-name>
+ </organizer>
+ <alarm>(number, no default)</alarm>
+ <dailyrecurrence cycle="daily">
+ <interval>1</interval>
+ <day>(string, no default)</day>
+ <daynumber>0</daynumber>
+ <date>2</date>
+ <month>(string, no default></month>
+ <range type="daily"></range>
+ <exclusion>(date, no default)</exclusion>
+ </dailyrecurrence>
+ <attendee>
+ <smtp-address>(string, default empty)</smtp-address>
+ <display-name>(string, default empty)</display-name>
+ <status>(string, default none)</status>
+ <request-response>(bool, default true)</request-response>
+ <role>(string, default required)</role>
+ </attendee>
+ <!-- Event specific fields -->
+ <show-time-as>(string, default busy)</show-time-as>
+ <color-label>(string, default none)</color-label>
+ <start-date>2004-05-04T15:00:00Z</start-date>
+ <end-date>2004-05-04T15:00:00Z</end-date>
+</event> \ No newline at end of file
diff --git a/test/synckolab/parser/kolab3/raw/testnote.xml b/test/synckolab/parser/kolab3/raw/testnote.xml
new file mode 100644
index 0000000..f7ad5b0
--- /dev/null
+++ b/test/synckolab/parser/kolab3/raw/testnote.xml
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<note version="3.0dev1" xmlns="http://kolab.org">
+ <!-- Common fields -->
+ <uid>uid</uid>
+ <body></body>
+ <categories></categories>
+ <creation-date>2004-05-04T15:00:00Z</creation-date>
+ <last-modification-date>2004-05-04T15:00:00Z</last-modification-date>
+ <sensitivity>public</sensitivity>
+ <inline-attachment></inline-attachment>
+ <link-attachment></link-attachment>
+ <product-id></product-id>
+ <!-- Note specific fields -->
+ <summary>summarytext</summary>
+ <background-color>#000000</background-color>
+ <foreground-color>#ffff00</foreground-color>
+</note>
+
diff --git a/test/synckolab/parser/kolab3/raw/xcalCalendar.xml b/test/synckolab/parser/kolab3/raw/xcalCalendar.xml
new file mode 100644
index 0000000..0ae17ef
--- /dev/null
+++ b/test/synckolab/parser/kolab3/raw/xcalCalendar.xml
@@ -0,0 +1,142 @@
+ <?xml version="1.0" encoding="utf-8" ?>
+ <icalendar xmlns="urn:ietf:params:xml:ns:icalendar-2.0">
+ <vcalendar>
+ <properties>
+ <prodid>
+ <text>-//Example Inc.//Example Client//EN</text>
+ </prodid>
+ <version>
+ <text>2.0</text>
+ </version>
+ </properties>
+ <components>
+ <vtimezone>
+ <properties>
+ <last-modified>
+ <date-time>2004-01-10T03:28:45Z</date-time>
+ </last-modified>
+ <tzid>US/Eastern</tzid>
+ </properties>
+ <components>
+ <daylight>
+ <properties>
+ <dtstart>
+ <date-time>2000-04-04T02:00:00</date-time>
+ </dtstart>
+ <rrule>
+ <recur>
+ <freq>YEARLY</freq>
+ <byday>1SU</byday>
+ <bymonth>4</bymonth>
+ </recur>
+ </rrule>
+ <tzname>
+ <text>EDT</text>
+ </tzname>
+ <tzoffsetfrom>
+ <utc-offset>-05:00</utc-offset>
+ </tzoffsetfrom>
+ <tzoffsetto>
+ <utc-offset>-04:00</utc-offset>
+ </tzoffsetto>
+ </properties>
+ </daylight>
+ <standard>
+ <properties>
+ <dtstart>
+ <date-time>2000-10-26T02:00:00</date-time>
+ </dtstart>
+ <rrule>
+ <recur>
+ <freq>YEARLY</freq>
+ <byday>-1SU</byday>
+ <bymonth>10</bymonth>
+ </recur>
+ </rrule>
+ <tzname>
+ <text>EST</text>
+ </tzname>
+ <tzoffsetfrom>
+ <utc-offset>-04:00</utc-offset>
+ </tzoffsetfrom>
+ <tzoffsetto>
+ <utc-offset>-05:00</utc-offset>
+ </tzoffsetto>
+ </properties>
+ </standard>
+ </components>
+ </vtimezone>
+ <vevent>
+ <properties>
+ <dtstamp>
+ <date-time>2006-02-06T00:11:21Z</date-time>
+ </dtstamp>
+ <dtstart>
+ <parameters>
+ <tzid><text>US/Eastern</text></tzid>
+ </parameters>
+ <date-time>2006-01-02T12:00:00</date-time>
+ </dtstart>
+ <duration>
+ <duration>PT1H</duration>
+ </duration>
+ <rrule>
+ <recur>
+ <freq>DAILY</freq>
+ <count>5</count>
+ </recur>
+ </rrule>
+ <rdate>
+ <parameters>
+ <tzid><text>US/Eastern</text></tzid>
+ </parameters>
+ <period>
+ <start>2006-01-02T15:00:00</start>
+ <duration>PT2H</duration>
+ </period>
+ </rdate>
+ <summary>
+ <text>Event #2</text>
+ </summary>
+ <description>
+ <text>We are having a meeting all this week at 12
+ pm for one hour, with an additional meeting on the first day
+ 2 hours long.&#x0a;Please bring your own lunch for the 12 pm
+ meetings.</text>
+ </description>
+ <uid>
+ <text>00959BC664CA650E933C892C@example.com</text>
+ </uid>
+ </properties>
+ </vevent>
+ <vevent>
+ <properties>
+ <dtstamp>
+ <date-time>2006-02-06T00:11:21Z</date-time>
+ </dtstamp>
+ <dtstart>
+ <parameters>
+ <tzid><text>US/Eastern</text></tzid>
+ </parameters>
+ <date-time>2006-01-04T14:00:00</date-time>
+ </dtstart>
+ <duration>
+ <duration>PT1H</duration>
+ </duration>
+ <recurrence-id>
+ <parameters>
+ <tzid><text>US/Eastern</text></tzid>
+ </parameters>
+ <date-time>2006-01-04T12:00:00</date-time>
+ </recurrence-id>
+ <summary>
+ <text>Event #2 bis</text>
+ </summary>
+ <uid>
+ <text>00959BC664CA650E933C892C@example.com</text>
+ </uid>
+ </properties>
+ </vevent>
+ </components>
+ </vcalendar>
+ </icalendar> \ No newline at end of file
diff --git a/test/synckolab/parser/kolab3/raw/xcalEvent.xml b/test/synckolab/parser/kolab3/raw/xcalEvent.xml
new file mode 100644
index 0000000..16c78c6
--- /dev/null
+++ b/test/synckolab/parser/kolab3/raw/xcalEvent.xml
@@ -0,0 +1,34 @@
+<?xml version="1.0" encoding="utf-8"?>
+<icalendar xmlns="urn:ietf:params:xml:ns:icalendar-2.0">
+ <vcalendar>
+ <properties>
+ <calscale>
+ <text>GREGORIAN</text>
+ </calscale>
+ <prodid>
+ <text>-//Example Inc.//Example Calendar//EN</text>
+ </prodid>
+ <version>
+ <text>2.0</text>
+ </version>
+ </properties>
+ <components>
+ <vevent>
+ <properties>
+ <dtstamp>
+ <date-time>2008-02-05T19:12:24Z</date-time>
+ </dtstamp>
+ <dtstart>
+ <date>2008-10-06</date>
+ </dtstart>
+ <summary>
+ <text>Planning meeting</text>
+ </summary>
+ <uid>
+ <text>4088E990AD89CB3DBB484909</text>
+ </uid>
+ </properties>
+ </vevent>
+ </components>
+ </vcalendar>
+</icalendar> \ No newline at end of file