summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorniko <niko>2012-10-28 12:56:03 (GMT)
committerniko <niko>2012-10-28 12:56:03 (GMT)
commitcd63dc9b7e9a9adb384781d3707b75cdfdf311e3 (patch)
treeec53824ad43ce8d3bd857dfe27432bd79fc08994 /test
parentf793711f7edba878e077ddc1ec5d00a10df4f31a (diff)
downloadsynckolab-cd63dc9b7e9a9adb384781d3707b75cdfdf311e3.tar.gz
fix autosync again
Diffstat (limited to 'test')
-rw-r--r--test/synckolab/parser/kolab2/calendarTest.js3
-rw-r--r--test/synckolab/parser/kolab2/json/event-recurr.json28
-rw-r--r--test/synckolab/parser/kolab2/raw/event-recurr.eml48
-rw-r--r--test/synckolab/parser/kolab2/xml/event-recurr.xml19
4 files changed, 97 insertions, 1 deletions
diff --git a/test/synckolab/parser/kolab2/calendarTest.js b/test/synckolab/parser/kolab2/calendarTest.js
index c4fcffc..3208bbc 100644
--- a/test/synckolab/parser/kolab2/calendarTest.js
+++ b/test/synckolab/parser/kolab2/calendarTest.js
@@ -12,10 +12,11 @@ load("test/lib/testOverride.js");
test("kolab3 synckolab.addressbookTools.parseMessageContent", function(){
equal(null, synckolab.calendarTools.message2json(null), "parsing a null message");
- var testFiles = [{name:"task-alarm",task:true},{name:"task-due",task:true},{name:"task-progress",task:true},{name:"task-recurr",task:true}
+ var testFiles = [{name:"event-recurr",task:false},{name:"task-alarm",task:true},{name:"task-due",task:true},{name:"task-progress",task:true},{name:"task-recurr",task:true}
];
var content, entry, jsonEntry;
+ synckolab.config.DEBUG_SYNCKOLAB_LEVEL = synckolab.global.LOG_ALL + synckolab.global.LOG_DEBUG;
for(var i = 0; i < testFiles.length; i++) {
var src = testFiles[i];
diff --git a/test/synckolab/parser/kolab2/json/event-recurr.json b/test/synckolab/parser/kolab2/json/event-recurr.json
new file mode 100644
index 0000000..ce09a2a
--- /dev/null
+++ b/test/synckolab/parser/kolab2/json/event-recurr.json
@@ -0,0 +1,28 @@
+{
+ "synckolab": "2.9.0",
+ "type": "calendar",
+ "startDate": {
+ "dateTime": "2012-03-12T10:00:00Z",
+ "tz": null
+ },
+ "endDate": {
+ "dateTime": "2012-03-12T11:00:00Z",
+ "tz": null
+ },
+ "uid": "ec80aeec-1030-4ba4-bac5-8352b2845e55",
+ "title": "Jour Fixe Administration",
+ "body": "Event is CONFIDENTIAL!",
+ "sensitivity": "confidential",
+ "location": "Büro Boris, 3.OG",
+ "showTimeAs": "busy",
+ "recurrence": {
+ "cycle": "weekly",
+ "days": [
+ "sunday"
+ ],
+ "interval": 2,
+ "count": 0,
+ "untilDate": "2013-02-26",
+ "exclusion": []
+ }
+} \ No newline at end of file
diff --git a/test/synckolab/parser/kolab2/raw/event-recurr.eml b/test/synckolab/parser/kolab2/raw/event-recurr.eml
new file mode 100644
index 0000000..6d95e04
--- /dev/null
+++ b/test/synckolab/parser/kolab2/raw/event-recurr.eml
@@ -0,0 +1,48 @@
+From: email@no.tld
+Reply-To:
+Bcc:
+To: synckolab@no.tld
+Subject: ec80aeec-1030-4ba4-bac5-8352b2845e55
+Date: Sun, 28 Oct 2012 11:45:53 +0100
+Content-Type: Multipart/Mixed;boundary="Boundary-00=6301B888B4E27B4C"
+User-Agent: SyncKolab 2.9.0
+X-Kolab-Type: application/x-vnd.kolab.event
+
+--Boundary-00=6301B888B4E27B4C
+Content-Type: Text/Plain;
+ charset="us-ascii"
+Content-Transfer-Encoding: 7bit
+
+This is a Kolab Groupware object.
+To view this object you will need an email client that can understand the Kolab Groupware format.
+For a list of such email clients please visit
+http://kolab.org/content/kolab-clients
+---
+Summary: Jour Fixe Administration
+Event is CONFIDENTIAL!
+B�ro Boris, 3.OG
+---
+
+Notice:
+The information above is only valid, if no other client than synckolab updated this message. (ie. a client that updates the attachment but not the message)
+
+--Boundary-00=6301B888B4E27B4C
+Content-Type: application/x-vnd.kolab.event;
+ name="kolab.xml"
+Content-Transfer-Encoding: base64
+Content-Disposition: attachment;
+ filename="kolab.xml"
+
+PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPGV2ZW50IHZlcnNpb249
+IjEuMCIgPgogPHByb2R1Y3QtaWQ+U3luY2tvbGFiIDIuOS4wLCBDYWxlbmRhciBTeW5jPC9w
+cm9kdWN0LWlkPgogIDx1aWQ+ZWM4MGFlZWMtMTAzMC00YmE0LWJhYzUtODM1MmIyODQ1ZTU1
+PC91aWQ+CiAgPHN0YXJ0LWRhdGU+MjAxMi0wMy0xMlQxMDowMDowMFo8L3N0YXJ0LWRhdGU+
+CiAgPGVuZC1kYXRlPjIwMTItMDMtMTJUMTE6MDA6MDBaPC9lbmQtZGF0ZT4KICA8c3VtbWFy
+eT5Kb3VyIEZpeGUgQWRtaW5pc3RyYXRpb248L3N1bW1hcnk+CiAgPGJvZHk+RXZlbnQgaXMg
+Q09ORklERU5USUFMITwvYm9keT4KICA8c2Vuc2l0aXZpdHk+Y29uZmlkZW50aWFsPC9zZW5z
+aXRpdml0eT4KICA8bG9jYXRpb24+QsO8cm8gQm9yaXMsIDMuT0c8L2xvY2F0aW9uPgogIDxz
+aG93LXRpbWUtYXM+YnVzeTwvc2hvdy10aW1lLWFzPgogPHJlY3VycmVuY2UgY3ljbGU9Indl
+ZWtseSI+CiAgPGRheT5zdW5kYXk8L2RheT4KICA8aW50ZXJ2YWw+MjwvaW50ZXJ2YWw+CiAg
+PHJhbmdlIHR5cGU9ImRhdGUiPjIwMTMtMDItMjY8L3JhbmdlPgogPC9yZWN1cnJlbmNlPgog
+PHJldmlzaW9uPjA8L3JldmlzaW9uPgo8L2V2ZW50Pgo=
+--Boundary-00=6301B888B4E27B4C--
diff --git a/test/synckolab/parser/kolab2/xml/event-recurr.xml b/test/synckolab/parser/kolab2/xml/event-recurr.xml
new file mode 100644
index 0000000..c4a8b41
--- /dev/null
+++ b/test/synckolab/parser/kolab2/xml/event-recurr.xml
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<event version="1.0" >
+ <product-id>Synckolab 2.9.0, Calendar Sync</product-id>
+ <uid>ec80aeec-1030-4ba4-bac5-8352b2845e55</uid>
+ <revision>0</revision>
+ <start-date>2012-03-12T10:00:00Z</start-date>
+ <end-date>2012-03-12T11:00:00Z</end-date>
+ <summary>Jour Fixe Administration</summary>
+ <body>Event is CONFIDENTIAL!</body>
+ <sensitivity>confidential</sensitivity>
+ <location>Büro Boris, 3.OG</location>
+ <show-time-as>busy</show-time-as>
+ <recurrence cycle="weekly">
+ <day>sunday</day>
+ <interval>2</interval>
+ <range type="date">2013-02-26</range>
+ </recurrence>
+ <revision>0</revision>
+</event>