Commit graph

188 commits

Author SHA1 Message Date
Markus Unterwaditzer
c7e6acc0ba Rewrite get_password
Only fetching by hostname, no bruteforce algorithm for system keyring
2014-08-22 20:06:37 +02:00
Markus Unterwaditzer
f5a701a920 Create global context 2014-08-22 13:06:22 +02:00
Markus Unterwaditzer
c86ad88c96 Revert "Tls fingerprints" 2014-08-20 18:38:59 +02:00
Markus Unterwaditzer
73b8381ab8 Merge pull request #102 from t-8ch/tls_fingerprints
Tls fingerprints

Fix #100
2014-08-18 23:51:23 +02:00
Thomas Weißschuh
d5e8be4979 [tests] directly monkeypatch requests Session
need for later changes
2014-08-18 19:11:07 +00:00
Markus Unterwaditzer
bb4939bfdb Validate general section.
Fix #100
2014-08-18 18:33:58 +02:00
Markus Unterwaditzer
8ea3b82c50 Add assertion for CLI output 2014-08-18 01:03:34 +02:00
Markus Unterwaditzer
1fff7efff5 Use name from config for representing storages 2014-08-18 00:53:05 +02:00
Markus Unterwaditzer
2fd4aaead3 Add tests for prepare_auth 2014-08-15 18:29:11 +02:00
Markus Unterwaditzer
2e2082fb55 Make _create_bogus_item a fixture.
Also rename the "storage" fixture to "get_storage".
2014-08-06 22:03:30 +02:00
Markus Unterwaditzer
eb1431e5db Fix all known URL-quoting problems
- Fix #49 -- The old fix caused problems with other servers. The new
  behavior only decodes ``@`` characters.

- ``@`` is now not used when generating a new href, as some servers seem
  to have problems with it (http://sabre.io/dav/character-encoding/).
  This behavior is configurable via the ``unsafe_href_chars`` parameters
  for DAV storages, and is disabled in the testsuite for Radicale and
  ownCloud.

- Decoding of hrefs is also done twice for CarddavStorage.list because
  of owncloud/contacts#581. Vdirsyncer has behaved like that before, but
  not intentionally.

- Storages now don't share their ``_get_href`` methods anymore.
2014-08-06 16:43:23 +02:00
Markus Unterwaditzer
574869f619 ownCloud 7 now does If-Match headers right 2014-07-23 14:21:10 +02:00
Markus Unterwaditzer
838e816a65 Don't influence user's homedir 2014-07-23 12:21:03 +02:00
Markus Unterwaditzer
0f44645e78 Formatting and string type fixes 2014-07-14 15:32:59 +02:00
Markus Unterwaditzer
e2fa26a711 Add another test related to vcards vs icalendar 2014-07-14 15:15:50 +02:00
Markus Unterwaditzer
dea468fcaa Xfail vcard group test 2014-07-13 19:28:14 +02:00
Markus Unterwaditzer
c8f97b43ec Add testcase for #89 2014-07-13 19:11:06 +02:00
Markus Unterwaditzer
a79d1ddb52 Indent multiline string. 2014-07-13 18:35:08 +02:00
Markus Unterwaditzer
c750561fb8 Use more fixtures 2014-07-06 23:22:02 +02:00
Markus Unterwaditzer
97a428f3c8 Add new testcase 2014-07-06 20:43:59 +02:00
Markus Unterwaditzer
7bbc8b87da Some smaller changes to testsuite 2014-07-06 20:28:48 +02:00
Markus Unterwaditzer
0dfcefbfd3 Use PROPFIND for carddav queries because of Zimbra
Fix #83
Fix #84
2014-07-05 14:09:30 +02:00
Markus Unterwaditzer
3abebde87f Fix logging in test suite 2014-07-05 01:07:23 +02:00
Markus Unterwaditzer
6a63dcec81 Fix bug for --verbosity setting 2014-06-25 15:29:13 +02:00
Markus Unterwaditzer
8f5f7eea76 Style fixes 2014-06-22 00:48:57 +02:00
Markus Unterwaditzer
96aae16c32 Fix typo induced bug in split_collection 2014-06-22 00:21:29 +02:00
Markus Unterwaditzer
2fb58d6bcd Fix bug in keyring fetching code
Leading to infinite loop when the password is simply not there.

Also fixed some import styling again
2014-06-19 18:14:51 +02:00
Markus Unterwaditzer
289ac2cfac More tests 2014-06-19 18:14:51 +02:00
Markus Unterwaditzer
a6e2f23bbc Catch exceptions with decorator
This allows us to validate the exact output in the tests
2014-06-19 18:14:51 +02:00
Markus Unterwaditzer
65a845c7ca Add one more test 2014-06-19 18:14:51 +02:00
Markus Unterwaditzer
e9722ee63d Add test for simple usage 2014-06-19 18:14:51 +02:00
Markus Unterwaditzer
d98c4b37ba Cheap shots for test coverage 2014-06-19 18:13:45 +02:00
Markus Unterwaditzer
201c840e88 Import beautification 2014-06-19 00:07:54 +02:00
Markus Unterwaditzer
77a8cf8ff7 Fix logic 2014-06-15 12:07:22 +02:00
Markus Unterwaditzer
fadff19752 Make CaldavStorage.list faster 2014-06-15 11:15:13 +02:00
Markus Unterwaditzer
11adeaff86 split_collection: Allow multiple wrappers
Fix #78
2014-06-14 13:23:22 +02:00
Markus Unterwaditzer
5788544839 Merge pull request #77 from untitaker/readonly
Add read_only parameter
2014-06-12 15:46:57 +02:00
Markus Unterwaditzer
fc9ca4177f Add a test for HttpStorage.read_only 2014-06-12 15:14:36 +02:00
Markus Unterwaditzer
c574e746dd Split string only once 2014-06-12 14:40:25 +02:00
Markus Unterwaditzer
5028d09f61 Add read_only parameter
Just skip any updates when the storage is read-only, write to status
anyway. The change will get reverted in the next sync.

Fix #54
2014-06-12 14:24:00 +02:00
Markus Unterwaditzer
67d14cd59a Style fix 2014-06-12 13:24:01 +02:00
Markus Unterwaditzer
e25e4dc0cb Fix bug 2014-06-12 12:51:20 +02:00
Markus Unterwaditzer
cec742b9e3 Correctly handle multiline UIDs
See #74
2014-06-11 23:10:15 +02:00
Markus Unterwaditzer
179d9bc393 Move 3k compat stuff to own module 2014-06-11 19:37:39 +02:00
Markus Unterwaditzer
62340814fa Fix bug in repr of davstorage 2014-06-08 00:28:39 +02:00
Markus Unterwaditzer
9087b62647 Preserve order of parameters and properties
Since version 3.7, icalendar supports the preserving of the order of
the ICS file's parameters and properties. We can use this to avoid
unnecessary changes for .ics files managed with singlefilestorage.
2014-06-03 17:38:12 +02:00
Markus Unterwaditzer
96d55c523c Fix semicolon bug
Fix #70

Also remove multiple parameters from vcard template. Android JB for
example converts this:

    Email: lol@lol (work)
    Email: lol@lol (home)

to this:

    EMAIL;TYPE=WORK:lol@lol

which is exactly what icalendar (our parser) does too. ownCloud on the
other hand converts this:

    EMAIL;TYPE=HOME,WORK:lol@lol

to this:

    EMAIL;TYPE=HOME;TYPE=WORK:lol@lol

So at this point it does not really matter anymore whether our behavior
is RFC-conform or not.
2014-05-30 17:11:47 +02:00
Markus Unterwaditzer
f59c8d1fdf Add testcase for #70 2014-05-30 16:53:22 +02:00
Markus Unterwaditzer
fd3f6e4532 Some improvements to join_collection
Which induces a behavior change in singlefilestorage, as now
join_collection wouldn't write a wrapper if no items are given
2014-05-29 18:11:29 +02:00
Markus Unterwaditzer
55ad24db3d Add storage_name parameter on storages 2014-05-27 18:37:37 +02:00