Commit Graph

25 Commits (e77d228b58ea50d4c82c9ebfb6565267f2686b65)

Author SHA1 Message Date
Ludovic Marcotte 6323cbe2c6 (fix) avoid changing summary during unit test 2019-09-13 09:16:10 -04:00
Ludovic Marcotte 5f9444f273 (fix) one more fix for test 2019-09-13 08:49:22 -04:00
Ludovic Marcotte 3f13ab9f19 (fix) update unit date with the summary being a major property 2019-09-13 08:32:35 -04:00
Francis Lachapelle 5d1a6508d0 (tests) Fix variable declaration 2018-03-09 00:43:35 -05:00
Ludovic Marcotte 1a76ade0ec (test) disabled the dance test for now, it's no longer relevant 2017-07-19 11:17:14 -04:00
Ludovic Marcotte d2b20c88c3 (fix) updated tests for 403 -> 409 2016-08-05 08:44:10 -04: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 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 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 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
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
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
Jean Raby d1af8b7801 Imported managesieve.py: implements the client side of the managesieve protocol
Added sieve tests (vacation, forwarding and simple sieve scripts)
Added some caldav scheduling tests cases and resources planning tests.
Added new variables to config.py.in for sieve resources planning tests.

Monotone-Parent: d3ab72b923ee1d1bbd604ea5e7e14b54346aa0b3
Monotone-Revision: 53dfb1b04415248644ed626184df1362cd4ee2f1

Monotone-Author: jraby@inverse.ca
Monotone-Date: 2011-05-03T12:37:34
Monotone-Branch: ca.inverse.sogo
2011-05-03 12:37:34 +00:00
Ludovic Marcotte 0d409a18e6 Updated the guides and a test case.
Monotone-Parent: 42e59dbc23477959abe04e59a1ccd7784fc744d2
Monotone-Revision: 492a3784d02d332311ae9c0dbe7e41f5f645bd89

Monotone-Author: ludovic@Sophos.ca
Monotone-Date: 2010-08-12T18:04:27
Monotone-Branch: ca.inverse.sogo
2010-08-12 18:04:27 +00:00
Wolfgang Sourdeau 10059831ab Monotone-Parent: 16e84a4b9506eba9d39a96290c969eda838704a2
Monotone-Revision: e9d4010d6c952c0aa503fa4571a589fb91c356b5

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2010-07-13T16:02:56
Monotone-Branch: ca.inverse.sogo
2010-07-13 16:02:56 +00:00
Wolfgang Sourdeau d544e677e5 Monotone-Parent: bb3480fceb6cb5272d17ac7b9d0999cd0706581b
Monotone-Revision: a5bfd93a503f6042740a0ab88ca339c566d81c1f

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2010-06-01T18:14:17
Monotone-Branch: ca.inverse.sogo
2010-06-01 18:14:17 +00:00
Wolfgang Sourdeau 320e9256d1 Monotone-Parent: 044582e9ad4ddb9d86e36c14f35c91195c979b7c
Monotone-Revision: 8f6b1948a4de37d255b2c1ab1d3f1baa780f455d

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2010-05-06T19:30:14
Monotone-Branch: ca.inverse.sogo
2010-05-06 19:30:14 +00:00
Wolfgang Sourdeau c8cb1b9e39 Monotone-Parent: 44fc3e25d97f062f2add05e5d39a9ffb983d11ca
Monotone-Revision: 89b96d9d2226f3bc49b522e79b43098dfa922b34

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2010-04-09T18:31:17
Monotone-Branch: ca.inverse.sogo
2010-04-09 18:31:17 +00:00
Ludovic Marcotte 00e3963a96 See ChangeLog
Monotone-Parent: f1c001048ccc36181a09a459327f563dbc26e12f
Monotone-Revision: aab1e060a1d26a9624f7f84c30d1414ca1969560

Monotone-Author: ludovic@Sophos.ca
Monotone-Date: 2010-01-24T20:40:12
Monotone-Branch: ca.inverse.sogo
2010-01-24 20:40:12 +00:00