Patrick Cloke
4eed7b2ede
Add missing type hints to tests. ( #15027 )
1 vuosi sitten
Sean Quah
8ef0c8ff14
Fix error in `is_mine_id` when encountering a malformed ID ( #13746 )
Previously, `is_mine_id` would raise an exception when passed an ID with
no colons. Return `False` instead.
Fixes #13040 .
Signed-off-by: Sean Quah <seanq@matrix.org>
1 vuosi sitten
David Robertson
c99b511db9
Fix `destination_is` errors seen in sentry. ( #13041 )
* Rename test_fedclient to match its source file
* Require at least one destination to be truthy
* Explicitly validate user ID in profile endpoint GETs
Co-authored-by: Patrick Cloke <clokep@users.noreply.github.com>
2 vuotta sitten
Patrick Cloke
49f06866e4
Remove backing code for groups/communities ( #12558 )
Including handlers, configuration code, appservice support, and
the GroupID construct.
2 vuotta sitten
Patrick Cloke
02d708568b
Replace assertEquals and friends with non-deprecated versions. ( #12092 )
2 vuotta sitten
Jonathan de Jong
89cfc3dd98
[pyupgrade] `tests/` ( #10347 )
2 vuotta sitten
Jonathan de Jong
4b965c862d
Remove redundant "coding: utf-8" lines ( #9786 )
Part of #9744
Removes all redundant `# -*- coding: utf-8 -*-` lines from files, as python 3 automatically reads source code as utf-8 now.
`Signed-off-by: Jonathan de Jong <jonathan@automatia.nl>`
3 vuotta sitten
Patrick Cloke
98a64b7f7f
Add basic domain validation for `DomainSpecificString.is_valid`. ( #9071 )
This checks that the domain given to `DomainSpecificString.is_valid` (e.g.
`UserID`, `RoomAlias`, etc.) is of a valid form. Previously some validation
was done on the localpart (e.g. the sigil), but not the domain portion.
3 vuotta sitten
Patrick Cloke
7dcbc33a1b
Validate the alt_aliases property of canonical alias events ( #6971 )
4 vuotta sitten
Erik Johnston
bc5cb8bfe8
Remove database config parsing from apps.
4 vuotta sitten
Amber Brown
32e7c9e7f2
Run Black. ( #5482 )
5 vuotta sitten
Amber Brown
b36c82576e
Run Black on the tests again ( #5170 )
5 vuotta sitten
Richard van der Hoff
c588b9b9e4
Factor SSO success handling out of CAS login ( #4264 )
This is mostly factoring out the post-CAS-login code to somewhere we can reuse
it for other SSO flows, but it also fixes the userid mapping while we're at it.
5 vuotta sitten
Richard van der Hoff
414fa36f3e
Fix up tests
5 vuotta sitten
black
8b3d9b6b19
Run black.
5 vuotta sitten
Amber Brown
49af402019
run isort
6 vuotta sitten
Richard van der Hoff
1135193dfd
Validate group ids when parsing
May as well do it whenever we parse a Group ID. We check the sigil and basic
structure here so it makes sense to check the grammar in the same place.
6 vuotta sitten
Erik Johnston
9959d9ece8
Remove redundated BaseHomeServer
8 vuotta sitten
Matthew Hodgson
6c28ac260c
copyrights
8 vuotta sitten
Richard van der Hoff
f69a5c9134
Fix a 500 error resulting from empty room_ids
POST /_matrix/client/api/v1/rooms//send/a.b.c gave a 500 error, because we
assumed that rooms always had at least one character.
8 vuotta sitten
Mark Haines
ada711504e
Replace hs.parse_roomalias with RoomAlias.from_string
9 vuotta sitten
Mark Haines
5759bec43c
Replace hs.parse_userid with UserID.from_string
9 vuotta sitten
Erik Johnston
4d6af0dde3
Fix some tests
9 vuotta sitten
Paul "LeoNerd" Evans
cd62ee3f29
Have all unit tests import from our own subclass of trial's unittest TestCase; set up logging in ONE PLACE ONLY
9 vuotta sitten
Matthew Hodgson
8a7c1d6a00
fix the copyright holder from matrix.org to OpenMarket Ltd, as matrix.org hasn't been incorporated in time for launch.
9 vuotta sitten
Paul "LeoNerd" Evans
7fb93f2a47
Add a HomeServer.parse_roomalias() to avoid having to RoomAlias.from_sring(..., hs=hs) - similar to parse_userid()
9 vuotta sitten
Matthew Hodgson
3e35a9f96e
add in copyrights to everything, not just the synapse subdir, and add a copyrighter.pl whilst we're at it
9 vuotta sitten
matrix.org
4f475c7697
Reference Matrix Home Server
9 vuotta sitten