summary refs log tree commit diff
path: root/tests/utils.py (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Pass whole requester to ratelimitingDaniel Wagner-Hall2016-03-031-0/+5
| | | | This will enable more detailed decisions
* Merge pull request #571 from matrix-org/daniel/asidsDaniel Wagner-Hall2016-03-031-6/+14
|\ | | | | Mark AS users with their AS's ID
| * Mark AS users with their AS's IDDaniel Wagner-Hall2016-02-111-6/+14
| |
* | Add a /replication API for extracting the updates that happened onMark Haines2016-03-011-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | synapse This is necessary for replicating the data in synapse to be visible to a separate service because presence and typing notifications aren't stored in a database so won't be visible to another process. This API can be used to either get the raw data by requesting the tables themselves or to just receive notifications for updates by following the streams meta-stream. Returns updates for each table requested a JSON array of arrays with a row for each row in the table. Each table is prefixed by a header row with the: name of the table, current stream_id position for the table, number of rows, number of columns and the names of the columns. This is followed by the rows that have been added to the server since the requester last asked. The API has a timeout and is hooked up to the notifier so that a slave can long poll for updates.
* | Fix flake8 warnings for testsMark Haines2016-02-191-17/+13
| |
* | Initial cutErik Johnston2016-02-171-2/+2
|/
* Rename config field to reflect yaml nameDaniel Wagner-Hall2016-02-031-1/+1
|
* Fix the mock homserver used in the testsMark Haines2016-01-291-0/+1
|
* Fix testsErik Johnston2016-01-271-0/+8
|
* Remove redundated BaseHomeServerErik Johnston2016-01-261-0/+18
|
* copyrightsMatthew Hodgson2016-01-071-1/+1
|
* Host /unstable and /r0 versions of r0 APIsDaniel Wagner-Hall2015-12-011-2/+3
|
* Test for background updatesMark Haines2015-11-101-0/+3
|
* Remove more unused parametersDaniel Wagner-Hall2015-11-021-1/+1
|
* rename schema_prepare to prepare_databaseErik Johnston2015-10-131-1/+1
|
* Expose error more nicelyErik Johnston2015-10-131-1/+1
|
* Swap out bcrypt for md5 in testsDaniel Wagner-Hall2015-08-261-0/+13
| | | | This reduces our ~8 second sequential test time down to ~7 seconds
* Stop looking up "admin", which we never readDaniel Wagner-Hall2015-08-251-1/+0
|
* Remove completely unused concepts from codebaseDaniel Wagner-Hall2015-08-251-2/+1
| | | | | | | | | | Removes device_id and ClientInfo device_id is never actually written, and the matrix.org DB has no non-null entries for it. Right now, it's just cluttering up code. This doesn't remove the columns from the database, because that's fiddly.
* s/by_token/by_access_token/gDaniel Wagner-Hall2015-08-201-1/+1
| | | | We're about to have two kinds of token, access and refresh
* Issue macaroons as opaque auth tokensDaniel Wagner-Hall2015-08-181-0/+2
| | | | | | | | | | | | | This just replaces random bytes with macaroons. The macaroons are not inspected by the client or server. In particular, they claim to have an expiry time, but nothing verifies that they have not expired. Follow-up commits will actually enforce the expiration, and allow for token refresh. See https://bit.ly/matrix-auth for more information
* Fix testsErik Johnston2015-06-121-0/+2
|
* Discard unused NotifierUserStreamsMark Haines2015-05-131-0/+3
|
* Don't bother checking for updates if the stream token hasn't advanced for a userMark Haines2015-05-131-1/+1
|
* Make work in both Maria and SQLite. Fix testsErik Johnston2015-04-011-1/+10
|
* Update testsErik Johnston2015-02-191-0/+1
|
* Use git aware version string in User-Agent and Server headersErik Johnston2015-02-181-2/+8
|
* Add a cache for get_eventMark Haines2015-02-111-0/+1
|
* Factor out some of the common homeserver setup code into aMark Haines2015-02-111-0/+23
| | | | setup_test_homeserver function in utils.
* Have MockClock detect attempts to cancel expired timers, to prevent a repeat ↵Paul "LeoNerd" Evans2015-01-131-4/+16
| | | | of SYN-230
* Kill off synapse.api.events.*Erik Johnston2014-12-161-6/+2
|
* Fix tests and remove debug loggingErik Johnston2014-12-121-2/+7
|
* Implement .cancel_call_later() in MockClockPaul "LeoNerd" Evans2014-12-101-2/+5
|
* Implement .call_later() in MockClockPaul "LeoNerd" Evans2014-12-101-0/+26
|
* Sign outgoing PDUs.Mark Haines2014-10-161-1/+2
|
* Raise a SynapseError if the authorisation header is missing or malformedMark Haines2014-10-131-0/+4
|
* Verify signatures for server2server requestsMark Haines2014-10-131-0/+3
|
* Merge branch 'develop' into server2server_signingMark Haines2014-09-301-2/+9
|\ | | | | | | | | | | Conflicts: synapse/storage/__init__.py tests/rest/test_presence.py
| * Unbreak tests after changing storage APIErik Johnston2014-09-291-2/+6
| |
| * Track the IP users connect with. Add an admin column to users table.Erik Johnston2014-09-261-0/+3
| |
| * Fix test.Erik Johnston2014-09-241-1/+1
| |
* | Sign federation transactionsMark Haines2014-09-241-0/+15
|/
* Move SQLiteMemoryDbPool implementation into tests.utilsPaul "LeoNerd" Evans2014-09-101-0/+14
|
* 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.
* Fix room permissions testErik Johnston2014-09-021-0/+3
|
* Fix the tests to include new db callsErik Johnston2014-09-011-0/+14
|
* Have MemoryDataStore's get_rooms_for_user_where_membership_is() return room ↵Paul "LeoNerd" Evans2014-09-011-2/+3
| | | | membership event objects, as per interface contract
* Fix a couple of bugs in presence handler related to pushing updatesto the ↵Erik Johnston2014-08-291-6/+31
| | | | correct user. Fix presence tests.
* Ability to assert a DeferredMockCallable has received no callsPaul "LeoNerd" Evans2014-08-281-0/+15
|
* Remove get_state_for_room function from federation handlerMark Haines2014-08-281-0/+10
|
* Fill out prev_events before calling persist_eventMark Haines2014-08-271-1/+3
|
* Merge branch 'develop' into storage_transactionsMark Haines2014-08-261-3/+5
|\ | | | | | | | | | | | | Conflicts: synapse/api/auth.py synapse/handlers/room.py synapse/storage/__init__.py
| * Fix ALL THE UNIT TESTSKegan Dougal2014-08-261-3/+5
| |
* | Take a snapshot of the state of the room before performing updatesMark Haines2014-08-221-0/+7
|/
* Merge branch 'master' of github.com:matrix-org/synapse into sql_refactorErik Johnston2014-08-191-1/+42
|\ | | | | | | | | | | | | Conflicts: tests/rest/test_presence.py tests/rest/test_rooms.py tests/utils.py
| * Add a DeferredMockCallable; like mock's MockCallable but allows awaitingPaul "LeoNerd" Evans2014-08-191-0/+41
| | | | | | | | on method calls to be made later
| * Rename MockHttpServer to MockHttpResource as it stands for one server ↵Paul "LeoNerd" Evans2014-08-191-1/+2
| | | | | | | | resource rather than an entire server
* | Change the MemoryDataStore to implement new storage apiErik Johnston2014-08-181-99/+50
| |
* | Fix some of the tests to reflect changes in the storage layer.Erik Johnston2014-08-151-22/+2
|/
* Allow advancing the MockClock's timePaul "LeoNerd" Evans2014-08-131-0/+4
|
* Move MockClock into tests.utils so we can reüse itPaul "LeoNerd" Evans2014-08-131-0/+10
|
* add in copyrights to everything, not just the synapse subdir, and add a ↵Matthew Hodgson2014-08-131-0/+15
| | | | copyrighter.pl whilst we're at it
* Reference Matrix Home Servermatrix.org2014-08-121-0/+252