3ac412b4e2 
								
									
								
							
								 
							
						 
						
							
							
								
								Require types in tests.storage. ( #14646 )  
							
							... 
							
							
							
							Adds missing type hints to `tests.storage` package
and does not allow untyped definitions. 
							
						 
						
							2022-12-09 12:36:32 -05:00  
				
					
						
							
							
								 
						
							
							
								1e453053cb 
								
									
								
							
								 
							
						 
						
							
							
								
								Rename storage classes ( #12913 )  
							
							
							
						 
						
							2022-05-31 12:17:50 +00:00  
				
					
						
							
							
								 
						
							
							
								33ebee47e4 
								
									
								
							
								 
							
						 
						
							
							
								
								Remove redundant `get_success` calls in test code ( #12346 )  
							
							... 
							
							
							
							There are a bunch of places we call get_success on an immediate value, which is unnecessary. Let's rip them out, and remove the redundant functionality in get_success and friends. 
							
						 
						
							2022-04-01 16:10:31 +01:00  
				
					
						
							
							
								 
						
							
							
								e24ff8ebe3 
								
									
								
							
								 
							
						 
						
							
							
								
								Remove `HomeServer.get_datastore()` ( #12031 )  
							
							... 
							
							
							
							The presence of this method was confusing, and mostly present for backwards
compatibility. Let's get rid of it.
Part of #11733  
							
						 
						
							2022-02-23 11:04:02 +00:00  
				
					
						
							
							
								 
						
							
							
								228decfce1 
								
									
								
							
								 
							
						 
						
							
							
								
								Update the MSC3083 support to verify if joins are from an authorized server. ( #10254 )  
							
							
							
						 
						
							2021-07-26 12:17:00 -04:00  
				
					
						
							
							
								 
						
							
							
								96f6293de5 
								
									
								
							
								 
							
						 
						
							
							
								
								Add endpoints for backfilling history (MSC2716) ( #9247 )  
							
							... 
							
							
							
							Work on https://github.com/matrix-org/matrix-doc/pull/2716  
							
						 
						
							2021-06-22 10:02:53 +01:00  
				
					
						
							
							
								 
						
							
							
								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>` 
							
						 
						
							2021-04-14 15:34:27 +01:00  
				
					
						
							
							
								 
						
							
							
								2ca4e349e9 
								
									
								
							
								 
							
						 
						
							
							
								
								Bugbear: Add Mutable Parameter fixes ( #9682 )  
							
							... 
							
							
							
							Part of #9366 
Adds in fixes for B006 and B008, both relating to mutable parameter lint errors.
Signed-off-by: Jonathan de Jong <jonathan@automatia.nl> 
							
						 
						
							2021-04-08 22:38:54 +01:00  
				
					
						
							
							
								 
						
							
							
								e7b769aea1 
								
									
								
							
								 
							
						 
						
							
							
								
								Convert storage test cases to HomeserverTestCase. ( #9736 )  
							
							
							
						 
						
							2021-04-06 07:21:02 -04:00  
				
					
						
							
							
								 
						
							
							
								0a00b7ff14 
								
									
								
							
								 
							
						 
						
							
							
								
								Update black, and run auto formatting over the codebase ( #9381 )  
							
							... 
							
							
							
							- Update black version to the latest
 - Run black auto formatting over the codebase
    - Run autoformatting according to [`docs/code_style.md
`](80d6dc9783/docs/code_style.md 
							
						 
						
							2021-02-16 22:32:34 +00:00  
				
					
						
							
							
								 
						
							
							
								90cf1eec44 
								
							
								 
							
						 
						
							
							
								
								Remove redundant mocking  
							
							
							
						 
						
							2020-12-02 17:53:38 +00:00  
				
					
						
							
							
								 
						
							
							
								30fba62108 
								
									
								
							
								 
							
						 
						
							
							
								
								Apply an IP range blacklist to push and key revocation requests. ( #8821 )  
							
							... 
							
							
							
							Replaces the `federation_ip_range_blacklist` configuration setting with an
`ip_range_blacklist` setting with wider scope. It now applies to:
* Federation
* Identity servers
* Push notifications
* Checking key validitity for third-party invite events
The old `federation_ip_range_blacklist` setting is still honored if present, but
with reduced scope (it only applies to federation and identity servers). 
							
						 
						
							2020-12-02 11:09:24 -05:00  
				
					
						
							
							
								 
						
							
							
								a34b17e492 
								
							
								 
							
						 
						
							
							
								
								Simplify `_locally_reject_invite`  
							
							... 
							
							
							
							Update `EventCreationHandler.create_event` to accept an auth_events param, and
use it in `_locally_reject_invite` instead of reinventing the wheel. 
							
						 
						
							2020-10-13 23:58:48 +01:00  
				
					
						
							
							
								 
						
							
							
								fcbab08cbd 
								
									
								
							
								 
							
						 
						
							
							
								
								Add an assertion on prev_events in create_new_client_event ( #8041 )  
							
							... 
							
							
							
							I think this would have caught all the cases in
https://github.com/matrix-org/synapse/issues/7642  - and I think a 500 makes
more sense here than a 403 
							
						 
						
							2020-08-10 12:29:47 +01:00  
				
					
						
							
							
								 
						
							
							
								a7bdf98d01 
								
									
								
							
								 
							
						 
						
							
							
								
								Rename database classes to make some sense ( #8033 )  
							
							
							
						 
						
							2020-08-05 21:38:57 +01:00  
				
					
						
							
							
								 
						
							
							
								8553f46498 
								
									
								
							
								 
							
						 
						
							
							
								
								Convert a synapse.events to async/await. ( #7949 )  
							
							
							
						 
						
							2020-07-27 13:40:22 -04:00  
				
					
						
							
							
								 
						
							
							
								43b2be9764 
								
							
								 
							
						 
						
							
							
								
								Replace _event_dict_property with DictProperty  
							
							... 
							
							
							
							this amounts to the same thing, but replaces `_event_dict` with `_dict`, and
removes some of the function layers generated by `property`. 
							
						 
						
							2020-02-14 16:42:37 +00:00  
				
					
						
							
							
								 
						
							
							
								b9391c9575 
								
									
								
							
								 
							
						 
						
							
							
								
								Add typing to SyncHandler ( #6821 )  
							
							... 
							
							
							
							Co-authored-by: Richard van der Hoff <1389908+richvdh@users.noreply.github.com> 
							
						 
						
							2020-02-03 18:05:44 +00:00  
				
					
						
							
							
								 
						
							
							
								fa4d609e20 
								
									
								
							
								 
							
						 
						
							
							
								
								Make 'event.redacts' never raise. ( #6771 )  
							
							... 
							
							
							
							There are quite a few places that we assume that a redaction event has a
corresponding `redacts` key, which is not always the case. So lets
cheekily make it so that event.redacts just returns None instead. 
							
						 
						
							2020-01-23 15:19:03 +00:00  
				
					
						
							
							
								 
						
							
							
								756d4942f5 
								
							
								 
							
						 
						
							
							
								
								Move DB pool and helper functions into dedicated Database class  
							
							
							
						 
						
							2019-12-05 10:46:37 +00:00  
				
					
						
							
							
								 
						
							
							
								ee86abb2d6 
								
							
								 
							
						 
						
							
							
								
								Remove underscore from SQLBaseStore functions  
							
							
							
						 
						
							2019-12-04 16:23:43 +00:00  
				
					
						
							
							
								 
						
							
							
								3ca4c7c516 
								
							
								 
							
						 
						
							
							
								
								Use new EventPersistenceStore  
							
							
							
						 
						
							2019-10-23 16:15:03 +01:00  
				
					
						
							
							
								 
						
							
							
								ce7a3e7e27 
								
							
								 
							
						 
						
							
							
								
								Fix fetching censored redactions from DB  
							
							... 
							
							
							
							Fetching a censored redactions caused an exception due to the code
expecting redactions to have a `redact` key, which redacted redactions
don't have. 
							
						 
						
							2019-10-02 10:14:01 +01:00  
				
					
						
							
							
								 
						
							
							
								ad9b64b496 
								
							
								 
							
						 
						
							
							
								
								Fix test  
							
							
							
						 
						
							2019-09-05 17:17:47 +01:00  
				
					
						
							
							
								 
						
							
							
								3ff0422d2d 
								
							
								 
							
						 
						
							
							
								
								Make redaction retention period configurable  
							
							
							
						 
						
							2019-09-05 17:16:45 +01:00  
				
					
						
							
							
								 
						
							
							
								a4bf72c30c 
								
							
								 
							
						 
						
							
							
								
								Censor redactions in DB after a month  
							
							
							
						 
						
							2019-08-30 11:29:17 +01:00  
				
					
						
							
							
								 
						
							
							
								4e97eb89e5 
								
							
								 
							
						 
						
							
							
								
								Handle loops in redaction events  
							
							
							
						 
						
							2019-07-30 00:00:34 +01:00  
				
					
						
							
							
								 
						
							
							
								1cad8d7b6f 
								
									
								
							
								 
							
						 
						
							
							
								
								Convert RedactionTestCase to modern test style ( #5768 )  
							
							
							
						 
						
							2019-07-26 07:38:55 +01:00  
				
					
						
							
							
								 
						
							
							
								4806651744 
								
									
								
							
								 
							
						 
						
							
							
								
								Replace returnValue with return ( #5736 )  
							
							
							
						 
						
							2019-07-23 23:00:55 +10:00  
				
					
						
							
							
								 
						
							
							
								32e7c9e7f2 
								
									
								
							
								 
							
						 
						
							
							
								
								Run Black. ( #5482 )  
							
							
							
						 
						
							2019-06-20 19:32:02 +10:00  
				
					
						
							
							
								 
						
							
							
								b36c82576e 
								
									
								
							
								 
							
						 
						
							
							
								
								Run Black on the tests again ( #5170 )  
							
							
							
						 
						
							2019-05-10 00:12:11 -05:00  
				
					
						
							
							
								 
						
							
							
								54a87a7b08 
								
									
								
							
								 
							
						 
						
							
							
								
								Collect room-version variations into one place ( #4969 )  
							
							... 
							
							
							
							Collect all the things that make room-versions different to one another into
one place, so that it's easier to define new room versions. 
							
						 
						
							2019-04-01 10:24:38 +01:00  
				
					
						
							
							
								 
						
							
							
								9770ed91c2 
								
							
								 
							
						 
						
							
							
								
								Fix tests  
							
							
							
						 
						
							2019-01-25 10:32:26 +00:00  
				
					
						
							
							
								 
						
							
							
								be6a7e47fa 
								
									
								
							
								 
							
						 
						
							
							
								
								Revert "Require event format version to parse or create events"  
							
							
							
						 
						
							2019-01-25 10:23:51 +00:00  
				
					
						
							
							
								 
						
							
							
								e79ba9eb34 
								
							
								 
							
						 
						
							
							
								
								Fix tests  
							
							
							
						 
						
							2019-01-24 09:28:16 +00:00  
				
					
						
							
							
								 
						
							
							
								4d664278af 
								
							
								 
							
						 
						
							
							
								
								Merge branch 'develop' of github.com:matrix-org/synapse into erikj/refactor_state_handler  
							
							
							
						 
						
							2018-08-20 14:49:43 +01:00  
				
					
						
							
							
								 
						
							
							
								99dd975dae 
								
									
								
							
								 
							
						 
						
							
							
								
								Run tests under PostgreSQL ( #3423 )  
							
							
							
						 
						
							2018-08-13 16:47:46 +10:00  
				
					
						
							
							
								 
						
							
							
								8b3d9b6b19 
								
							
								 
							
						 
						
							
							
								
								Run black.  
							
							
							
						 
						
							2018-08-10 23:54:09 +10:00  
				
					
						
							
							
								 
						
							
							
								3e19beb941 
								
							
								 
							
						 
						
							
							
								
								Fix tests  
							
							
							
						 
						
							2018-08-09 14:58:49 +01:00  
				
					
						
							
							
								 
						
							
							
								49af402019 
								
							
								 
							
						 
						
							
							
								
								run isort  
							
							
							
						 
						
							2018-07-09 16:09:20 +10:00  
				
					
						
							
							
								 
						
							
							
								770b2252ca 
								
							
								 
							
						 
						
							
							
								
								s/_create_new_client_event/create_new_client_event/  
							
							
							
						 
						
							2018-02-06 16:40:30 +00:00  
				
					
						
							
							
								 
						
							
							
								25c0a020f4 
								
							
								 
							
						 
						
							
							
								
								Updates tests  
							
							
							
						 
						
							2018-02-05 16:01:48 +00:00  
				
					
						
							
							
								 
						
							
							
								7e2f971c08 
								
							
								 
							
						 
						
							
							
								
								Remove some unused functions ( #711 )  
							
							... 
							
							
							
							* Remove some unused functions
* get_room_events_stream is only used in tests
* is_exclusive_room might actually be something we want 
							
						 
						
							2016-04-08 14:01:56 +01:00  
				
					
						
							
							
								 
						
							
							
								6c28ac260c 
								
							
								 
							
						 
						
							
							
								
								copyrights  
							
							
							
						 
						
							2016-01-07 04:26:29 +00:00  
				
					
						
							
							
								 
						
							
							
								771ca56c88 
								
							
								 
							
						 
						
							
							
								
								Remove more unused parameters  
							
							
							
						 
						
							2015-11-02 15:31:57 +00:00  
				
					
						
							
							
								 
						
							
							
								896253e085 
								
							
								 
							
						 
						
							
							
								
								Factor out some of the common homeserver setup code into a  
							
							... 
							
							
							
							setup_test_homeserver function in utils. 
							
						 
						
							2015-02-11 11:37:30 +00:00  
				
					
						
							
							
								 
						
							
							
								1c06c48ce2 
								
							
								 
							
						 
						
							
							
								
								Replace hs.parse_roomid with RoomID.from_string  
							
							
							
						 
						
							2015-01-23 11:55:12 +00:00  
				
					
						
							
							
								 
						
							
							
								5759bec43c 
								
							
								 
							
						 
						
							
							
								
								Replace hs.parse_userid with UserID.from_string  
							
							
							
						 
						
							2015-01-23 11:47:15 +00:00  
				
					
						
							
							
								 
						
							
							
								3c77d13aa5 
								
							
								 
							
						 
						
							
							
								
								Kill off synapse.api.events.*  
							
							
							
						 
						
							2014-12-16 11:29:05 +00:00  
				
					
						
							
							
								 
						
							
							
								e72b16f9a3 
								
							
								 
							
						 
						
							
							
								
								Fix redaction tests  
							
							
							
						 
						
							2014-12-11 13:38:52 +00:00