Paul "LeoNerd" Evans
|
ba41ca45fa
|
Use new assertObjectHasAttributes() in tests/storage/test_room.py
|
2014-09-17 16:04:05 +01:00 |
|
Paul "LeoNerd" Evans
|
7aacd6834a
|
Added a useful unit test primitive for asserting object attributes
|
2014-09-17 15:56:40 +01:00 |
|
Paul "LeoNerd" Evans
|
de14853237
|
More RoomStore tests
|
2014-09-17 15:33:10 +01:00 |
|
Paul "LeoNerd" Evans
|
e32cfed1d8
|
Initial pass at a RoomStore test
|
2014-09-15 18:41:24 +01:00 |
|
Paul "LeoNerd" Evans
|
1aaa429081
|
Also unittest RoomMemberStore's joined_hosts_for_room()
|
2014-09-15 15:00:14 +01:00 |
|
Paul "LeoNerd" Evans
|
ae7dfeb5b6
|
Use new 'tests.unittest' in new storage level tests
|
2014-09-15 14:19:16 +01:00 |
|
Paul "LeoNerd" Evans
|
b0406b9ead
|
Merge remote-tracking branch 'origin/develop' into test-sqlite-memory
|
2014-09-15 14:15:10 +01:00 |
|
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
|
2014-09-12 19:07:29 +01:00 |
|
Paul "LeoNerd" Evans
|
aeb69c0f8c
|
Add some docstrings
|
2014-09-12 18:46:13 +01:00 |
|
Paul "LeoNerd" Evans
|
d9f3f322c5
|
Additionally look first for a 'loglevel' attribute on the running test method, before the TestCase
|
2014-09-12 18:46:13 +01:00 |
|
Paul "LeoNerd" Evans
|
33c4dd4c2d
|
Define a (class) decorator for easily setting a DEBUG logging level on a TestCase
|
2014-09-12 18:46:13 +01:00 |
|
Paul "LeoNerd" Evans
|
ca8349a897
|
Allow a TestCase to set a 'loglevel' attribute, which overrides the logging level while that testcase runs
|
2014-09-12 18:46:13 +01:00 |
|
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
|
2014-09-12 18:46:13 +01:00 |
|
Paul "LeoNerd" Evans
|
1c51c8ab7d
|
Merge remote-tracking branch 'origin/develop' into test-sqlite-memory
Conflicts:
synapse/storage/pdu.py
|
2014-09-12 17:20:06 +01:00 |
|
Erik Johnston
|
39e3fc69e5
|
Make the state resolution use actual power levels rather than taking them from a Pdu key.
|
2014-09-12 17:11:09 +01:00 |
|
Paul "LeoNerd" Evans
|
2026942b05
|
Initial hack at some RoomMemberStore unit tests
|
2014-09-12 16:44:07 +01:00 |
|
Paul "LeoNerd" Evans
|
3d6aee079e
|
Unit-test for RegistrationStore using SQLiteMemoryDbPool
|
2014-09-11 17:44:00 +01:00 |
|
Paul "LeoNerd" Evans
|
fb93a4a9e3
|
Perform PresenceInvitesTestCase against real SQLiteMemoryDbPool
|
2014-09-11 16:22:44 +01:00 |
|
Paul "LeoNerd" Evans
|
493b1e6d3c
|
Need to prepare() the SQLiteMemoryDbPool before passing it to HomeServer constructor, as DataStore's constructor will want it ready
|
2014-09-11 15:21:15 +01:00 |
|
Paul "LeoNerd" Evans
|
4385eadc28
|
Start of converting PresenceHandler unit tests to use SQLiteMemoryDbPool - just the 'State' test case for now
|
2014-09-11 13:57:17 +01:00 |
|
Paul "LeoNerd" Evans
|
d13d0bba51
|
Unit-test DirectoryHandler against (real) SQLite memory store, not mocked storage layer
|
2014-09-11 11:59:48 +01:00 |
|
Paul "LeoNerd" Evans
|
d83202b938
|
Added unit tests of DirectoryStore
|
2014-09-11 11:32:46 +01:00 |
|
Paul "LeoNerd" Evans
|
79fe6083eb
|
Test ProfileHandler against the real datastore layer using SQLite :memory:
|
2014-09-10 18:11:32 +01:00 |
|
Paul "LeoNerd" Evans
|
dd1a9100c5
|
Added unit tests for PresenceDataStore too
|
2014-09-10 17:51:05 +01:00 |
|
Paul "LeoNerd" Evans
|
dc7f39677f
|
Remember to kill now-dead import in test_profile.py
|
2014-09-10 16:56:52 +01:00 |
|
Paul "LeoNerd" Evans
|
08f5c48fc8
|
Move SQLiteMemoryDbPool implementation into tests.utils
|
2014-09-10 16:56:02 +01:00 |
|
Paul "LeoNerd" Evans
|
9774949cc9
|
It's considered polite to actually wait for DB prepare before running tests
|
2014-09-10 16:50:09 +01:00 |
|
Paul "LeoNerd" Evans
|
53d0f69dc3
|
Also test avatar_url profile field
|
2014-09-10 16:49:34 +01:00 |
|
Paul "LeoNerd" Evans
|
6081f4947e
|
Tiny trivial PoC unit-test using SQLite in :memory: mode
|
2014-09-10 16:42:31 +01:00 |
|
Erik Johnston
|
942d8412c4
|
Handle the case where we don't have a common ancestor
|
2014-09-08 20:13:27 +01:00 |
|
Erik Johnston
|
83ce57302d
|
Fix bug in state handling where we incorrectly identified a missing pdu. Update tests to catch this case.
|
2014-09-08 19:50:59 +01:00 |
|
Erik Johnston
|
ea5b5b1f64
|
Fix state unit test
|
2014-09-06 07:44:00 +01:00 |
|
Kegan Dougal
|
027f51763e
|
Unit tests do not need captchas.
|
2014-09-05 23:41:18 -07:00 |
|
Erik Johnston
|
34a7f0ca93
|
Fix test to assert that we don't do auth
|
2014-09-03 19:13:29 +01:00 |
|
Matthew Hodgson
|
8a7c1d6a00
|
fix the copyright holder from matrix.org to OpenMarket Ltd, as matrix.org hasn't been incorporated in time for launch.
|
2014-09-03 17:31:57 +01:00 |
|
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.
|
2014-09-03 16:04:27 +01:00 |
|
Paul "LeoNerd" Evans
|
cda31fb755
|
Kill the state
... key from all the Presence messages
|
2014-09-03 15:37:10 +01:00 |
|
Kegan Dougal
|
7fc84c7019
|
Make retrying requests on DNS failures configurable, and turn off retrying only in directory.get_association
|
2014-09-03 14:26:52 +01:00 |
|
Paul "LeoNerd" Evans
|
da31b96b55
|
Implement presence state visibilty limiting when polling eventsource for stream
|
2014-09-03 13:46:52 +01:00 |
|
Paul "LeoNerd" Evans
|
86d6232236
|
Don't eat federation transmit errors during unit tests; fix remote presence EDU-sending test because of this
|
2014-09-03 13:46:52 +01:00 |
|
Paul "LeoNerd" Evans
|
da3e04df8b
|
Rename the 'do_users_share_a_room' to something slightly less verb-sounding
|
2014-09-03 10:40:48 +01:00 |
|
Paul "LeoNerd" Evans
|
967b45bc1a
|
Allow optional non-suppression of exceptions through the Distributor
|
2014-09-03 10:40:21 +01:00 |
|
Mark Haines
|
cdd8602e74
|
Fix tests to support ratelimiting
|
2014-09-03 09:15:22 +01:00 |
|
Mark Haines
|
dd2cd9312a
|
Test ratelimiter
|
2014-09-02 15:16:26 +01:00 |
|
Erik Johnston
|
a808c06a10
|
Fix room permissions test
|
2014-09-02 11:03:03 +01:00 |
|
Paul "LeoNerd" Evans
|
7e22afbc7c
|
Ensure that event source unit tests could cope with get_new_events_for_user() returning a Deferred
|
2014-09-02 10:53:16 +01:00 |
|
Paul "LeoNerd" Evans
|
270d302834
|
Reënable presence visibility permission checking now it's not used on redundant code paths
|
2014-09-01 22:15:02 +01:00 |
|
Erik Johnston
|
3f5ebccbff
|
Fix the tests to include new db calls
|
2014-09-01 19:57:17 +01:00 |
|
Paul "LeoNerd" Evans
|
59d3955db1
|
Have MemoryDataStore's get_rooms_for_user_where_membership_is() return room membership event objects, as per interface contract
|
2014-09-01 16:15:45 +01:00 |
|
Paul "LeoNerd" Evans
|
fd696f1243
|
Perform room unit tests with 'local' users actually in the right domain ;)
|
2014-09-01 15:58:30 +01:00 |
|