summary refs log tree commit diff
path: root/tests/handlers/test_profile.py (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Merge commit 'c978f6c45' into anoa/dinsic_release_1_21_xAndrew Morgan2020-10-161-1/+2
|\ | | | | | | | | * commit 'c978f6c45': Convert federation client to async/await. (#7975)
| * Convert federation client to async/await. (#7975)Patrick Cloke2020-07-301-1/+2
| |
* | Merge commit 'de119063f' into anoa/dinsic_release_1_18_xAndrew Morgan2020-08-031-6/+11
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit 'de119063f': (31 commits) Convert room list handler to async/await. (#7912) Element CSS and logo in email templates (#7919) Lint the contrib/ directory in CI and linting scripts, add synctl to linting script (#7914) Remove unused code from synapse.logging.utils. (#7897) Fix a typo in the sample config. (#7890) Fix deprecation warning: import ABC from collections.abc (#7892) Change sample config's postgres user to synapse_user (#7889) Fix deprecation warning due to invalid escape sequences (#7895) Remove Ubuntu Eoan that is now EOL (#7888) Fix the trace function for async functions. (#7872) Add help for creating a user via docker (#7885) Switch to Debian:Slim from Alpine for the docker image (#7839) Stop using 'device_max_stream_id' (#7882) Fix TypeError in synapse.notifier (#7880) Add a default limit (of 100) to get/sync operations. (#7858) Change "unknown room ver" logging to warning. (#7881) Convert device handler to async/await (#7871) Convert synapse.app to async/await. (#7868) Convert _base, profile, and _receipts handlers to async/await (#7860) Add admin endpoint to get members in a room. (#7842) ...
| * Convert _base, profile, and _receipts handlers to async/await (#7860)Patrick Cloke2020-07-171-6/+11
| |
* | Merge branch 'release-v1.15.0' of github.com:matrix-org/synapse into ↵Andrew Morgan2020-06-241-5/+1
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | dinsic-release-v1.15.x * 'release-v1.15.0' of github.com:matrix-org/synapse: (55 commits) 1.15.0 Fix some attributions Update CHANGES.md 1.15.0rc1 Revert "1.15.0rc1" 1.15.0rc1 Fix bug in account data replication stream. (#7656) Convert the registration handler to async/await. (#7649) Accept device information at the login fallback endpoint. (#7629) Convert user directory handler and related classes to async/await. (#7640) Add an option to disable autojoin for guest accounts (#6637) Clarifications to the admin api documentation (#7647) Update to the stable SSO prefix for UI Auth. (#7630) Fix type information on `assert_*_is_admin` methods (#7645) Remove some unused constants. (#7644) Typo fixes. Allow new users to be registered via the admin API even if the monthly active user limit has been reached (#7263) Add device management to admin API (#7481) Attempt to fix PhoneHomeStatsTestCase.test_performance_100 being flaky. (#7634) Support CS API v0.6.0 (#6585) ...
| * Performance improvements and refactor of Ratelimiter (#7595)Andrew Morgan2020-06-051-5/+1
| | | | | | | | | | | | | | | | | | | | While working on https://github.com/matrix-org/synapse/issues/5665 I found myself digging into the `Ratelimiter` class and seeing that it was both: * Rather undocumented, and * causing a *lot* of config checks This PR attempts to refactor and comment the `Ratelimiter` class, as well as encourage config file accesses to only be done at instantiation. Best to be reviewed commit-by-commit.
* | Merge branch 'release-v1.13.0' of github.com:matrix-org/synapse into ↵Andrew Morgan2020-06-101-10/+91
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | dinsic-release-v1.14.x * 'release-v1.13.0' of github.com:matrix-org/synapse: (257 commits) Update changelog based on feedback. Move warnings in the changelog and re-iterate changes to branches. 1.13.0 update dh-virtualenv (#7526) 1.13.0rc3 Hash passwords earlier in the registration process (#7523) 1.13.0rc2 1.13.0rc2 Stop `get_joined_users` corruption from custom statuses (#7376) Do not validate that the client dict is stable during UI Auth. (#7483) Fix new flake8 errors (#7489) Don't UPGRADE database rows RST indenting Put rollback instructions in upgrade notes Fix changelog typo Oh yeah, RST Absolute URL it is then Fix upgrade notes link Provide summary of upgrade issues in changelog. Fix ) Move next version notes from changelog to upgrade notes ...
| * async/await is_server_admin (#7363)Andrew Morgan2020-05-011-21/+39
| |
| * Add options to prevent users from changing their profile. (#7096)Dirk Klimpel2020-03-271-1/+64
| |
| * Revert "Add options to disable setting profile info for prevent changes. ↵Richard van der Hoff2020-03-171-32/+1
| | | | | | | | | | | | | | (#7053)" This reverts commit 54dd28621b070ca67de9f773fe9a89e1f4dc19da, reversing changes made to 6640460d054e8f4444046a34bdf638921b31c01e.
| * updates after reviewdklimpel2020-03-091-3/+3
| |
| * fix testsdklimpel2020-03-091-2/+2
| |
| * add testsdklimpel2020-03-091-3/+3
| |
| * Add options to disable setting profile info for prevent changes.dklimpel2020-03-081-1/+32
| |
* | Dinsic Blacking with black==18.6b2Andrew Morgan2020-02-111-4/+2
| |
* | Merge branch 'develop' of github.com:matrix-org/synapse into erikj/dinsic-mergedErik Johnston2019-03-211-2/+2
|\|
| * Add rate-limiting on registration (#4735)Brendan Abolivier2019-03-051-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Rate-limiting for registration * Add unit test for registration rate limiting * Add config parameters for rate limiting on auth endpoints * Doc * Fix doc of rate limiting function Co-Authored-By: babolivier <contact@brendanabolivier.com> * Incorporate review * Fix config parsing * Fix linting errors * Set default config for auth rate limiting * Fix tests * Add changelog * Advance reactor instead of mocked clock * Move parameters to registration specific config and give them more sensible default values * Remove unused config options * Don't mock the rate limiter un MAU tests * Rename _register_with_store into register_with_store * Make CI happy * Remove unused import * Update sample config * Fix ratelimiting test for py2 * Add non-guest test
* | merge master into dinsic, again...Matthew Hodgson2018-11-031-2/+2
|\|
| * Merge branch 'develop' of github.com:matrix-org/synapse into ↵Erik Johnston2018-08-171-16/+10
| |\ | | | | | | | | | erikj/split_profiles
| * | Split ProfileHandler into master and workerErik Johnston2018-08-171-2/+2
| | |
* | | merge in masterMatthew Hodgson2018-10-221-13/+9
|\ \ \ | | |/ | |/|
| * | Run tests under PostgreSQL (#3423)Amber Brown2018-08-131-0/+1
| | |
| * | Run black.black2018-08-101-16/+9
| |/
* | Merge remote-tracking branch 'origin/master' into dinsicDavid Baker2018-07-191-3/+3
|\|
| * run isortAmber Brown2018-07-091-3/+3
| |
* | unbreak testsMatthew Hodgson2018-05-041-1/+0
| |
* | remove create_profile from testsMatthew Hodgson2018-05-041-2/+0
| |
* | PR feedbackDavid Baker2018-04-251-2/+2
| | | | | | | | | | Unnecessary inlineCallbacks, missing yield, SQL comments & trailing commas.
* | Fix testsDavid Baker2018-04-171-3/+3
|/
* s/replication_client/federation_client/Erik Johnston2018-03-131-1/+1
|
* s/replication_server/federation_serverErik Johnston2018-03-131-1/+1
|
* Fix testsErik Johnston2018-03-131-1/+2
|
* Fix testsErik Johnston2018-03-131-5/+4
|
* Split out profile handler to fix testsErik Johnston2017-08-251-3/+1
|
* fix testsRichard van der Hoff2017-03-231-1/+2
|
* Implement device key caching over federationErik Johnston2017-01-261-0/+1
|
* Add `create_requester` functionRichard van der Hoff2016-07-261-4/+6
| | | | | Wrap the `Requester` constructor with a function which provides sensible defaults, and use it throughout
* Pass whole requester to ratelimitingDaniel Wagner-Hall2016-03-031-4/+12
| | | | This will enable more detailed decisions
* Fix flake8 warnings for testsMark Haines2016-02-191-3/+6
|
* Remove old tests.Erik Johnston2016-02-181-3/+0
|
* copyrightsMatthew Hodgson2016-01-071-1/+1
|
* Factor out some of the common homeserver setup code into aMark Haines2015-02-111-19/+10
| | | | setup_test_homeserver function in utils.
* Replace hs.parse_userid with UserID.from_stringMark Haines2015-01-231-4/+4
|
* Mock ratelimiter to make tests pass.Kegan Dougal2014-12-191-1/+8
|
* Fix profile testsErik Johnston2014-11-051-1/+5
|
* Merge branch 'test-sqlite-memory' of github.com:matrix-org/synapse into developErik Johnston2014-09-181-43/+24
|\ | | | | | | | | Conflicts: tests/handlers/test_profile.py
| * Merge remote-tracking branch 'origin/develop' into test-sqlite-memoryPaul "LeoNerd" Evans2014-09-151-5/+1
| |\
| * | Need to prepare() the SQLiteMemoryDbPool before passing it to HomeServer ↵Paul "LeoNerd" Evans2014-09-111-3/+4
| | | | | | | | | | | | constructor, as DataStore's constructor will want it ready
| * | Test ProfileHandler against the real datastore layer using SQLite :memory:Paul "LeoNerd" Evans2014-09-101-25/+25
| | |
* | | SYN-40: When a user updates their displayname or avatar update all their ↵Erik Johnston2014-09-171-0/+21
| |/ |/| | | | | join events for all the rooms they are currently in.
* | Have all unit tests import from our own subclass of trial's unittest ↵Paul "LeoNerd" Evans2014-09-121-5/+1
|/ | | | TestCase; set up logging in ONE PLACE ONLY
* fix the copyright holder from matrix.org to OpenMarket Ltd, as matrix.org ↵Matthew Hodgson2014-09-031-1/+1
| | | | hasn't been incorporated in time for launch.
* Removed http_server from HomeServer. Updated unit tests to use either ↵Kegan Dougal2014-08-141-2/+2
| | | | resource_for_federation or resource_for_client depending on what is being tested.
* Use new Federation Query API to implement HS->HS fetching of remote users' ↵Paul "LeoNerd" Evans2014-08-131-8/+27
| | | | profile information instead of (ab)using the client-side REST API
* add in copyrights to everything, not just the synapse subdir, and add a ↵Matthew Hodgson2014-08-131-0/+14
| | | | copyrighter.pl whilst we're at it
* Reference Matrix Home Servermatrix.org2014-08-121-0/+112