Damir Jelić
1e30916754
chore: Bump most of our deps
2025-09-01 16:33:10 +02:00
Skye Elliot
baa75368d6
ci: Add feature matrix for integration testing
...
This will resolve a number of transitive dependency issues when testing
crates that do not enable the `experimental-encrypted-state-events` feature
flag by default.
Signed-off-by: Skye Elliot <actuallyori@gmail.com >
2025-08-27 14:55:45 +02:00
Skye Elliot
8e5075569e
feat: Add top-level support for decrypting state events ( #5552 )
...
Implements support for decryption of state events
- [ ] Introduce a case for `AnySyncStateEvent::RoomEncrypted` to the
`state_events` sync response processor.
- [ ] Introduce modified `Room::decrypt_event` and
`::try_decrypt_room_event`.
- [ ] Introduce testing macro
`assert_let_decrypted_state_event_content`.
- [ ] Add casts and explicit type hints where necessary.
---------
Signed-off-by: Skye Elliot <actuallyori@gmail.com >
2025-08-27 10:53:55 +01:00
multisme
a66b2c5123
feat(test): add a test utils crate to make log initialization possible everywhere
...
This PR allows `init_tracing_for_test` to be called by any other crate in the sdk
Signed-off-by: multi [multiestunhappydev@gmail.com ](mailto:multiestunhappydev@gmail.com )
2025-08-14 05:24:03 +00:00
Jonas Platte
ea076b3d76
chore: Upgrade testing crates to Rust Edition 2024
2025-07-15 08:41:44 +02:00
Daniel Salinas
d3be744244
feat(wasm): Remove direct use of tokio::spawn in favor of matrix-sdk-common ( #5159 )
...
Mechanical move from tokio::spawn to matrix_sdk_common::executor::spawn
that has support for Wasm platforms. On non-Wasm, this shim defaults to
tokio::spawn.
2025-06-03 12:22:53 -04:00
Richard van der Hoff
a1e2eed467
sdk: Add ClientBuilder::with_enable_share_history_on_invite ( #5141 )
...
Replace `experimental-share-history-on-invite` feature flag with a
runtime flag on the `Client`.
2025-06-03 11:36:48 +01:00
Jonas Platte
3aa356dcd6
chore: Use shorter syntax for workspace inheritance where possible
2025-05-23 10:23:36 +02:00
Jonas Platte
491f7cd529
chore: Clean up Cargo.toml formatting
2025-05-23 10:23:36 +02:00
Richard van der Hoff
96bdd91bad
sdk: share room history when we send an invite
...
... subject to an experimental feature flag.
2025-04-16 16:53:27 +01:00
Damir Jelić
ca7f2ad3d0
Add a cargo-release config
2024-10-10 14:32:46 +02:00
Damir Jelić
657c72904a
chore: Define our license in every crate we have
2024-10-04 16:53:17 +02:00
Ivan Enderlin
ea2a27075a
feat(ffi,base,ui,sdk): Migrate from sliding sync to simplified sliding sync.
...
This patch migrates the entire SDK to sliding sync to simplified sliding
sync.
2024-07-17 16:33:37 +02:00
Ivan Enderlin
bacf85d807
chore: Use anyhow from the workspace.
2024-07-11 11:16:17 +02:00
Damir Jelić
fefdfd2e4b
test: Add a test to verify that interactive self-verification works
...
This also checks that secrets are gossiped from one device to the
other and that the recovery and backup states are correctly updated.
2024-06-26 14:31:31 +02:00
Ivan Enderlin
f669b3a530
chore(test): Use workspace dependencies.
2024-05-13 14:16:36 +02:00
Ivan Enderlin
da8588787f
chore(cargo): Declare reqwest as a workspace dependency.
2024-05-13 14:15:35 +02:00
Kévin Commaille
856dd01009
Upgrade http, ruma, reqwest and wiremock dependencies ( #3362 )
...
They need to be updated together
because the latters depend on the former.
matrix-authentication-service is still using http 0.2
so we need to add a conversion layer between both major versions
for OIDC requests.
We need to update vodozemac too because of a dependency resolution issue.
Signed-off-by: Kévin Commaille <zecakeh@tedomum.fr >
2024-04-30 14:04:56 +02:00
Kévin Commaille
da2abccc0d
chore: Disable clippy::assigning_clones lint
...
Signed-off-by: Kévin Commaille <zecakeh@tedomum.fr >
2024-04-02 15:05:41 +02:00
Benjamin Bouvier
4744a994b4
integration tests: enhance testing of test_room_notification_count
...
This adds additional checks for each room updates, and works around a few race conditions, notably one where the server would send a remote echo for a message, but not update the
computed unread_notification_counts immediately. This tends to make the test more stable, in that each response is well known and now properly tested.
2024-03-25 18:03:18 +01:00
Andy Balaam
ca13be020c
build: Make wiremock a workspace dependency
2024-03-19 09:39:31 +00:00
Timo Kösters
79f97504f8
sliding_sync: Refactor delayed decryption test
...
Signed-off-by: Timo Kösters <timo@koesters.xyz >
2024-02-12 14:48:35 +01:00
Timo Kösters
910887fbc6
sliding_sync: Add test for delayed decryption roominfo updates
...
Signed-off-by: Timo Kösters <timo@koesters.xyz >
2024-02-12 14:48:35 +01:00
Jonas Platte
315e6c9d85
Use workspace dependencies for matrix-sdk-test
2024-01-05 12:58:54 +01:00
Jonas Platte
1c7bf820bf
Use workspace dependencies for crates/* dependencies
...
… except from examples (such that they remain copy-pastable).
2024-01-04 10:02:07 +01:00
Benjamin Bouvier
09e355a7bc
read receipts: add integration tests for read receipts
2023-12-21 11:55:29 +01:00
Kévin Commaille
5310f41cda
integration-testing: Add test for QR verification
...
And check room ID in SAS test.
Signed-off-by: Kévin Commaille <zecakeh@tedomum.fr >
2023-12-14 15:23:16 +01:00
Jonas Platte
7be84ca71a
test: Deduplicate tracing_subscriber initialization
...
… and set a sensible default log level.
2023-11-02 12:58:03 +01:00
Jonas Platte
9956b56a2c
test: Remove unused helpers feature from integration testing crate
2023-11-02 12:58:03 +01:00
Benjamin Bouvier
8de33f68f3
integration tests: randomize user names better
...
In the previous situation, running the tests with `cargo test` would sometimes fail because despite appending the number of milliseconds since
the start of epoch to the user names, some user names would clash across different tests, leading to unexpected results. This fixes it by using
an actual RNG in there, so the names don't ever clash.
2023-11-01 07:57:46 +01:00
Jonas Platte
05a1021724
Use assert_let! instead of assert_matches! with bindings
2023-10-26 17:29:29 +02:00
Jonas Platte
1a15802201
Upgrade Ruma
2023-09-20 14:19:06 +02:00
Jonas Platte
45b7e075c9
Remove unused dependencies
2023-09-18 19:56:06 +02:00
Jonas Platte
1679669376
Remove the 'testing' feature from matrix-sdk-ui
...
At the expense of slightly increasing our public API, but we can always
deprecate things.
2023-08-03 21:39:56 +02:00
jonnyandrew
7e7996d43d
ui: Add local echoes for reactions to Timeline
2023-06-26 15:17:48 +00:00
Jonas Platte
d680b331d0
Make tokio a workspace dependency
2023-03-28 21:08:57 +02:00
Benjamin Kampmann
60d82fde38
test: add sliding-sync integration-testing facilities
2023-01-12 13:24:16 +01:00
Jonas Platte
2e30e11101
refactor: Use workspace dependencies for more crates
2023-01-10 10:19:02 +01:00
Jonas Platte
0cfc7540cf
refactor: Use workspace dependencies for tracing
2022-10-18 19:24:22 +02:00
Benjamin Kampmann
b5bd6dfee9
fix: Apply redactions to room state events in database, too ( #917 )
...
fixes #890
2022-09-27 09:24:53 +02:00
Jonas Platte
a744447bb5
test: Respect RUST_LOG in integration-testing
2022-09-08 12:13:30 +02:00
Flix
df4ee7db4c
test: Add test for repeated joining and leaving
2022-09-05 16:33:31 +02:00
Jonas Platte
936f0371de
chore: Use once_cell instead of lazy_static in integration test crate
2022-08-11 10:45:04 +02:00
Jonas Platte
ecc800a319
chore: Sort dependencies of integration test crate
2022-08-11 10:32:12 +02:00
Benjamin Kampmann
c27016b2e7
testing: fix review grumbles
2022-08-01 13:01:50 +02:00
Benjamin Kampmann
bf6e1b594d
fix(integration-tests): requires multi-threading feature from tokio
2022-07-21 18:06:48 +02:00
Benjamin Kampmann
e2f1f01cb2
test(sdk): creating integration tests for invitations
2022-07-18 17:33:09 +02:00