Commit Graph

198 Commits (b531b6160c5ecc41f7160195da1b449dc87d01e3)

Author SHA1 Message Date
Jean Raby 0a87ff97b6 cosmetic fix, no functional change
added a POST payload to test this code
2013-06-21 09:36:54 -04:00
Francis Lachapelle 37a6f82659 Initial Arabic translation 2013-04-08 11:05:45 -04:00
Jean Raby 63ff9751d7 Add ics_compare and use it in _testRespondTo()
This new class uses vobject.ics_diff() to compare 2 VCALENDAR components.
We should use this instead of textually comparing events for equality
in future tests.
2013-03-11 11:37:59 -04:00
Jean Raby 1e4f737a7d test-sogo-tool.py: Use sudo instead of su - 2013-01-22 15:24:21 -05:00
Francis Lachapelle e6e4616a69 Fix typo in unit test 2013-01-18 09:39:02 -05:00
Francis Lachapelle 775a8421d5 Initial Finnish translation 2013-01-16 10:54:16 -05:00
Francis Lachapelle ce36e80d6b Initial Slovak translation 2012-11-29 14:40:46 -05:00
Jean Raby d82ba7cbb9 Reorder VCALENDAR template elements
It must match [iCalCalendar orderOfElements]
2012-11-13 15:01:30 -05:00
Wolfgang Sourdeau 160aa42b88 set the "check" target as a non-default target 2012-11-07 09:49:46 -05:00
Wolfgang Sourdeau de381aca81 Added support for gnutls (thanks to Jeroen Dekkers). 2012-10-23 10:11:36 -04:00
Wolfgang Sourdeau f4c12f9658 Merge pull request #1 from dekkers/make-check
Implement a "make check" target that will run the unit tests (thanks to Jeroen Dekkers)
2012-10-20 12:39:39 -07:00
Wolfgang Sourdeau 948bafd2bf s/occurence/occurrence/g 2012-10-20 13:27:24 -04:00
Jeroen Dekkers a632c82b59 Implement a "make check" target that will run the unit tests 2012-10-19 18:46:46 +02:00
Jeroen Dekkers 439bb132c1 Add support for GnuTLS 2012-10-19 17:33:48 +02:00
Jean Raby fa0db25b16 Use self.attendee1_client when adding his event
Use self.attendee1_client instead of self.client when calling _putevent
2012-09-21 13:16:50 -04:00
Jean Raby aeef968c4e * Tests/Integration/config.py.in: New config parameter: webCalendarURL
* Tests/Integration/webdavlib.py(HTTPPOST,HTTPGET):
  Allow cookies in post and get requests.
  * Tests/Integration/test-ui-posts.py: New test class
  Currently contains only one test case which exercises addWebCalendar

  * SoObjects/Appointments/GNUmakefile:
  use -Wl,--no-as-needed when linking. Fixes #1863

Monotone-Parent: 080d411d52272c158ce60ea0bab6ba8eb9d9aa2a
Monotone-Revision: 8ce46d6fa7b1d1a9d12069cee3ba796d99d668d2

Monotone-Author: jraby@inverse.ca
Monotone-Date: 2012-07-18T20:22:54
2012-07-18 20:22:54 +00:00
Jean Raby 6f0f95d253 Use xml.etree.ElementTree.iselement() instead of some homegrown stuff
that used a private class from xml.etree.ElementTree.
  Works with cElementTree

Monotone-Parent: ed7f1623b0cb7e935297f6652b76074c1ff952df
Monotone-Revision: 1bcd208d669189aec549aa4351b9d92a29c6d9b9

Monotone-Author: jraby@inverse.ca
Monotone-Date: 2012-07-17T16:56:19
2012-07-17 16:56:19 +00:00
Wolfgang Sourdeau 093c984b42 Monotone-Parent: 22bcd9c626e305661b31c70a49c93352266c2dc8
Monotone-Revision: ed7f1623b0cb7e935297f6652b76074c1ff952df

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2012-07-16T13:35:02
2012-07-16 13:35:02 +00:00
Wolfgang Sourdeau caf58a7c4a Monotone-Parent: c812fb58ff32ddf15bcafe1527b4871905de1415
Monotone-Revision: 9475f39d99549bfa74e7f88be7e54d9650beb0d5

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2012-07-13T20:25:47
2012-07-13 20:25:47 +00:00
Jean Raby 96f1a8b247 * Tests/Integration/propfind.py: Print headers to stderr.
the output can now easily be piped through xmllint

Monotone-Parent: 228f7d730cde5a5046b0885c1ac02649ee2b7c05
Monotone-Revision: 4c9ff5822433c2ff8fcad8c7432a9575f9890b24

Monotone-Author: jraby@inverse.ca
Monotone-Date: 2012-07-05T16:56:27
2012-07-05 16:56:27 +00:00
Jean Raby 38b1cbd014 * SoObjects/Appointments/SOGoAppointmentObject.m
(PUTAction:): detect conflicting event UID and
      deny the request accordingly.

  * Tests/Integration/test-caldav-scheduling.py:
    new test for bug #1853

Monotone-Parent: 32e30de409bdd4e864d0c454e1939c809fb8edcd
Monotone-Revision: a4ef73c2ad79c8da8d8e0c93767ab06e14bc846b

Monotone-Author: jraby@inverse.ca
Monotone-Date: 2012-06-27T16:06:20
2012-06-27 16:06:20 +00:00
Jean Raby cba2a7d458 Tests/Integration/test-caldav-scheduling.py:
Replace the tearDown code by something a bit more elegant:
    each test now adds its ics to the ics_list.
    tearDown loops over the list instead of listing each ics.

  2 new utility functions: _getAllEvents and _deleteAllEvent
  Those should probably be named _getCollectionContent and
  _deleteCollectionContent...

  For tests related to resources, make sure their calendar is empty
  before running them.
  This ensures we won't get conflicts with existing events...

  Various reindent

  New test for bug #1837. Fails on <=1.3.16

Monotone-Parent: 4b891748ee7ea0c409554e75a90fb995173562a2
Monotone-Revision: 802a8f25aa0ed67386953826b82939c3ab98bba2

Monotone-Author: jraby@inverse.ca
Monotone-Date: 2012-06-22T19:06:17
2012-06-22 19:06:17 +00:00
Jean Raby bcddfe4efa The new tests case was for #1839, not #1837
Monotone-Parent: 21464a96c4abb93d2143e8f30b059d2f01bab016
Monotone-Revision: ba98ce90f9ee5f3b4c038bc459d8d48d74cfad72

Monotone-Author: jraby@inverse.ca
Monotone-Date: 2012-06-21T13:54:23
2012-06-21 13:54:23 +00:00
Jean Raby 0845f13327 Remove duplicated test.
Add a new test for bug #1837:
    This tries to have the same behavior as iCal
      1. create an event, add an attendee and add the organizer as an attendee
      2. SOGo should remove the organizer from the attendee list

Monotone-Parent: b532b841f572a64aa9b471da32a51bb939539334
Monotone-Revision: 30b555a484fd45f63e941b88e3afc1f2784480da

Monotone-Author: jraby@inverse.ca
Monotone-Date: 2012-06-20T20:34:28
2012-06-20 20:34:28 +00:00
Jean Raby eea3154fc1 Delete attendee from exception and master event with 2 PUTs
Monotone-Parent: e5f291945f01977de333fd7aabf6d7109c8ec335
Monotone-Revision: d63fe31c81597a22c53b5925bcf6bca60fc0e252

Monotone-Author: jraby@inverse.ca
Monotone-Date: 2012-05-11T20:01:06
2012-05-11 20:01:06 +00:00
Jean Raby 5c83c13e04 Fetch non existent event to let sogo create the database tables.
Tests would fail on an empty/new db

Monotone-Parent: 1ed6d11b3a404920b5f62a1b03c4a035d5bd53b3
Monotone-Revision: e5f291945f01977de333fd7aabf6d7109c8ec335

Monotone-Author: jraby@inverse.ca
Monotone-Date: 2012-05-11T17:45:44
2012-05-11 17:45:44 +00:00
Jean Raby 6ad52fe047 * SoObjects/Appointments/SOGoAppointmentObject.m (PUTAction):
Delete bitrotten code that could end up duplicating attendees.
  Behavior exposed by the new caldav tests

  * Tests/Integration/config.py.in
  * Tests/Integration/test-caldav-scheduling.py
  * Tests/Integration/test-ical.py
  * Tests/Integration/test-davacl.py:
  Use an unprivileged webdavclient where possible.
  This would have uncovered the resources calendar autocreation bug.

  * Tests/Integration/test-caldav-scheduling.py:
  New tests to excercise somewhat fragile code in dav autoscheduling.

Monotone-Parent: 82335b9404ce69f30e311f831868f8d13e598a46
Monotone-Revision: 1ed6d11b3a404920b5f62a1b03c4a035d5bd53b3

Monotone-Author: jraby@inverse.ca
Monotone-Date: 2012-05-11T16:20:45
2012-05-11 16:20:45 +00:00
Wolfgang Sourdeau f9d34ea6ec Monotone-Parent: 5626a85621c5f1c132d788ea29e164c8fc44cfdf
Monotone-Revision: cd39fe0df424d1e5afd5dcfa4b1c94ad707fed24

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2012-04-23T21:19:08
2012-04-23 21:19:08 +00:00
Wolfgang Sourdeau b8930b7bd0 Monotone-Parent: f44990050ab038029a3fa83c4918912da401bd4b
Monotone-Revision: 5626a85621c5f1c132d788ea29e164c8fc44cfdf

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2012-04-23T21:17:54
2012-04-23 21:17:54 +00:00
Wolfgang Sourdeau 067513959a Monotone-Parent: fbdbaedef2d0b93dc7ac828e0acfde7baccc8f6b
Monotone-Revision: f44990050ab038029a3fa83c4918912da401bd4b

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2012-04-23T19:16:43
2012-04-23 19:16:43 +00:00
Wolfgang Sourdeau 65acbc5ecf Monotone-Parent: 389b194bd166895ce122d73e90c04eb48d06a6a1
Monotone-Revision: fbdbaedef2d0b93dc7ac828e0acfde7baccc8f6b

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2012-04-23T18:39:26
2012-04-23 18:39:26 +00:00
Jean Raby 1d6583f2c5 New caldav tests:
remove attendee after invitation
  remove attendee and organizer after invitation.

Monotone-Parent: d0d8f431bd9bb7676b29e0f9073ed40cfc1cf9e5
Monotone-Revision: e290d09c6fe813e82f2e06c1cfcaab7ba2a5b3ac

Monotone-Author: jraby@inverse.ca
Monotone-Date: 2012-04-20T21:33:35
2012-04-20 21:33:35 +00:00
Wolfgang Sourdeau 6aa627a800 Monotone-Parent: 2fb9aaf01f9b4a29e3d49d6c35deaf48a4e57e9c
Monotone-Revision: 825d6255230167e6f80d8015a569afa6bdb4cb7d

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2012-04-16T15:24:16
2012-04-16 15:24:16 +00:00
Wolfgang Sourdeau 10bfd70be1 Monotone-Parent: 406832bc51a0849377951d10353a33568b33877b
Monotone-Revision: 2fb9aaf01f9b4a29e3d49d6c35deaf48a4e57e9c

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2012-04-16T15:23:24
2012-04-16 15:23:24 +00:00
Wolfgang Sourdeau 38e085ae8f Monotone-Parent: ae2a845cc86e684e944e2ffbb629f7bd634d985f
Monotone-Revision: 0d1809a8a5fbb980e78d197e8f5c0c634b960a2e

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2012-03-16T20:41:52
Monotone-Branch: ca.inverse.sogo
2012-03-16 20:41:52 +00:00
Jean Raby 4a1b4193ad Compare the sync token with the end time of the query, not the start time.
This should stop the test from failing when everything is really ok..

Monotone-Parent: 44e6a1e9a80f2c2e2c230c1d9be4552941343bea
Monotone-Revision: 83140ea045c02e9961515cc478033e97df559cfb

Monotone-Author: jraby@inverse.ca
Monotone-Date: 2012-03-15T14:59:08
2012-03-15 14:59:08 +00:00
Francis Lachapelle 6ce0c29b2a Monotone-Parent: 0c045ab1e972ecf31a2d5051abbc0ef141461d10
Monotone-Revision: 3be1457342206d81824250d57633322dda8fb4d9

Monotone-Author: flachapelle@inverse.ca
Monotone-Date: 2012-02-10T21:03:29
Monotone-Branch: ca.inverse.sogo
2012-02-10 21:03:29 +00:00
Jean Raby e05630909e use isinstance instead of try/except to check if preference is a dict or a string.
Monotone-Parent: 64241052c164949118642194441e9a30cbdc3d58
Monotone-Revision: 9c35c13adaec0c9fe67e19acb1c73a22271aa714

Monotone-Author: jraby@inverse.ca
Monotone-Date: 2012-02-21T21:07:35
Monotone-Branch: ca.inverse.sogo
2012-02-21 21:07:35 +00:00
Wolfgang Sourdeau 966149f804 Monotone-Parent: 859bf2013653e0366336126b6d00368fe0dbc147
Monotone-Revision: ed35a0aec1eed0f78e69e747bdd6871d62118111

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2012-02-21T19:52:40
Monotone-Branch: ca.inverse.sogo
2012-02-21 19:52:40 +00:00
Wolfgang Sourdeau 1655d27dbe Monotone-Parent: ebe6d4bf201db3d567631a28731d5d2345f7ab9e
Monotone-Revision: 859bf2013653e0366336126b6d00368fe0dbc147

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2012-02-21T16:19:46
Monotone-Branch: ca.inverse.sogo
2012-02-21 16:19:46 +00:00
Wolfgang Sourdeau cb6a4530e1 merge of '15825926d3d6130838a6e8a925fb390321c6e5fa'
and '7f4c04f0c1883efb437cd0189f442b20c0063c82'

Monotone-Parent: 15825926d3d6130838a6e8a925fb390321c6e5fa
Monotone-Parent: 7f4c04f0c1883efb437cd0189f442b20c0063c82
Monotone-Revision: 5066f4418986dc6df8b207002b41f82bc9e2bb8b

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2012-02-20T19:48:50
Monotone-Branch: ca.inverse.sogo
2012-02-20 19:48:50 +00:00
Wolfgang Sourdeau 18eab08165 Monotone-Parent: 1446e7383727bc0d371dfafcec06697f030f7117
Monotone-Revision: 7f4c04f0c1883efb437cd0189f442b20c0063c82

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2012-02-20T19:47:58
Monotone-Branch: ca.inverse.sogo
2012-02-20 19:47:58 +00:00
Jean Raby 3a4a518c9e Cosmetic fixes in preferences.py
add a new test to set/get text preferences with chars that must be escaped.

Monotone-Parent: 361f4d1d571053d2b3dd474a5d6755ef20cc2851
Monotone-Revision: 72203acde8ebf2eb487bf2f4d7ee94f9c8fcd81a

Monotone-Author: jraby@inverse.ca
Monotone-Date: 2012-02-16T22:03:36
Monotone-Branch: ca.inverse.sogo
2012-02-16 22:03:36 +00:00
Jean Raby 6ef5d5bccc remove 'except as' since it is not supported on python 2.5 (debian-lenny)
Monotone-Parent: 04bea15431a5d37d2c52ccda4a30d78b57741793
Monotone-Revision: e27ba437a27fa40967d6195b9f420b3c36988d81

Monotone-Author: jraby@inverse.ca
Monotone-Date: 2012-02-17T22:06:58
Monotone-Branch: ca.inverse.sogo
2012-02-17 22:06:58 +00:00
Jean Raby 8f1307e13d update the languages and the preference map to match the new properties names
Don't use the default daysBetweenResponse for the vacation ignore list test

Monotone-Parent: 9631e91f39d72591553f51f05b43536b1438e553
Monotone-Revision: 8c3a2531198e8b97572bbc89525885693d00a39b

Monotone-Author: jraby@inverse.ca
Monotone-Date: 2012-02-15T20:27:00
Monotone-Branch: ca.inverse.sogo
2012-02-15 20:27:00 +00:00
Jean Raby f9cb0e74db Do not use the default number of days for the vacation replies...
gives us a chance to catch a future breakage

Monotone-Parent: fb63130e235a425b2051b359e3504ed4d8916859
Monotone-Revision: 7014c5053f06e41d5d808632f6c28b472a6037d8

Monotone-Author: jraby@inverse.ca
Monotone-Date: 2012-02-15T19:33:37
Monotone-Branch: ca.inverse.sogo
2012-02-15 19:33:37 +00:00
Jean Raby eb64356858 Verbose error if the assertion fails
Monotone-Parent: e18b5ae2235fde5d7f7f569ead8452a2217d9b5c
Monotone-Revision: 057f323db2fa6be4670dc58350ff09cbbc11113b

Monotone-Author: jraby@inverse.ca
Monotone-Date: 2012-02-15T18:14:19
Monotone-Branch: ca.inverse.sogo
2012-02-15 18:14:19 +00:00
Wolfgang Sourdeau c255ce92fd Monotone-Parent: b84d2ade488d31149ffc7e1bd8b78b98c3331703
Monotone-Revision: 6e9bec6a824b22501c8cbc518a56410d6d896cb0

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2012-02-13T15:09:06
Monotone-Branch: ca.inverse.sogo
2012-02-13 15:09:06 +00:00
Jean Raby eceffe862e Drop pytz, use dateutil.tz.
Bring in small fixes from trunk

Monotone-Parent: 18bd3484373fa731cf9a3ac7ca3ce35afbf03cdd
Monotone-Revision: 1efb09bf023898a5a0088c9ba29ca00f1a304611

Monotone-Author: jraby@inverse.ca
Monotone-Date: 2012-02-02T18:05:36
2012-02-02 18:05:36 +00:00
Francis Lachapelle fc338931fc Renamed "DanishDenmark" to "Danish".
Monotone-Parent: ab0d6aa948262973d1cb1c1b5c2028965a306451
Monotone-Revision: 724e56b2f3e856f74157f0d3158e24aa3a22c5e9

Monotone-Author: flachapelle@inverse.ca
Monotone-Date: 2011-12-19T17:16:23
2011-12-19 17:16:23 +00:00