David Teller
3f2039f6a7
Let's use getRequestFn/setRequestFn to keep errors readable
2022-01-07 14:06:10 +01:00
David Teller
9a8fed1695
Slightly cleaner MatrixClient wrapping
2022-01-07 14:06:10 +01:00
David Teller
57746f7fb4
Wrap MatrixClient into something that displays nicer error messages
2022-01-07 14:06:10 +01:00
gnuxie
0bbfe93a4b
Use MSC2313 m.policy.rule.* for rules and always prefer these types.
...
The reason for doing this is because otherwise there may be duplicate
rules under different state types for the same entity.
This simplifies the process of modifying or invalidating rules affecting
an entity because the rule with the most recent type will always be
preferred.
2021-11-29 11:45:22 +00:00
gnuxie
7aee14bf5c
Add test for banList changes
2021-11-29 11:45:22 +00:00
jess
1bf3ecac6d
consistently use 'alias' in ensureAliasedRoomExists ( #155 )
2021-11-19 17:09:58 +00:00
David Teller
a21415a04c
Give the ability to moderators to react quickly to /report abuse reports. ( #137 )
2021-11-09 13:15:49 +01:00
gnuxie
7a20b5a212
Fix helloTest hooks running before global hooks.
2021-10-20 12:11:00 +01:00
gnuxie
c52084c58a
Stop managing client from utils and require the caller to (tests)
...
Specifically `onReactionTo` was starting and stopping the client
argument it was given, which could be problematic if the caller
didn't expect that or didn't want it to.
2021-10-20 11:44:25 +01:00
gnuxie
7773949631
Fix indentation in fixtures.ts
2021-10-20 11:00:44 +01:00
gnuxie
6c1a502f34
Integration tests for redaction commands.
...
This is important now that both timeline pagination and
how the callbacks are now awaited during pagination
have been changed.
2021-10-20 11:00:44 +01:00
gnuxie
4e8315be44
Add regression test for timeline pagination.
2021-10-19 16:28:55 +01:00
David Teller
06e5f00b2d
Intercept /report and display human-readable abuse reports in the moderation room - Resolves #38 ( #135 )
...
* Intercept /report and display human-readable abuse reports in the moderation room - Resolves #38
2021-10-07 14:42:08 +02:00
gnuxie
4d46d4dd34
Move integration test config file
...
it now lives in config/ because it was being loaded there by the tests before it could be copied to there from the test directory
2021-09-30 16:02:58 +01:00
gnuxie
776c1fe063
Tidy logging in integration tests
2021-09-30 15:52:06 +01:00
gnuxie
400af48e6e
Move Mjolnir setup and configuration to a sensible place.
2021-09-27 16:04:01 +01:00
gnuxie
21d79475e3
Add manual launch script for working with mx-tester
2021-09-27 15:33:15 +01:00
gnuxie
b838caee09
Add script for manual testing with mx-tester
2021-09-27 15:33:15 +01:00
gnuxie
0a6b122f5c
Tidy up documentation and test utils
2021-09-27 15:33:15 +01:00
gnuxie
a86afd3cc8
Remove old test harness
2021-09-24 18:25:28 +01:00
gnuxie
ff216f4918
Give mjolnir a clean history in each test
2021-09-24 18:25:28 +01:00
gnuxie
68aa717826
Rework integration tests to work with mx-tester
2021-09-24 18:25:27 +01:00
gnuxie
67e20e2415
Move files in preperation for mx-tester
2021-09-24 18:25:27 +01:00
gnuxie
3a948015d0
missing license header
2021-09-24 18:25:27 +01:00
gnuxie
6a1ce742ae
Add config for test harness.
2021-09-24 18:25:27 +01:00
gnuxie
57ef8ab7fe
Tidy up test harness.
2021-09-24 18:25:27 +01:00
gnuxie
1a1eb5fadd
Basic harness, starts synapse and mjolnir.
2021-09-24 18:25:27 +01:00
gnuxie
7e44cf99c1
Move test harness files to new structure
2021-09-24 18:25:27 +01:00
J. Ryan Stinnett
259cdd8c12
Improve force handling
...
This improves the force argument parsing to keep it from getting glued onto the
reason. It also adjusts tests for the new behaviour.
2021-02-05 17:03:36 +00:00
Travis Ralston
417673aeef
Test for ban reasons as well in autodetection
2019-11-13 21:46:20 -07:00
Travis Ralston
66a5775136
Make the [un]ban command smarter
...
Fixes https://github.com/matrix-org/mjolnir/issues/11
2019-11-13 21:38:19 -07:00