Commit graph

2637 commits

Author SHA1 Message Date
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
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
Devon Hudson d1121643f4
Move fake federation database to it's own file 2022-12-13 13:43:07 -07:00
Kento Okamoto 76db8e90de
Dendrite Documentation Fix (#2913)
### Pull Request Checklist

<!-- Please read
https://matrix-org.github.io/dendrite/development/contributing before
submitting your pull request -->
I was reading through the Dendrite documentation on
https://matrix-org.github.io/dendrite/development/contributing and
noticed the installation link leads to a 404 error. This link works fine
if it is viewed directly from
[docs/CONTRIBUTING.md](https://github.com/matrix-org/dendrite/blob/main/docs/CONTRIBUTING.md)
but this might not be very obvious to new contributors who are reading
through the [contribution
page](https://matrix-org.github.io/dendrite/development/contributing)
directly.

This PR is mainly a small re-organization of the online documentation
mainly in the
[Development](https://matrix-org.github.io/dendrite/development) tab
along with any links throughout the doc that may be impacted by the
change. This does not contain any Go unit tests as this does not
actually touch core dendrite functionality.

* [ ] I have added Go unit tests or [Complement integration
tests](https://github.com/matrix-org/complement) for this PR _or_ I have
justified why this PR doesn't need tests
* [x] Pull request includes a [sign off below using a legally
identifiable
name](https://matrix-org.github.io/dendrite/development/contributing#sign-off)
_or_ I have already signed off privately

Signed-off-by: `Kento Okamoto <kentokamoto@proton.me>`
2022-12-12 16:46:37 +00:00
Till 7d2344049d
Cleanup stale device lists for users we don't share a room with anymore (#2857)
The stale device lists table might contain entries for users we don't
share a room with anymore. This now asks the roomserver about left users
and removes those entries from the table.

Co-authored-by: Neil Alexander <neilalexander@users.noreply.github.com>
2022-12-12 08:20:59 +01:00
Devon Hudson 7922244092
Add note about restarting pinecone demos after s&f database manipulation 2022-12-09 14:12:19 -07:00
Devon Hudson ee8a1c5680
Rename mailserver to relay server 2022-12-09 13:06:16 -07:00
Devon Hudson 0ffa0a5317
Add store & forward instructions to the pinecone demo 2022-12-09 12:27:01 -07:00
Devon Hudson 2f79a2ef60
Add store & forward architecture information 2022-12-09 12:05:07 -07:00