summary refs log tree commit diff
path: root/tests/storage (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Remove old tests.Erik Johnston2016-02-181-26/+0
|
* Simplify get_roomsErik Johnston2016-02-031-26/+0
|
* Fix testsErik Johnston2016-01-272-5/+4
|
* Require ID and as_token be unique for ASsDaniel Wagner-Hall2016-01-141-16/+85
| | | | | Defaults ID to as_token if not specified. This will change when IDs are fully supported.
* Merge pull request #456 from matrix-org/store_event_actionsDavid Baker2016-01-081-1/+1
|\ | | | | Send unread notification counts
| * fix testsDavid Baker2016-01-061-1/+1
| |
* | copyrightsMatthew Hodgson2016-01-0713-13/+13
|/
* Fix mock import in tests.Oleg Girko2015-12-061-1/+1
| | | | | | | | For some reason, one test imports Mock class from mock.mock rather than from mock. This change fixes this error. Signed-off-by: Oleg Girko <ol@infoserver.lv>
* Merge pull request #359 from matrix-org/markjh/incremental_indexingErik Johnston2015-11-111-0/+76
|\ | | | | Incremental background updates for db indexes
| * Test for background updatesMark Haines2015-11-101-0/+76
| |
* | Return world_readable and guest_can_join in /publicRoomsDaniel Wagner-Hall2015-11-101-0/+2
|/
* Remove more unused parametersDaniel Wagner-Hall2015-11-022-8/+0
|
* synapse/storage/_base.py:_simple_selectupdate_one was unusedMark Haines2015-09-231-20/+0
|
* Implement configurable stats reportingDaniel Wagner-Hall2015-09-224-54/+213
| | | | | | | | | | SYN-287 This requires that HS owners either opt in or out of stats reporting. When --generate-config is passed, --report-stats must be specified If an already-generated config is used, and doesn't have the report_stats key, it is requested to be set.
* Stop looking up "admin", which we never readDaniel Wagner-Hall2015-08-251-4/+2
|
* Remove completely unused concepts from codebaseDaniel Wagner-Hall2015-08-251-2/+0
| | | | | | | | | | 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.
* /tokenrefresh POST endpointDaniel Wagner-Hall2015-08-201-0/+55
| | | | | | | | This allows refresh tokens to be exchanged for (access_token, refresh_token). It also starts issuing them on login, though no clients currently interpret them.
* s/by_token/by_access_token/gDaniel Wagner-Hall2015-08-201-2/+2
| | | | We're about to have two kinds of token, access and refresh
* Move all the caches into their own package, synapse.util.cachesErik Johnston2015-08-111-1/+1
|
* Change Cache to not use *args in its interfaceErik Johnston2015-08-071-6/+6
|
* Make @cached cache deferreds rather than the deferreds' valuesErik Johnston2015-08-061-4/+7
|
* Caches should be bound to instances.Erik Johnston2015-06-032-36/+50
| | | | | Before, caches were global and so different instances of the stores would share caches. This caused problems in the unit tests.
* Fix daedlockErik Johnston2015-05-151-1/+2
|
* Add support for using executemanyErik Johnston2015-05-051-2/+2
|
* Fix tests after commit 9a0579Erik Johnston2015-04-081-0/+6
|
* Merge branch 'develop' of github.com:matrix-org/synapse into mysqlErik Johnston2015-04-072-54/+421
|\
| * Use a sender localpart instead of a user ID.Kegan Dougal2015-03-311-2/+2
| | | | | | | | | | Form the user ID at runtime instead, This gives less room for error in AS config files since they cannot specify the domain of another HS.
| * Edit SQL schema to use string IDs not ints. Use token as ID. Update tests.Kegan Dougal2015-03-311-15/+23
| |
| * Fix tests and missing returns on deferreds.Kegan Dougal2015-03-311-12/+29
| |
| * Remove more reg/unreg methods. Read config not database for cache.Kegan Dougal2015-03-311-39/+0
| |
| * Merge branch 'develop' into application-services-txn-reliabilityKegan Dougal2015-03-263-3/+75
| |\ | | | | | | | | | | | | Conflicts: synapse/storage/__init__.py
| | * Allow a choice of LRU behaviour for Cache() by using LruCache() or OrderedDict()Paul "LeoNerd" Evans2015-03-251-0/+22
| | |
| | * Unit-test that Cache() key eviction is orderedPaul "LeoNerd" Evans2015-03-251-0/+18
| | |
| | * Pull out the cache logic from the @cached wrapper into its own class we can ↵Paul "LeoNerd" Evans2015-03-201-1/+33
| | | | | | | | | | | | reuse
| * | Use event IDs instead of dumping event content in the txns table.Kegan Dougal2015-03-091-13/+17
| | |
| * | Finish appservice txn storage impl and tests.Kegan Dougal2015-03-091-0/+68
| | |
| * | Implement create_appservice_txn with tests.Kegan Dougal2015-03-091-0/+67
| | |
| * | Partially implement txn store methods with tests.Kegan Dougal2015-03-091-2/+169
| | |
* | | Make work in both Maria and SQLite. Fix testsErik Johnston2015-04-014-37/+45
| |/ |/|
* | Tidy up _simple_... methodsErik Johnston2015-03-202-2/+2
|/
* Add more unit tests for exclusive namespaces.Kegan Dougal2015-02-271-1/+1
|
* Update unit tests to use new format.Kegan Dougal2015-02-271-3/+9
|
* Use cache.pop() instead of a separate membership test + del []Paul "LeoNerd" Evans2015-02-231-0/+7
|
* Allow @cached-wrapped functions to have a prefill method for setting entriesPaul "LeoNerd" Evans2015-02-231-0/+14
|
* Take named arguments to @cached() decorator, add a 'max_entries' limitPaul "LeoNerd" Evans2015-02-191-0/+89
|
* Fix tests which broke when event caching was introduced.Kegan Dougal2015-02-111-1/+4
|
* Merge branch 'develop' into application-servicesKegan Dougal2015-02-119-86/+21
|\
| * Add a cache for get_eventMark Haines2015-02-111-2/+3
| |
| * Factor out some of the common homeserver setup code into aMark Haines2015-02-119-84/+18
| | | | | | | | setup_test_homeserver function in utils.
* | Add hs_token column and generate a different token f.e application service.Kegan Dougal2015-02-051-4/+6
| |
* | Fix bug in store defer. Add more unit tests.Kegan Dougal2015-02-041-0/+105
|/
* Extract the id token of the token when authing users, include the token and ↵Mark Haines2015-01-281-2/+8
| | | | device_id in the internal meta data for the event along with the transaction id when sending events
* Replace hs.parse_roomalias with RoomAlias.from_stringMark Haines2015-01-232-4/+4
|
* Replace hs.parse_roomid with RoomID.from_stringMark Haines2015-01-235-11/+12
|
* Replace hs.parse_userid with UserID.from_stringMark Haines2015-01-236-11/+17
|
* Fix manifest. Ignore contrib and docs directories when checking manifest ↵Mark Haines2015-01-221-5/+0
| | | | against source control.
* Remove unused functionsMark Haines2015-01-131-11/+0
|
* Kill off synapse.api.events.*Erik Johnston2014-12-164-27/+20
|
* Fix prev_contentErik Johnston2014-12-111-3/+2
|
* Fix redaction testsErik Johnston2014-12-111-6/+8
|
* Fix redactions. Fix 'age' keyErik Johnston2014-12-111-3/+3
|
* Fix some testsErik Johnston2014-12-103-120/+110
|
* SYN-163: Add an order by rowid to selects.Erik Johnston2014-11-241-4/+8
| | | | | | | This should fix the bug where the edges of the graph get returned in a different order than they were inserted in, and so no get_event no longer returned the exact same JSON as was inserted. This meant that signature checks failed.
* Fix SQLBaseStoreTestCaseErik Johnston2014-11-101-1/+1
|
* Fix stream test.Erik Johnston2014-11-101-5/+12
|
* Fix room_member storage testErik Johnston2014-11-101-0/+2
|
* Fix redaction storage testErik Johnston2014-11-101-0/+4
|
* Fix a couple more storage testsErik Johnston2014-11-052-16/+32
|
* Remove stale testsErik Johnston2014-11-051-2/+2
|
* Fix redaction storage testErik Johnston2014-11-051-0/+12
|
* SYN-2: Allow server admins to delete room aliasesErik Johnston2014-09-301-4/+21
|
* Unbreak tests after changing storage APIErik Johnston2014-09-291-2/+2
|
* Rename redaction test case to something helpfulErik Johnston2014-09-251-1/+1
|
* More tests.Erik Johnston2014-09-251-1/+82
|
* Add test for redactionsErik Johnston2014-09-251-0/+181
|
* Test that prev_content get's added if there is a prev_state key (in the ↵Erik Johnston2014-09-191-17/+70
| | | | event stream).
* SYN-47: Fix bug where we still returned events for rooms we had left.Erik Johnston2014-09-191-0/+173
| | | | SYN-47 #resolve
* Remark on remaining storage modules that still need unit testsPaul "LeoNerd" Evans2014-09-171-0/+5
|
* Neaten more of the storage layer tests with assertObjectHasAttributes; more ↵Paul "LeoNerd" Evans2014-09-173-20/+22
| | | | standardisation on test layout
* Unit tests for (some) room events via the RoomStorePaul "LeoNerd" Evans2014-09-171-0/+85
|
* Use new assertObjectHasAttributes() in tests/storage/test_room.pyPaul "LeoNerd" Evans2014-09-171-3/+6
|
* More RoomStore testsPaul "LeoNerd" Evans2014-09-171-4/+40
|
* Initial pass at a RoomStore testPaul "LeoNerd" Evans2014-09-151-0/+53
|
* Also unittest RoomMemberStore's joined_hosts_for_room()Paul "LeoNerd" Evans2014-09-151-0/+48
|
* Use new 'tests.unittest' in new storage level testsPaul "LeoNerd" Evans2014-09-155-5/+5
|
* Merge remote-tracking branch 'origin/develop' into test-sqlite-memoryPaul "LeoNerd" Evans2014-09-151-1/+1
|\
| * Have all unit tests import from our own subclass of trial's unittest ↵Paul "LeoNerd" Evans2014-09-121-1/+1
| | | | | | | | TestCase; set up logging in ONE PLACE ONLY
* | Initial hack at some RoomMemberStore unit testsPaul "LeoNerd" Evans2014-09-121-0/+109
| |
* | Unit-test for RegistrationStore using SQLiteMemoryDbPoolPaul "LeoNerd" Evans2014-09-111-0/+69
| |
* | Need to prepare() the SQLiteMemoryDbPool before passing it to HomeServer ↵Paul "LeoNerd" Evans2014-09-113-9/+12
| | | | | | | | constructor, as DataStore's constructor will want it ready
* | Added unit tests of DirectoryStorePaul "LeoNerd" Evans2014-09-111-0/+66
| |
* | Added unit tests for PresenceDataStore tooPaul "LeoNerd" Evans2014-09-102-2/+166
| |
* | Remember to kill now-dead import in test_profile.pyPaul "LeoNerd" Evans2014-09-101-1/+0
| |
* | Move SQLiteMemoryDbPool implementation into tests.utilsPaul "LeoNerd" Evans2014-09-101-27/+1
| |
* | It's considered polite to actually wait for DB prepare before running testsPaul "LeoNerd" Evans2014-09-101-1/+4
| |
* | Also test avatar_url profile fieldPaul "LeoNerd" Evans2014-09-101-0/+14
| |
* | Tiny trivial PoC unit-test using SQLite in :memory: modePaul "LeoNerd" Evans2014-09-101-0/+78
|/
* 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.
* 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-122-0/+191