Commit graph

2644 commits

Author SHA1 Message Date
Devon Hudson be43dfe5e0
Add test for federation query profile endpoint 2022-12-23 10:17:26 -07:00
Devon Hudson 8b53cdce57
Add test for federation query directory endpoint 2022-12-23 10:08:03 -07:00
Devon Hudson f18a838297
Add test for federation send endpoint 2022-12-23 09:14:24 -07:00
Devon Hudson a5e012eda9
Merge branch 'main' into mailbox 2022-12-23 08:21:02 -07:00
Devon Hudson b417a09b07
Add fed query relay servers test 2022-12-23 08:04:14 -07:00
Devon Hudson f76336151c
Add fed wakeup servers test 2022-12-23 07:53:56 -07:00
Till e449d174cc
Add possibility to run complement with coverage enabled (#2901)
This adds the possibility to run Complement with coverage enabled.
In combination with https://github.com/matrix-org/complement/pull/566 we
should then be able to extract the coverage logs, combine them with
https://github.com/wadey/gocovmerge (or similar) and upload them to
Codecov (with different flags, depending on SQLite, HTTP etc.)
2022-12-23 14:28:15 +01:00
Till f762ce1050
Add clientapi tests (#2916)
This PR
- adds several tests for the clientapi, mostly around `/register` and
auth fallback.
- removes the now deprecated `homeserver` field from responses to
`/register` and `/login`
- slightly refactors auth fallback handling
2022-12-23 14:11:11 +01:00
Till f47515e38b
Pushrule tweaks, make pattern non-optional on EventMatchCondition (#2918)
This should fix https://github.com/matrix-org/dendrite/issues/2882
(Tested with FluffyChat 1.7.1)
Also adds tests that the predefined push rules (as per the spec) is what
we have in Dendrite.
2022-12-23 12:52:47 +01:00
Devon Hudson 691c29180f
Flush out txn request pdu failure case testing 2022-12-22 16:38:03 -07:00
Devon Hudson 4d523a6353
Add tests for internal relayapi http interface 2022-12-22 15:35:39 -07:00
Devon Hudson 643ae6f45f
Add failure cases tests to txn requests 2022-12-22 14:57:54 -07:00
Devon Hudson 5f8f6585be
Add tests for transaction request edus 2022-12-22 13:19:03 -07:00
Devon Hudson ead825b1bf
Add fed storage tests for assumed offline & relay servers 2022-12-22 10:38:34 -07:00
Devon Hudson 9a159e3ae0
Consolidate relay servers table prepare statements 2022-12-22 10:05:23 -07:00
Devon Hudson 6c47069b0b
Remove duplicate db statement prepares 2022-12-22 09:47:26 -07:00
Devon Hudson e5feacbfc0
Consolidate relay db prepare statements 2022-12-22 09:42:56 -07:00
Devon Hudson e83068e079
Remove unused events from pinecone monolith handling 2022-12-22 09:42:16 -07:00
Devon Hudson eaa09f0d82
Goimports config test imports 2022-12-22 08:26:13 -07:00
devonh 044f1d1f37
Merge branch 'main' into mailbox 2022-12-22 15:22:41 +00:00
Devon Hudson 13cb10f44a
Fix Transaction request pdus for full path testing 2022-12-22 08:14:55 -07:00
Till 5eed31fea3
Handle guest access [1/2?] (#2872)
Needs https://github.com/matrix-org/sytest/pull/1315, as otherwise the
membership events aren't persisted yet when hitting `/state` after
kicking guest users.

Makes the following tests pass:
```
Guest users denied access over federation if guest access prohibited
Guest users are kicked from guest_access rooms on revocation of guest_access
Guest users are kicked from guest_access rooms on revocation of guest_access over federation
```

Todo (in a follow up PR):
- Restrict access to CS API Endpoints as per
https://spec.matrix.org/v1.4/client-server-api/#client-behaviour-14

Co-authored-by: kegsay <kegan@matrix.org>
2022-12-22 13:05:59 +01:00
Till Faelligen 09dff951d6
More flakey tests 2022-12-22 13:04:32 +01:00
Till d1d2d16738
Fix reset password endpoint (#2921)
Fixes the admin password reset endpoint.
It was using a wrong variable, so could not detect the user.
Adds some more checks to validate we can actually change the password.
2022-12-22 11:54:03 +01:00
Till Faelligen beea2432e6
Fix flakey test 2022-12-22 11:31:54 +01:00
Till d3db542fbf
Add federation peeking table tests (#2920)
As the title says, adds tests for inbound/outbound peeking federation
table tests.

Also removes some unused code
2022-12-22 10:56:20 +01:00
Devon Hudson 4597a5a405
Add basic edu handling test to transaction request 2022-12-21 13:08:35 -07:00
Devon Hudson 95f08c349d
Add initial transaction request unit test 2022-12-21 11:44:55 -07:00
Devon Hudson 05769fa60e
Cleanup new file license headers 2022-12-21 10:42:35 -07:00
Devon Hudson f25986d8fd
Fix race in pinecone monolith tests 2022-12-21 09:13:09 -07:00
Devon Hudson a91e33037c
Add tests for pinecone monolith 2022-12-21 08:26:24 -07:00
Devon Hudson 59a5dd2bfa
Add test coverage for config verification 2022-12-20 10:27:02 -07:00
Devon Hudson 9f27e691fc
Remove unused code from fed send route tests 2022-12-19 15:14:53 -07:00
Devon Hudson 96d5467e03
Cleanup relayapi usage in p2p demos 2022-12-19 14:09:16 -07:00
Devon Hudson 9f7f60e9e2
Update gmsl 2022-12-19 12:29:23 -07:00
Devon Hudson 4f3ef6897a
Remove non-json fields from transaction tests for relayapi 2022-12-19 12:07:57 -07:00
Devon Hudson 81278440db
Remove extra logging in relayapi 2022-12-19 11:37:05 -07:00
Devon Hudson 9f8a78774a
Merge branch 'main' into mailbox 2022-12-19 09:53:10 -07:00
Devon Hudson 30196ef083
Add tests for relayapi http endpoints 2022-12-16 16:13:57 -07:00
Devon Hudson 1f67804db5
Flush out relayapi interface tests 2022-12-16 12:50:52 -07:00
Devon Hudson 21a63203df
Add initial tests for external relayapi interface 2022-12-16 12:39:37 -07:00
Devon Hudson fc365a3e06
Fix relay linter errors 2022-12-16 11:05:33 -07:00
Devon Hudson 0875ba2073
Setup default relayapi config 2022-12-16 11:05:13 -07:00
Devon Hudson bd40d53cbb
Flush out forwardasync tests 2022-12-16 10:34:58 -07:00
Devon Hudson ed42b252ee
Shorten retry count until sending to relay 2022-12-15 14:28:18 -07:00
Devon Hudson 3066bc2e2b
Update gmsl with async_events changes 2022-12-15 14:09:15 -07:00
Devon Hudson 001ee036d0
Change async_events api for reliable querying 2022-12-15 14:05:29 -07:00
Devon Hudson ab57b30883
Delete relay json along with queue entry 2022-12-15 10:41:06 -07:00
Devon Hudson ad53326ce8
Refactor all relay specific stuff into it's own component 2022-12-14 18:41:27 -07:00
Devon Hudson f300a4d0e9
Refactor relay querying 2022-12-14 10:30:30 -07:00