Commit Graph

217 Commits (1dcf631ad6e78174a43b076c804b6026b45e532a)

Author SHA1 Message Date
Luc Charland 606ee9780e dont test prevent invitations 2014-09-04 22:36:02 -04:00
Luc Charland c6f82dac01 catch specific exception 2014-09-04 22:24:32 -04:00
Luc Charland e37a603632 should help some builds that might timeout 2014-09-04 21:59:36 -04:00
Luc Charland 031e4c9409 more of the same 2014-09-03 22:43:49 -04:00
Luc Charland c621bbcd56 Those need the same adjustments 2014-09-03 22:32:46 -04:00
Luc Charland 4b94a183be urllib.quote needs a string 2014-09-03 13:50:13 -04:00
Luc Charland ced0962894 Added white_listed_attendee to the config file 2014-08-28 10:43:32 -04:00
Luc Charland d749d5c2fb Added tests for prevent invitation and whitelist 2014-08-27 13:31:49 -04:00
Ludovic Marcotte b05fcc7d82 Fat commit to refactor the quick record generation 2014-07-30 14:51:00 -04:00
Ludovic Marcotte 4eefa4c269 Fixed test since we now return a 200 instead of a 204 2014-07-25 08:12:12 -04:00
Ludovic Marcotte 22f5ed62fe Fixed tests regarding default permissions on CalDAV collections 2014-06-25 10:14:28 -04:00
Jeroen Dekkers efc33d8174 Fix unit test by also checking for the different gnustep 1.24 ordering of elements 2014-05-29 15:53:13 +02:00
Jeroen Dekkers 93971dc434 Add $(TEST_TOOL) as dependency of make check 2014-05-29 15:35:46 +02:00
Ludovic Marcotte bc2b41f383 Fixed unit test. 2014-05-08 09:13:37 -04:00
Ludovic Marcotte 5739356f88 Fix tests to handle list-component 2014-04-09 19:27:38 -04:00
Ludovic Marcotte 744610dbe1 Fixed tests regarding new WebDAV sync responses 2013-09-25 08:46:34 -04:00
Jean Raby b654ffb806 add webdavsync-tool.py
first draft of a small tool to simulate a TB calendar sync
2013-08-02 16:56:36 -04:00
Jean Raby 6de689bbe2 Add depth support to CalendarMultiget 2013-08-02 15:41:24 -04:00
Jean Raby 3877f3001f replace xml.dom.ext by xml.dom.minidom 2013-08-01 12:48:42 -04:00
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