summary refs log tree commit diff
path: root/tests/rest (follow)
Commit message (Expand)AuthorAgeFilesLines
* Convert tests/rest/admin/test_room.py to unix file endings (#7953)Andrew Morgan2020-07-271-1447/+1447
* Support oEmbed for media previews. (#7920)Patrick Cloke2020-07-271-8/+134
* Convert more of the media code to async/await (#7873)Patrick Cloke2020-07-241-1/+4
* Add admin endpoint to get members in a room. (#7842)Michael Albert2020-07-161-0/+46
* Allow accounts to be re-activated from the admin APIs. (#7847)Patrick Cloke2020-07-151-0/+47
* Return the proper 403 Forbidden error during errors with JWT logins. (#7844)Patrick Cloke2020-07-151-21/+22
* Add delete room admin endpoint (#7613)Dirk Klimpel2020-07-141-0/+395
* Add the option to validate the `iss` and `aud` claims for JWT logins. (#7827)Patrick Cloke2020-07-141-6/+100
* Do not use canonicaljson to magically handle decoding bytes from JSON. (#7802)Patrick Cloke2020-07-101-1/+1
* Fix some spelling mistakes / typos. (#7811)Patrick Cloke2020-07-093-3/+3
* Stop populating unused table `local_invites`. (#7793)Richard van der Hoff2020-07-071-1/+0
* isort 5 compatibility (#7786)Will Hunt2020-07-051-3/+1
* Fix inconsistent handling of upper and lower cases of email addresses. (#7021)Dirk Klimpel2020-07-031-30/+145
* add org.matrix.login.jwt so that m.login.jwt can be deprecated (#7675)Sorunome2020-06-241-3/+7
* Allow local media to be marked as safe from being quarantined. (#7718)Patrick Cloke2020-06-221-72/+65
* Fetch from the r0 media path instead of the unspecced v1. (#7714)Patrick Cloke2020-06-171-1/+1
* Replace all remaining six usage with native Python 3 equivalents (#7704)Dagfinn Ilmari Mannsåker2020-06-163-7/+6
* Allow new users to be registered via the admin API even if the monthly active...Dirk Klimpel2020-06-051-15/+163
* Add device management to admin API (#7481)Dirk Klimpel2020-06-051-0/+541
* Add support for webp thumbnailing (#7586)WGH2020-06-051-36/+99
* Performance improvements and refactor of Ratelimiter (#7595)Andrew Morgan2020-06-055-37/+48
* Fix a bug in automatic user creation with m.login.jwt. (#7585)Olof Johansson2020-06-011-0/+153
* Email notifications for new users when creating via the Admin API. (#7267)Dirk Klimpel2020-06-011-0/+75
* Convert sending mail to async/await. (#7557)Erik Johnston2020-05-221-2/+2
* Allow expired accounts to logout (#7443)Andrew Morgan2020-05-142-2/+103
* Merge tag 'v1.13.0rc2' into developRichard van der Hoff2020-05-141-45/+10
|\
| * Do not validate that the client dict is stable during UI Auth. (#7483)Patrick Cloke2020-05-131-45/+10
* | Merge branch 'release-v1.13.0' into developAndrew Morgan2020-05-111-88/+216
|\|
| * Rework UI Auth session validation for registration (#7455)Patrick Cloke2020-05-081-88/+216
* | Add room details admin endpoint (#7317)Manuel Stahl2020-05-071-0/+41
|/
* Persist user interactive authentication sessions (#7302)Patrick Cloke2020-04-301-0/+40
* Fix limit logic for EventsStream (#7358)Richard van der Hoff2020-04-291-1/+1
* Return total number of users and profile attributes in admin users endpoint (...Manuel Stahl2020-04-281-0/+2
* Revert "Revert "Merge pull request #7315 from matrix-org/babolivier/request_t...Brendan Abolivier2020-04-232-1/+62
* Extend room admin api with additional attributes (#7225)Dirk Klimpel2020-04-222-592/+680
* Allow specifying the value of Accept-Language header for URL previews (#7265)Andrew Morgan2020-04-151-0/+55
* Fix the parameters of a test fixture (#7243)Zay11Zay2020-04-141-1/+1
* Default PL100 to enable encryption in a room (#7230)Andrew Morgan2020-04-092-4/+297
* Do not allow a deactivated user to login via SSO. (#7240)Patrick Cloke2020-04-091-3/+39
* Merge pull request #7157 from matrix-org/rev.outbound_device_pokes_testsRichard van der Hoff2020-03-302-4/+4
|\
| * Remove spurious "name" parameter to `default_config`Richard van der Hoff2020-03-242-4/+4
* | Always whitelist the login fallback for SSO (#7153)Richard van der Hoff2020-03-271-1/+8
* | Admin API to join users to a room. (#7051)Dirk Klimpel2020-03-271-0/+288
* | Add options to prevent users from changing their profile. (#7096)Dirk Klimpel2020-03-271-0/+302
* | Allow server admins to define and enforce a password policy (MSC2000). (#7118)Dirk Klimpel2020-03-261-0/+179
* | Validate that the session is not modified during UI-Auth (#7068)Patrick Cloke2020-03-261-1/+67
* | Clean up some LoggingContext stuff (#7120)Richard van der Hoff2020-03-241-8/+8
|/
* Remove special casing of `m.room.aliases` events (#7034)Patrick Cloke2020-03-172-15/+33
* Revert "Add options to disable setting profile info for prevent changes. (#70...Richard van der Hoff2020-03-171-303/+0
* Add options to disable setting profile info for prevent changes. (#7053)Brendan Abolivier2020-03-101-0/+303
|\
| * lint, fix testsdklimpel2020-03-091-2/+2
| * updates after reviewdklimpel2020-03-091-10/+7
| * lintdklimpel2020-03-091-10/+8
| * add testsdklimpel2020-03-091-0/+308
* | Merge branch 'master' into developBrendan Abolivier2020-03-031-0/+111
|\ \
| * | Add a whitelist for the SSO confirmation step.Richard van der Hoff2020-03-021-3/+29
| * | Merge remote-tracking branch 'origin/release-v1.11.1' into release-v1.11.1Richard van der Hoff2020-03-021-28/+181
| |\ \
| | * | Fixed set a user as an admin with the new API (#6928)Dirk Klimpel2020-03-021-28/+181
| * | | Add a confirmation step to the SSO login flowBrendan Abolivier2020-03-021-0/+85
| |/ /
* | / Validate the alt_aliases property of canonical alias events (#6971)Patrick Cloke2020-03-031-0/+160
| |/ |/|
* | Fixed set a user as an admin with the new API (#6928)Dirk Klimpel2020-02-281-32/+186
* | Ensure 'deactivated' parameter is a boolean on user admin API, Fix error hand...Andrew Morgan2020-02-261-0/+59
* | Clarify list/set/dict/tuple comprehensions and enforce via flake8 (#6957)Patrick Cloke2020-02-211-13/+15
|/
* Merge pull request #6949 from matrix-org/rav/list_room_aliases_peekableRichard van der Hoff2020-02-191-0/+17
|\
| * Make room alias lists peekableRichard van der Hoff2020-02-191-0/+17
* | Move MSC2432 stuff onto unstable prefix (#6948)Richard van der Hoff2020-02-191-3/+13
|/
* Implement GET /_matrix/client/r0/rooms/{roomId}/aliases (#6939)Richard van der Hoff2020-02-181-1/+69
* Raise the default power levels for invites, tombstones and server acls (#6834)Andrew Morgan2020-02-171-1/+3
* Return a 404 for admin api user lookup if user not found (#6901)Andrew Morgan2020-02-121-0/+16
* Admin api to add an email address (#6789)Dirk Klimpel2020-02-071-2/+17
* MSC2260: Block direct sends of m.room.aliases events (#6794)Richard van der Hoff2020-01-302-33/+15
* Admin API to list, filter and sort rooms (#6720)Andrew Morgan2020-01-221-4/+389
* Lint + changelogBrendan Abolivier2020-01-221-3/+1
* Remove unused importBrendan Abolivier2020-01-221-1/+1
* Add tests for thumbnailingBrendan Abolivier2020-01-221-3/+45
* Fix and add test to deprecated quarantine media admin api (#6756)Andrew Morgan2020-01-221-4/+11
* Fix `/events/:event_id` deprecated API. (#6731)Erik Johnston2020-01-201-0/+27
* Fix changing password via user admin API. (#6730)Erik Johnston2020-01-201-0/+13
* Fix purge_room admin API (#6711)Erik Johnston2020-01-151-3/+1
* Add `local_current_membership` table (#6655)Erik Johnston2020-01-152-12/+9
* Quarantine media by ID or user ID (#6681)Andrew Morgan2020-01-132-0/+378
* Allow admin users to create or modify users without a shared secret (#6495)Manuel Stahl2020-01-092-338/+465
* Fix GET request on /_synapse/admin/v2/users endpoint (#6563)Manuel Stahl2020-01-081-0/+41
* Back out ill-advised notary server hackery (#6657)Richard van der Hoff2020-01-083-4/+131
* Workaround for error when fetching notary's own key (#6620)Richard van der Hoff2020-01-061-0/+130
* Merge release-v1.7.1 into developRichard van der Hoff2019-12-181-0/+127
|\
| * Incorporate reviewBrendan Abolivier2019-12-161-5/+0
| * LintBrendan Abolivier2019-12-161-2/+1
| * Add test caseBrendan Abolivier2019-12-161-0/+133
* | Add option to allow profile queries without sharing a room (#6523)Will Hunt2019-12-161-0/+2
* | Port handlers.account_validity to async/await.Erik Johnston2019-12-101-2/+1
|/
* Merge pull request #6484 from matrix-org/erikj/port_sync_handlerErik Johnston2019-12-091-1/+3
|\
| * Fixup functions to consistently return deferredsErik Johnston2019-12-061-1/+3
* | Merge branch 'develop' of github.com:matrix-org/synapse into erikj/make_datab...Erik Johnston2019-12-062-1/+12
|\|
| * Fixup testsErik Johnston2019-12-052-1/+12
* | Move DB pool and helper functions into dedicated Database classErik Johnston2019-12-051-1/+1
|/
* Remove underscore from SQLBaseStore functionsErik Johnston2019-12-041-1/+1
* Merge pull request #6329 from matrix-org/babolivier/context_filtersBrendan Abolivier2019-12-043-100/+381
|\
| * Un-remove room purge testBrendan Abolivier2019-12-041-0/+72
| * Merge branch 'babolivier/context_filters' of github.com:matrix-org/synapse in...Brendan Abolivier2019-12-041-1/+1
| |\
| | * Merge branch 'develop' into babolivier/context_filtersBrendan Abolivier2019-11-263-1/+213
| | |\
| * | \ Merge branch 'develop' into babolivier/context_filtersBrendan Abolivier2019-12-045-3/+477
| |\ \ \ | | |/ / | |/| |
| * | | LintBrendan Abolivier2019-11-051-30/+41
| * | | Update copyrightsBrendan Abolivier2019-11-053-1/+7
| * | | Add tests for /searchBrendan Abolivier2019-11-051-44/+143
| * | | Merge labels tests for /context and /messagesBrendan Abolivier2019-11-051-146/+130
| * | | Add test caseBrendan Abolivier2019-11-051-0/+182
* | | | Add ephemeral messages support (MSC2228) (#6409)Brendan Abolivier2019-12-031-0/+101
| |/ / |/| |
* | | Add testsErik Johnston2019-11-281-0/+140
* | | Merge pull request #6358 from matrix-org/babolivier/message_retentionBrendan Abolivier2019-11-271-0/+293
|\ \ \
| * \ \ Merge branch 'develop' into babolivier/message_retentionBrendan Abolivier2019-11-263-1/+114
| |\ \ \ | | | |/ | | |/|
| * | | Don't restrict the tests to v1 roomsBrendan Abolivier2019-11-261-2/+0
| * | | Lint againBrendan Abolivier2019-11-191-10/+2
| * | | LintBrendan Abolivier2019-11-191-50/+23
| * | | Don't apply retention policy based filtering on state eventsBrendan Abolivier2019-11-061-0/+10
| * | | Implement per-room message retention policiesBrendan Abolivier2019-11-041-0/+320
| | |/ | |/|
* | | Remove assertion and provide a clear warning on startup for missing public_ba...Andrew Morgan2019-11-261-0/+1
| |/ |/|
* | LintBrendan Abolivier2019-11-201-6/+8
* | Test if a purge can make /messages return 500 responsesBrendan Abolivier2019-11-201-0/+72
* | Blacklist PurgeRoomTestCase (#6361)Andrew Morgan2019-11-131-0/+2
* | Merge pull request #6295 from matrix-org/erikj/split_purge_historyErik Johnston2019-11-081-1/+3
|\ \
| * | Fix deleting state groups during room purge.Erik Johnston2019-11-061-1/+3
| |/
* | Merge branch 'develop' into rav/url_preview_limit_titleRichard van der Hoff2019-11-054-5/+332
|\|
| * Merge pull request #6301 from matrix-org/babolivier/msc2326Brendan Abolivier2019-11-013-5/+254
| |\
| | * Incorporate reviewBrendan Abolivier2019-11-012-8/+8
| | * Incorporate reviewBrendan Abolivier2019-11-012-10/+10
| | * LintBrendan Abolivier2019-10-302-31/+30
| | * Add integration tests for /messagesBrendan Abolivier2019-10-301-1/+101
| | * Add more integration testingBrendan Abolivier2019-10-301-6/+39
| | * Add integration tests for syncBrendan Abolivier2019-10-302-5/+122
| * | Add unit test for /purge_room APIErik Johnston2019-10-311-0/+78
| |/
* | Apply suggestions from code reviewRichard van der Hoff2019-11-051-0/+1
* | Strip overlong OpenGraph data from url previewRichard van der Hoff2019-11-051-0/+34
|/
* Add domain validation when creating room with list of invitees (#6121)werner2912019-10-101-0/+9
* send 404 as http-status when filter-id is unknown to the server (#2380)krombel2019-10-101-1/+1
* Fix races in room stats (and other) updates. (#6187)Richard van der Hoff2019-10-101-1/+1
* okBrendan Abolivier2019-09-271-1/+3
* LintBrendan Abolivier2019-09-271-7/+1
* Add test to validate the changeBrendan Abolivier2019-09-271-13/+57
* Stop advertising unsupported flows for registration (#6107)Richard van der Hoff2019-09-251-12/+17
* Refactor the user-interactive auth handling (#6105)Richard van der Hoff2019-09-251-10/+16
* Refactor code for calculating registration flows (#6106)Richard van der Hoff2019-09-251-12/+67
* Fix commentsErik Johnston2019-09-111-2/+2
* Add test for admin redaction ratelimiting.Erik Johnston2019-09-111-0/+25
* Fix and refactor room and user stats (#5971)Erik Johnston2019-09-041-2/+6
* Remove unnecessary parentheses around return statements (#5931)Andrew Morgan2019-08-301-1/+1
* Add testsBrendan Abolivier2019-08-011-0/+37
* Replace returnValue with return (#5736)Amber Brown2019-07-231-1/+1
* Remove the ability to query relations when the original event was redacted. (...Andrew Morgan2019-07-181-3/+113
* Ignore redactions of m.room.create events (#5701)Richard van der Hoff2019-07-171-0/+20
* More refactoring in `get_events_as_list` (#5707)Richard van der Hoff2019-07-171-0/+159
* Implement access token expiry (#5660)Richard van der Hoff2019-07-121-0/+108
* Include the original event in /relations (#5626)Andrew Morgan2019-07-091-0/+5
* LintBrendan Abolivier2019-07-081-2/+2
* Add test caseBrendan Abolivier2019-07-081-0/+47
* Add origin_server_ts and sender fields to m.replace (#5613)Andrew Morgan2019-07-051-6/+18
* Move logging utilities out of the side drawer of util/ and into logging/ (#5606)Amber Brown2019-07-042-2/+2
* Fix media repo breaking (#5593)Amber Brown2019-07-021-0/+12
* Make the http server handle coroutine-making REST servlets (#5475)Amber Brown2019-06-291-10/+15
* Split public rooms directory auth config in twoBrendan Abolivier2019-06-241-1/+1
* Run Black. (#5482)Amber Brown2019-06-2013-179/+160
* Merge pull request #5440 from matrix-org/babolivier/third_party_event_rulesBrendan Abolivier2019-06-141-0/+79
|\
| * Add plugin APIs for implementations of custom event rules.Brendan Abolivier2019-06-141-0/+79
* | Don't send renewal emails to deactivated usersBrendan Abolivier2019-06-141-25/+42
* | Track deactivated accounts in the database (#5378)Brendan Abolivier2019-06-141-0/+45
* | Merge branch 'master' of github.com:matrix-org/synapse into developErik Johnston2019-06-113-12/+241
|\ \
| * | Bump bleach version so that tests can run on old deps.Erik Johnston2019-06-112-12/+0
| * | Change password reset links to /_matrix.Erik Johnston2019-06-111-0/+241
| |/
* | Merge pull request #5363 from matrix-org/babolivier/account_validity_send_mai...Brendan Abolivier2019-06-101-0/+35
|\ \ | |/ |/|
| * Don't check whether the user's account is expired on /send_mail requestsBrendan Abolivier2019-06-051-0/+35
* | Unify v1 and v2 REST client APIs (#5226)Amber Brown2019-06-032-2/+1
* | Merge pull request #5309 from matrix-org/rav/limit_displayname_lengthRichard van der Hoff2019-06-011-2/+60
|\ \
| * | add some testsRichard van der Hoff2019-06-011-2/+60
* | | Merge pull request #5276 from matrix-org/babolivier/account_validity_job_deltaErik Johnston2019-05-311-5/+10
|\ \ \
| * | | Move delta from +10% to -10%Brendan Abolivier2019-05-311-2/+2
| * | | Make max_delta equal to period * 10%Brendan Abolivier2019-05-311-17/+1
| * | | TypoBrendan Abolivier2019-05-281-1/+1
| * | | Allow configuring a range for the account validity startup jobBrendan Abolivier2019-05-281-0/+21
| | |/ | |/|
* | | Add config option for setting homeserver's default room version (#5223)Andrew Morgan2019-05-231-2/+5
* | | Room Statistics (#4338)Amber Brown2019-05-211-0/+17
| |/ |/|
* | Merge pull request #5212 from matrix-org/erikj/deny_multiple_reactionsErik Johnston2019-05-211-1/+26
|\ \
| * | Block attempts to annotate the same event twiceErik Johnston2019-05-201-1/+26
* | | Merge pull request #5204 from matrix-org/babolivier/account_validity_expirati...Brendan Abolivier2019-05-211-0/+55
|\ \ \ | |/ / |/| / | |/
| * Add startup background job for account validityBrendan Abolivier2019-05-171-0/+55
* | Rename relation types to match MSCErik Johnston2019-05-201-11/+11
* | Merge pull request #5209 from matrix-org/erikj/reactions_baseErik Johnston2019-05-201-0/+539
|\ \
| * | Fixup commentsErik Johnston2019-05-201-2/+2
| * | Correctly update aggregation counts after redactionErik Johnston2019-05-201-0/+37
| * | Make tests use different user for each reaction it sendsErik Johnston2019-05-171-12/+68
| * | Add basic editing supportErik Johnston2019-05-161-9/+82
| * | Check that event is visible in new APIsErik Johnston2019-05-161-1/+1
| * | Add aggregations APIErik Johnston2019-05-161-3/+248
| * | Add simple pagination APIErik Johnston2019-05-151-0/+30
| * | Add simple send_relation API and track in DBErik Johnston2019-05-151-0/+98
* | | Merge pull request #5196 from matrix-org/babolivier/per_room_profilesBrendan Abolivier2019-05-171-1/+69
|\ \ \ | | |/ | |/|
| * | LintBrendan Abolivier2019-05-161-1/+0
| * | LintBrendan Abolivier2019-05-161-1/+3
| * | Forgot copyrightBrendan Abolivier2019-05-161-0/+1
| * | Add test caseBrendan Abolivier2019-05-161-1/+67
| |/
* | Merge pull request #5174 from matrix-org/dbkr/add_dummy_flow_to_recaptcha_onlyDavid Baker2019-05-161-1/+8
|\ \ | |/ |/|
| * Merge remote-tracking branch 'origin/develop' into dbkr/add_dummy_flow_to_rec...David Baker2019-05-131-11/+11
| |\
| * | And now I realise why the test is failing...David Baker2019-05-131-1/+8
* | | Migrate all tests to use the dict-based config format instead of hanging item...Amber Brown2019-05-1310-69/+70
| |/ |/|
* | URL preview blacklisting fixes (#5155)Andrew Morgan2019-05-101-11/+11
|/
* Run Black on the tests again (#5170)Amber Brown2019-05-108-222/+114
* Fix bogus imports in tests (#5154)Brendan Abolivier2019-05-083-5/+6
* add options to require an access_token to GET /profile and /publicRooms on CS...Matthew Hodgson2019-05-082-1/+123
* Do checks on aliases for incoming m.room.aliases events (#5128)Brendan Abolivier2019-05-081-0/+169
* Remove the requirement to authenticate for /admin/server_version. (#5122)Richard van der Hoff2019-05-071-22/+8
* Add admin api for sending server_notices (#5121)Richard van der Hoff2019-05-0210-14/+14
* Move admin api impl to its own packageRichard van der Hoff2019-05-0111-25/+47
* Merge branch 'develop' of github.com:matrix-org/synapse into babolivier/accou...Erik Johnston2019-04-173-2/+191
|\
| * Merge pull request #5047 from matrix-org/babolivier/account_expirationBrendan Abolivier2019-04-171-1/+99
| |\
| * \ Merge pull request #5027 from matrix-org/babolivier/account_expirationBrendan Abolivier2019-04-091-2/+49
| |\ \
| * | | Add config option to block users from looking up 3PIDs (#5010)Brendan Abolivier2019-04-041-0/+65
| * | | Add unit test for deleting groupsErik Johnston2019-04-031-0/+124
| * | | Collect room-version variations into one place (#4969)Richard van der Hoff2019-04-011-2/+2
* | | | Add management endpoints for account validityBrendan Abolivier2019-04-171-8/+87
| |_|/ |/| |
* | | Send out emails with links to extend an account's validity periodBrendan Abolivier2019-04-171-1/+99
| |/ |/|
* | Add account expiration featureBrendan Abolivier2019-04-091-2/+49
|/
* Some more porting to HomeserverTestCase and remove old RESTHelper (#4913)Amber Brown2019-03-221-125/+0
* Merge pull request #4908 from matrix-org/erikj/block_peek_on_blocked_roomsErik Johnston2019-03-211-1/+65
|\
| * isortErik Johnston2019-03-211-1/+1
| * Deny peeking into rooms that have been blockedErik Johnston2019-03-211-1/+65
* | Fix typo and add descriptionErik Johnston2019-03-211-1/+5
|/
* Rejig testcase to make it more extensibleErik Johnston2019-03-211-17/+22
* Remove debugErik Johnston2019-03-211-1/+0
* Add testsErik Johnston2019-03-211-1/+66
* Fix registration testRichard van der Hoff2019-03-191-1/+2
* Add ratelimiting on failed login attempts (#4865)Brendan Abolivier2019-03-181-0/+45
* Add ratelimiting on login (#4821)Brendan Abolivier2019-03-152-2/+122
* Merge pull request #4772 from jbweston/jbweston/server-version-apiErik Johnston2019-03-051-2/+36
|\
| * Add 'server_version' endpoint to admin APIJoseph Weston2019-03-011-1/+35
| * Import 'admin' module rather than 'register_servlets' directlyJoseph Weston2019-03-011-2/+2
* | Add rate-limiting on registration (#4735)Brendan Abolivier2019-03-054-7/+55
|/
* Fix parsing of Content-Disposition headers (#4763)Richard van der Hoff2019-02-271-0/+45
* Move register_device into handlerErik Johnston2019-02-181-70/+23
* Fix unit testsErik Johnston2019-02-181-6/+15
* rework format of change password capabilityNeil Johnson2019-01-291-2/+2
* support change_password in capabilities end-pointNeil Johnson2019-01-291-0/+23
* isortNeil Johnson2019-01-291-1/+2
* enforce auth for capabilities endpointNeil Johnson2019-01-291-4/+19
* Support room version capabilities in CS API (MSC1804)Neil Johnson2019-01-251-0/+39
* Remove v1 only REST APIs now we don't ship matrix console (#4334)Amber Brown2018-12-292-145/+44
* Fix IP URL previews on Python 3 (#4215)Amber Brown2018-12-221-98/+326
* create support user (#4141)Neil Johnson2018-12-141-5/+28
* Implement .well-known handling (#4262)Richard van der Hoff2018-12-051-0/+58
* Fix more logcontext leaks in tests (#4209)Richard van der Hoff2018-11-271-1/+2
* Merge pull request #4204 from matrix-org/rav/logcontext_leak_fixesRichard van der Hoff2018-11-201-1/+2
|\
| * Fix logcontext leak in test_url_previewRichard van der Hoff2018-11-191-1/+2