Commit Graph

206 Commits

Author SHA1 Message Date
Unrud 5aa2f59b38 Always test bcrypt 2022-07-03 12:56:24 +02:00
Unrud ed8a2284a4 Test calendar with case-sensitive-UIDs 2022-03-30 22:27:05 +02:00
Unrud 0baf1dc908 Refactor DisableRedirectHandler 2022-03-22 17:58:10 +01:00
Unrud 580b97fa0f Remove special cases for python < 3.6 2022-02-01 17:56:02 +01:00
Unrud 0221fc357b Use sys.platform instead of os.name
mypy only recognizes sys.platform
2022-02-01 17:56:02 +01:00
Unrud 2cbbd4dc9c Warning instead of error when base prefix ends with '/'
Workaround for #1210
2022-01-26 22:06:09 +01:00
Unrud e4cc73098a Redirect …/.well-known/{caldav,carddav} to /
Closes #1200
2022-01-22 18:23:03 +01:00
Unrud 17a5e5b6e0 Verify that base_prefix starts with '/' 2022-01-22 00:34:38 +01:00
Unrud 3763ed46c4 Error if SCRIPT_NAME ends with '/' 2022-01-21 19:56:57 +01:00
Unrud 7fde7d5005 Test X-Script-Name 2022-01-21 19:56:56 +01:00
Unrud 685a91bfe6 web.none: Redirect instead of 404 2022-01-18 18:20:16 +01:00
Unrud 22fc38850c web.internal: Use absolute path for redirect 2022-01-18 18:20:15 +01:00
Unrud 4ed77cabc6 Only redirect to sanitized path under /web 2022-01-18 18:20:15 +01:00
Unrud e0adecf30c Tests: Check Location header and body for redirects 2022-01-16 13:09:13 +01:00
Unrud 402bd3580e Tests: Simplify HTTP status check 2022-01-16 13:07:56 +01:00
Unrud 75df1093be Workaround for broken contact PHOTO from InfCloud
See issue #1205
2022-01-15 23:44:00 +01:00
Unrud 4a0bcde7a3 Set Content-Length for HEAD requests 2022-01-15 22:33:55 +01:00
Unrud b93842b10c Redirect GET and HEAD requests to sanitized path 2022-01-15 22:33:55 +01:00
Unrud 2cd0a3189e Run TestBaseRequests only once 2021-12-20 23:57:55 +01:00
Unrud a20791e0c3 Convert EXDATE and RDATE to same type as DTSTART
Fixes #1146
Closes #1199
2021-12-20 00:55:39 +01:00
Unrud 91c06041f8 Split storage from base tests 2021-12-11 12:59:44 +01:00
Unrud 4b5165dc42 Extract method configure 2021-12-10 20:54:04 +01:00
Unrud 208ae11683 Rename BaseFileSystemTest to BaseStorageTest 2021-12-10 16:03:06 +01:00
Unrud e38ae96227 Cosmetics 2021-12-09 19:15:23 +01:00
Unrud bbaf0ebd8c Change name in file header 2021-12-09 16:55:46 +01:00
Unrud f14e1de071 Add multifilesystem_nolock storage 2021-12-09 16:55:46 +01:00
Unrud 98b49ac2b6 Optional argument for boolean command-line options 2021-11-14 23:30:59 +01:00
Unrud 08e789d993 Support backend specific options and HTTP headers via command-line 2021-11-14 23:30:59 +01:00
Unrud 60f25bf19a Type hints for tests 2021-09-26 22:24:45 +02:00
Unrud cecb17df03 More type hints 2021-09-26 22:24:45 +02:00
Unrud 73e42f8101 Enable static type checking 2021-09-26 22:24:45 +02:00
Unrud 34bec01c9b Fail when test file can't be read 2021-05-14 00:07:09 +02:00
Unrud 0e8949ff71 Internal server: Shutdown server via socket 2020-10-04 14:40:52 +02:00
Unrud ca27156605 More tests
for PROPPATCH, PROPFIND, MKCALENDAR and MKCOL
2020-09-26 22:08:22 +02:00
Unrud 7642d72919 Improve variable names 2020-09-26 22:08:21 +02:00
Unrud 0ce90d6b34 Extract read*_request_body methods 2020-09-14 21:19:48 +02:00
Unrud 80e8750c8a Add more tests 2020-09-14 18:54:02 +02:00
Tom Hacohen d3bb19800c
Web: add support for the POST HTTP method. (#1097)
* Web: add support for the POST HTTP method.

This patch adds support for POST in addition to the already supported GET.

This is needed for implementing more complex web modules that also
support configuration modifications and advanced queries.

* Base web: return METHOD_NOT_ALLOWED when method isn't implemenetd.

Co-authored-by: Unrud <Unrud@users.noreply.github.com>
2020-09-14 18:17:45 +02:00
Unrud 30c9c55358 Exit immediately after cleanup when signal is received
Waiting for clients introduces the risk that we exceed some timeout (e.g. from systemd) and get killed instead.
2020-08-31 14:11:42 +02:00
Unrud b98cd98c4c Fix internal server on FreeBSD 2020-08-18 22:51:35 +02:00
Unrud 1edfb16143 Fix isort test
Was broken by isort>=5
2020-07-23 18:42:43 +02:00
Unrud e0247f8f92 Cosmetics 2020-05-24 13:41:08 +02:00
Unrud d3b90506f5 Add tests for conflicting UIDs and overwriting of items 2020-05-24 13:19:29 +02:00
Unrud b9bb017edf Test current-user-principal prop authentication workaround 2020-05-24 13:19:29 +02:00
Unrud 6ec63ccc9b Handle missing IPv6 support by the kernel
This is different from disabled IPv6.

Fixes #1050
2020-05-24 10:11:40 +02:00
Unrud 3be9a22a91 Fix XML error messages
Fixes #825
2020-05-22 16:34:02 +02:00
Unrud 7f2d5cea62 New right "i": Only allowing HTTP method GET 2020-04-22 19:20:42 +02:00
Unrud 9bd852ba5e Remove duplicated code 2020-04-22 19:20:36 +02:00
Unrud d73a308294 Cosmetics 2020-04-22 19:20:30 +02:00
Unrud d5f5eeeddf from_file rights: Replace config parser interpolation 2020-04-22 19:20:24 +02:00