summary refs log tree commit diff
path: root/tests/handlers/test_federation.py (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Fix bug which caused rejected events to be stored with the wrong room state ↵Richard van der Hoff2019-11-061-0/+126
| | | | | | | | | | | | (#6320) Fixes a bug where rejected events were persisted with the wrong state group. Also fixes an occasional internal-server-error when receiving events over federation which are rejected and (possibly because they are backwards-extremities) have no prev_group. Fixes #6289.
* Lint (again)Brendan Abolivier2019-10-031-3/+1
|
* LintBrendan Abolivier2019-10-031-5/+5
|
* Add test caseBrendan Abolivier2019-10-031-0/+83
|
* Make unit tests workErik Johnston2016-01-181-141/+0
|
* Merge pull request #456 from matrix-org/store_event_actionsDavid Baker2016-01-081-0/+11
|\ | | | | Send unread notification counts
| * fix testsDavid Baker2016-01-061-0/+4
| |
| * fix testsDavid Baker2016-01-041-1/+1
| |
| * Add mocks to make tests work againDavid Baker2015-12-221-0/+7
| |
* | copyrightsMatthew Hodgson2016-01-071-1/+1
|/
* Don't needlessly compute contextErik Johnston2015-06-031-2/+2
|
* Don't bother checking for updates if the stream token hasn't advanced for a userMark Haines2015-05-131-2/+2
|
* Make work in both Maria and SQLite. Fix testsErik Johnston2015-04-011-0/+9
|
* Factor out some of the common homeserver setup code into aMark Haines2015-02-111-8/+3
| | | | setup_test_homeserver function in utils.
* Try to ensure we don't persist an event we have already persisted. In ↵Erik Johnston2015-02-031-1/+4
| | | | persist_event check if we already have the event, if so then update instead of replacing so that we don't cause a bump of the stream_ordering.
* Initial implementation of auth conflict resolutionErik Johnston2015-01-291-0/+2
|
* Construct the EventContext in the state handler rather than constructing one ↵Mark Haines2014-12-161-10/+8
| | | | and then immediately calling state_handler.annotate_context_with_state
* Kill off synapse.api.events.*Erik Johnston2014-12-161-5/+2
|
* Fix federation testErik Johnston2014-12-111-18/+24
|
* fix UTs by telling all the mock stores about the new methods for tracking ↵Matthew Hodgson2014-12-091-0/+2
| | | | retries
* Fix bugs when joining a remote room that has dodgy event graphs. This should ↵Erik Johnston2014-11-271-1/+5
| | | | also fix the number of times a HS will trigger a GET /event/
* Fix tests.Erik Johnston2014-11-261-1/+1
|
* Fix bugs in invite/join dances.Erik Johnston2014-11-251-5/+7
| | | | | We now do more implement more of the auth on the events so that we don't reject valid events.
* replace user_id with senderMark Haines2014-11-191-1/+2
|
* Merge PDUs and Events into one objectMark Haines2014-11-141-2/+3
|
* Validate signatures on incoming eventsMark Haines2014-11-141-1/+3
|
* Rename annotate_state_groups to annotate_event_with_stateErik Johnston2014-11-111-3/+3
|
* Fix Federation testErik Johnston2014-11-051-1/+1
|
* Fix federation handler tests. I've removed the invite/join dance ones as ↵Erik Johnston2014-11-041-57/+27
| | | | they are completely out of date.
* SPEC-7: Rename 'ts' to 'origin_server_ts'Mark Haines2014-10-171-3/+3
|
* Merge branch 'develop' into server2server_signingMark Haines2014-09-301-1/+1
|\ | | | | | | | | | | Conflicts: synapse/storage/__init__.py tests/rest/test_presence.py
| * Fix test where we changed arguments used to call the notifierErik Johnston2014-09-251-1/+1
| |
* | Sign federation transactionsMark Haines2014-09-241-1/+6
|/
* Correctly handle receiving 'missing' Pdus from federation, rather than just ↵Erik Johnston2014-09-151-1/+3
| | | | discarding them.
* 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 test to assert that we don't do authErik Johnston2014-09-031-1/+1
|
* 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.
* Remove get_state_for_room function from federation handlerMark Haines2014-08-281-2/+8
|
* Merge branch 'develop' into storage_transactionsMark Haines2014-08-271-2/+1
|\ | | | | | | | | | | Conflicts: tests/handlers/test_federation.py tests/handlers/test_room.py
| * Fix tests.Erik Johnston2014-08-271-2/+1
| |
* | Fill out prev_events before calling persist_eventMark Haines2014-08-271-17/+26
|/
* Fix ALL THE UNIT TESTSKegan Dougal2014-08-261-1/+0
|
* Fix federation test, since we now hit store.get_roomErik Johnston2014-08-201-1/+2
|
* Update testsErik Johnston2014-08-191-4/+4
|
* Removed http_server from HomeServer. Updated unit tests to use either ↵Kegan Dougal2014-08-141-1/+1
| | | | resource_for_federation or resource_for_client depending on what is being tested.
* 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/+107