Commit Graph

338 Commits (c9f11d09fc85470cf9a36909104734a3682c4b39)

Author SHA1 Message Date
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
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
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 79fe6083eb Test ProfileHandler against the real datastore layer using SQLite :memory: 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
Paul "LeoNerd" Evans da3e04df8b Rename the 'do_users_share_a_room' to something slightly less verb-sounding 10 years ago
Mark Haines cdd8602e74 Fix tests to support ratelimiting 10 years ago
Paul "LeoNerd" Evans 7e22afbc7c Ensure that event source unit tests could cope with get_new_events_for_user() returning a Deferred 10 years ago
Paul "LeoNerd" Evans 270d302834 Reënable presence visibility permission checking now it's not used on redundant code paths 10 years ago
Erik Johnston 3f5ebccbff Fix the tests to include new db calls 10 years ago
Paul "LeoNerd" Evans 468d94c920 Rename API-visible 'mtime' presence field to 'last_active'; slightly different semantics 10 years ago
Paul "LeoNerd" Evans 02f4e3b3ff Rename 'state' presence key to the much more obvious 'presence'; maintain a legacy 'state' copy for now 10 years ago
Matthew Hodgson 8fe912d95c change the world: make the default matrix API URL prefix /_matrix rather than /matrix to make it easier for existing websites to mount a HS in their namespace without collisions. 10 years ago
Paul "LeoNerd" Evans 93407cf7cf Bugfixes on presence pushes on user joining: 10 years ago
Erik Johnston 5dd38d579b Fix a couple of bugs in presence handler related to pushing updatesto the correct user. Fix presence tests. 10 years ago
Paul "LeoNerd" Evans efc5f3440d Only send presence "poll"/"unpoll" EDUs when changing from/to zero remotes 10 years ago
Paul "LeoNerd" Evans c46c806126 Re-enable presence, un-skip presence tests 10 years ago
Mark Haines 7b079a26a5 Remove get_state_for_room function from federation handler 10 years ago
Paul "LeoNerd" Evans d027e859cd Fix up the various presence-related tests so that if they're not skipped, they still PASS 10 years ago
Erik Johnston e111a06e0a Fix tests. 10 years ago
Mark Haines a0d1f5a014 Start updating state handling to use snapshots 10 years ago
Mark Haines a03c7f27a8 Fill out prev_events before calling persist_event 10 years ago
Paul "LeoNerd" Evans 5eff05a4ce Initial typing notification support - EDU federation, but no timers, and no actual push to clients 10 years ago
Mark Haines d2798de660 Fold federation/handler into handlers/federation 10 years ago
Kegan Dougal 8bd55cfdcb Fix ALL THE UNIT TESTS 10 years ago
Mark Haines 104808107a skip presence tests which broke when presence polling was disabled 10 years ago
Mark Haines 1379dcae6f Take a snapshot of the state of the room before performing updates 10 years ago
Paul "LeoNerd" Evans 583add34fe Use the "collect_presencelike_data" distributor signal instead of re-implementing its behaviour 10 years ago
Erik Johnston d100ac8c82 Fix test. get_joined_hosts_for_room get's called multiple times 10 years ago
Erik Johnston 5c4c591c61 Fix federation test, since we now hit store.get_room 10 years ago
Erik Johnston 41333452e5 Update tests 10 years ago
Paul "LeoNerd" Evans d7cfb91a7a Rewrite of PresenceHandler test to ensure it covers the interaction with Federation as well 10 years ago
Paul "LeoNerd" Evans 83f031207e Implement and test presence dropping of remote users 10 years ago
Paul "LeoNerd" Evans faf25e3a83 Allow room presence visibility between users who share a room 10 years ago
Erik Johnston f5fca6f787 Fix some of the tests to reflect changes in the storage layer. 10 years ago
Kegan Dougal 9a1638ed21 Removed http_server from HomeServer. Updated unit tests to use either resource_for_federation or resource_for_client depending on what is being tested. 10 years ago
Paul "LeoNerd" Evans d05aa651f8 An initial hack at storing presence state-change mtimes in database and presenting age durations to clients/federation events 10 years ago
Paul "LeoNerd" Evans eef58a299e Don't mock out presence_handler's internal start/stop methods in presencelike unit test; it's rude 10 years ago
Paul "LeoNerd" Evans 3a1cfe18cf Implement directory service federation by Federation Queries; avoid local_only hack; add unit tests 10 years ago
Paul "LeoNerd" Evans 505917cb97 Use new Federation Query API to implement HS->HS fetching of remote users' profile information instead of (ab)using the client-side REST API 10 years ago