Commit Graph

551 Commits (f9d3665c8841335cd70325dd758b4193c462ca60)

Author SHA1 Message Date
Mark Haines 52ca867670 Sign federation transactions 10 years ago
Erik Johnston 3d2cca6762 Fix test. 10 years ago
Erik Johnston dcc1965bfe Test that prev_content get's added if there is a prev_state key (in the event stream). 10 years ago
Erik Johnston 28bcd01e8d SYN-47: Fix bug where we still returned events for rooms we had left. 10 years ago
Paul "LeoNerd" Evans bfae582fa3 Remark on remaining storage modules that still need unit tests 10 years ago
Paul "LeoNerd" Evans bcf5121937 Neaten more of the storage layer tests with assertObjectHasAttributes; more standardisation on test layout 10 years ago
Paul "LeoNerd" Evans b588ce920d Unit tests for (some) room events via the RoomStore 10 years ago
Paul "LeoNerd" Evans ba41ca45fa Use new assertObjectHasAttributes() in tests/storage/test_room.py 10 years ago
Paul "LeoNerd" Evans 7aacd6834a Added a useful unit test primitive for asserting object attributes 10 years ago
Paul "LeoNerd" Evans de14853237 More RoomStore tests 10 years ago
Erik Johnston b6818fd4d2 SYN-40: When a user updates their displayname or avatar update all their join events for all the rooms they are currently in. 10 years ago
Paul "LeoNerd" Evans e32cfed1d8 Initial pass at a RoomStore test 10 years ago
Erik Johnston 59516a8bb1 Correctly handle receiving 'missing' Pdus from federation, rather than just discarding them. 10 years ago
Erik Johnston 0897a09f49 Fix unit tests after adding extra argument on put_json 10 years ago
Kegan Dougal 2c00e1ecd9 Be consistent when associating keys with login types for registration/login. 10 years ago
Kegan Dougal c04caff55c Fix unit tests. 10 years ago
Paul "LeoNerd" Evans 1aaa429081 Also unittest RoomMemberStore's joined_hosts_for_room() 10 years ago
Paul "LeoNerd" Evans ae7dfeb5b6 Use new 'tests.unittest' in new storage level tests 10 years ago
Paul "LeoNerd" Evans 7a77aabb4b Define a CLOS-like 'around' modifier as a decorator, to neaten up the 'orig_*' noise of wrapping the setUp()/tearDown() methods 10 years ago
Paul "LeoNerd" Evans aeb69c0f8c Add some docstrings 10 years ago
Paul "LeoNerd" Evans d9f3f322c5 Additionally look first for a 'loglevel' attribute on the running test method, before the TestCase 10 years ago
Paul "LeoNerd" Evans 33c4dd4c2d Define a (class) decorator for easily setting a DEBUG logging level on a TestCase 10 years ago
Paul "LeoNerd" Evans ca8349a897 Allow a TestCase to set a 'loglevel' attribute, which overrides the logging level while that testcase runs 10 years ago
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 10 years ago
Erik Johnston 39e3fc69e5 Make the state resolution use actual power levels rather than taking them from a Pdu key. 10 years ago
Paul "LeoNerd" Evans 2026942b05 Initial hack at some RoomMemberStore unit tests 10 years ago
Paul "LeoNerd" Evans 3d6aee079e Unit-test for RegistrationStore using SQLiteMemoryDbPool 10 years ago
Paul "LeoNerd" Evans fb93a4a9e3 Perform PresenceInvitesTestCase against real SQLiteMemoryDbPool 10 years ago
Paul "LeoNerd" Evans 493b1e6d3c Need to prepare() the SQLiteMemoryDbPool before passing it to HomeServer constructor, as DataStore's constructor will want it ready 10 years ago
Paul "LeoNerd" Evans 4385eadc28 Start of converting PresenceHandler unit tests to use SQLiteMemoryDbPool - just the 'State' test case for now 10 years ago
Paul "LeoNerd" Evans d13d0bba51 Unit-test DirectoryHandler against (real) SQLite memory store, not mocked storage layer 10 years ago
Paul "LeoNerd" Evans d83202b938 Added unit tests of DirectoryStore 10 years ago
Paul "LeoNerd" Evans 79fe6083eb Test ProfileHandler against the real datastore layer using SQLite :memory: 10 years ago
Paul "LeoNerd" Evans dd1a9100c5 Added unit tests for PresenceDataStore too 10 years ago
Paul "LeoNerd" Evans dc7f39677f Remember to kill now-dead import in test_profile.py 10 years ago
Paul "LeoNerd" Evans 08f5c48fc8 Move SQLiteMemoryDbPool implementation into tests.utils 10 years ago
Paul "LeoNerd" Evans 9774949cc9 It's considered polite to actually wait for DB prepare before running tests 10 years ago
Paul "LeoNerd" Evans 53d0f69dc3 Also test avatar_url profile field 10 years ago
Paul "LeoNerd" Evans 6081f4947e Tiny trivial PoC unit-test using SQLite in :memory: mode 10 years ago
Erik Johnston 942d8412c4 Handle the case where we don't have a common ancestor 10 years ago
Erik Johnston 83ce57302d Fix bug in state handling where we incorrectly identified a missing pdu. Update tests to catch this case. 10 years ago
Erik Johnston ea5b5b1f64 Fix state unit test 10 years ago
Kegan Dougal 027f51763e Unit tests do not need captchas. 10 years ago
Erik Johnston 34a7f0ca93 Fix test to assert that we don't do auth 10 years ago
Matthew Hodgson 8a7c1d6a00 fix the copyright holder from matrix.org to OpenMarket Ltd, as matrix.org hasn't been incorporated in time for launch. 10 years ago
Erik Johnston 30bcbc433a Fix up directory server to not require uploading room hosts. Update the room hosts table with the current room hosts (if we have them) on GET. 10 years ago
Paul "LeoNerd" Evans cda31fb755 Kill the state 10 years ago
Kegan Dougal 7fc84c7019 Make retrying requests on DNS failures configurable, and turn off retrying only in directory.get_association 10 years ago
Paul "LeoNerd" Evans da31b96b55 Implement presence state visibilty limiting when polling eventsource for stream 10 years ago
Paul "LeoNerd" Evans 86d6232236 Don't eat federation transmit errors during unit tests; fix remote presence EDU-sending test because of this 10 years ago