Erik Johnston
|
1616df2f61
|
Fix typing tests
|
2014-11-05 11:15:56 +00:00 |
|
Erik Johnston
|
c670ce416b
|
Fix room tests
|
2014-11-05 11:15:15 +00:00 |
|
Erik Johnston
|
f48fce8bd3
|
Fix profile tests
|
2014-11-05 11:13:58 +00:00 |
|
Erik Johnston
|
24e2da4557
|
Fix presencelike test
|
2014-11-05 11:13:01 +00:00 |
|
Erik Johnston
|
416ab4ebf0
|
Don't execute empty tests. Formatting.
|
2014-11-05 11:12:47 +00:00 |
|
Erik Johnston
|
34c4614682
|
Fix presence test
|
2014-11-05 11:10:54 +00:00 |
|
Erik Johnston
|
9e429239ab
|
Fix Federation test
|
2014-11-05 11:10:36 +00:00 |
|
Erik Johnston
|
4a5e95511e
|
PEP8
|
2014-11-04 17:13:21 +00:00 |
|
Erik Johnston
|
dfb3d21a6d
|
Fix room handler tests
|
2014-11-04 17:12:39 +00:00 |
|
Erik Johnston
|
b0554682ed
|
Fix federation handler tests. I've removed the invite/join dance ones as they are completely out of date.
|
2014-11-04 16:51:59 +00:00 |
|
Erik Johnston
|
7f4c7fe4e8
|
PEP8
|
2014-11-04 16:35:38 +00:00 |
|
Erik Johnston
|
dd3711bdbd
|
Fix tests.handlers.test_directory
|
2014-11-04 16:33:52 +00:00 |
|
Erik Johnston
|
b15e8d5bbc
|
event <-> pdu mappings are now trivial and will soon be scrapped
|
2014-11-04 16:20:02 +00:00 |
|
Erik Johnston
|
24305ba5bf
|
Fix up federation tests
|
2014-11-04 16:15:30 +00:00 |
|
Erik Johnston
|
ef9c4476a0
|
Merge branch 'develop' of github.com:matrix-org/synapse into federation_authorization
|
2014-10-30 11:18:28 +00:00 |
|
Mark Haines
|
7c06399512
|
Merge branch 'develop' into request_logging
Conflicts:
synapse/config/logger.py
|
2014-10-30 11:13:58 +00:00 |
|
Mark Haines
|
b29517bd01
|
Add a request-id to each log line
|
2014-10-30 01:21:33 +00:00 |
|
Paul "LeoNerd" Evans
|
b1ee6fd7ed
|
Fix an off-by-one bug in presence event stream pagination; this might be responsible for any number of bug reports
|
2014-10-29 16:16:01 +00:00 |
|
Mark Haines
|
dc3c2823ac
|
Merge branch 'develop' into event_signing
Conflicts:
synapse/federation/replication.py
|
2014-10-17 17:33:58 +01:00 |
|
Mark Haines
|
82c5820767
|
keep 'origin_server_ts' as 'ts' in the database to avoid needlessly updating schema
|
2014-10-17 17:31:48 +01:00 |
|
Mark Haines
|
f5cf7ac25b
|
SPEC-7: Rename 'ts' to 'origin_server_ts'
|
2014-10-17 17:12:25 +01:00 |
|
Mark Haines
|
bb04447c44
|
Include hashes of previous pdus when referencing them
|
2014-10-16 23:25:12 +01:00 |
|
Mark Haines
|
66104da10c
|
Sign outgoing PDUs.
|
2014-10-16 00:09:48 +01:00 |
|
Mark Haines
|
1c445f88f6
|
persist hashes and origin signatures for PDUs
|
2014-10-15 17:09:04 +01:00 |
|
Mark Haines
|
9aed791fc3
|
SYN-103: Ignore the 'origin' key in received EDUs. Instead take the origin from the transaction itself
|
2014-10-14 16:44:27 +01:00 |
|
Mark Haines
|
25d80f35f1
|
Raise a SynapseError if the authorisation header is missing or malformed
|
2014-10-13 15:53:18 +01:00 |
|
Mark Haines
|
6684855767
|
Verify signatures for server2server requests
|
2014-10-13 14:37:46 +01:00 |
|
Mark Haines
|
10ef8e6e4b
|
SYN-75 sign at the request level rather than the transaction level
|
2014-10-13 11:49:55 +01:00 |
|
Mark Haines
|
984e207b59
|
Merge branch develop into server2server_signing
Conflicts:
synapse/app/homeserver.py
|
2014-10-13 10:58:50 +01:00 |
|
Kegan Dougal
|
868eb478d8
|
Fixed test.
|
2014-10-09 15:55:07 +01:00 |
|
Kegan Dougal
|
3db09c4d15
|
Still broken.
|
2014-10-09 15:53:40 +01:00 |
|
Kegan Dougal
|
83c53113af
|
Break a test.
|
2014-10-09 15:51:05 +01:00 |
|
Kegan Dougal
|
72aef114ab
|
Fix unit test.
|
2014-10-08 15:18:19 +01:00 |
|
Kegan Dougal
|
6045bd89fb
|
Break unit test.
|
2014-10-08 15:16:03 +01:00 |
|
Mark Haines
|
574377636e
|
Add a keyword argument to get_json to avoid retrying on DNS failures. Rather than passing MatrixHttpClient.RETRY_DNS_LOOKUP_FAILURES as a fake query string parameter
|
2014-10-02 14:26:13 +01:00 |
|
Mark Haines
|
4f11518934
|
Split PlainHttpClient into separate clients for talking to Identity servers and talking to Capatcha servers
|
2014-10-02 14:03:26 +01:00 |
|
Mark Haines
|
9605593d11
|
Merge branch 'develop' into server2server_signing
Conflicts:
synapse/storage/__init__.py
tests/rest/test_presence.py
|
2014-09-30 17:55:06 +01:00 |
|
Mark Haines
|
b95a178584
|
SYN-75 Verify signatures on server to server transactions
|
2014-09-30 15:15:10 +01:00 |
|
Erik Johnston
|
e06adc6d7e
|
SYN-2: Allow server admins to delete room aliases
|
2014-09-30 11:31:42 +01:00 |
|
Erik Johnston
|
d96cb61f26
|
Unbreak tests after changing storage API
|
2014-09-29 15:35:57 +01:00 |
|
Erik Johnston
|
0fdf308874
|
Track the IP users connect with. Add an admin column to users table.
|
2014-09-26 16:36:24 +01:00 |
|
Erik Johnston
|
37bfe44046
|
Merge branch 'deletions' of github.com:matrix-org/synapse into develop
|
2014-09-25 17:02:53 +01:00 |
|
Erik Johnston
|
72e80dbe0e
|
Rename redaction test case to something helpful
|
2014-09-25 15:52:23 +01:00 |
|
Erik Johnston
|
59f2bef187
|
Fix test where we changed arguments used to call the notifier
|
2014-09-25 13:04:33 +01:00 |
|
Erik Johnston
|
24e4c48468
|
More tests.
|
2014-09-25 10:19:16 +01:00 |
|
Erik Johnston
|
2721f5ccc9
|
Add test for redactions
|
2014-09-25 10:02:20 +01:00 |
|
Mark Haines
|
52ca867670
|
Sign federation transactions
|
2014-09-24 17:25:41 +01:00 |
|
Erik Johnston
|
3d2cca6762
|
Fix test.
|
2014-09-24 11:17:43 +01:00 |
|
Erik Johnston
|
dcc1965bfe
|
Test that prev_content get's added if there is a prev_state key (in the event stream).
|
2014-09-19 16:44:16 +01:00 |
|
Erik Johnston
|
28bcd01e8d
|
SYN-47: Fix bug where we still returned events for rooms we had left.
SYN-47 #resolve
|
2014-09-19 14:45:21 +01:00 |
|
Erik Johnston
|
335e5d131c
|
Merge branch 'test-sqlite-memory' of github.com:matrix-org/synapse into develop
Conflicts:
tests/handlers/test_profile.py
|
2014-09-18 14:31:47 +01:00 |
|
Paul "LeoNerd" Evans
|
4571cf7baa
|
Merge branch 'develop' into test-sqlite-memory
|
2014-09-17 18:27:47 +01:00 |
|
Paul "LeoNerd" Evans
|
bfae582fa3
|
Remark on remaining storage modules that still need unit tests
|
2014-09-17 18:27:30 +01:00 |
|
Paul "LeoNerd" Evans
|
bcf5121937
|
Neaten more of the storage layer tests with assertObjectHasAttributes; more standardisation on test layout
|
2014-09-17 16:58:59 +01:00 |
|
Paul "LeoNerd" Evans
|
b588ce920d
|
Unit tests for (some) room events via the RoomStore
|
2014-09-17 16:31:11 +01:00 |
|
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 |
|
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.
|
2014-09-17 15:05:14 +01:00 |
|
Paul "LeoNerd" Evans
|
e32cfed1d8
|
Initial pass at a RoomStore test
|
2014-09-15 18:41:24 +01:00 |
|
Erik Johnston
|
59516a8bb1
|
Correctly handle receiving 'missing' Pdus from federation, rather than just discarding them.
|
2014-09-15 16:40:44 +01:00 |
|
Erik Johnston
|
0897a09f49
|
Fix unit tests after adding extra argument on put_json
|
2014-09-15 16:24:03 +01:00 |
|
Kegan Dougal
|
2c00e1ecd9
|
Be consistent when associating keys with login types for registration/login.
|
2014-09-15 15:38:29 +01:00 |
|
Kegan Dougal
|
c04caff55c
|
Fix unit tests.
|
2014-09-15 15:14:19 +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 |
|