Page MenuHomePhabricator

[Commtest] add mock olm accounts, configure creating authenticated device
ClosedPublic

Authored by kamil on Sep 28 2023, 7:30 AM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Oct 2, 9:03 AM
Unknown Object (File)
Wed, Oct 2, 9:03 AM
Unknown Object (File)
Wed, Oct 2, 9:03 AM
Unknown Object (File)
Wed, Oct 2, 8:55 AM
Unknown Object (File)
Wed, Oct 2, 6:02 AM
Unknown Object (File)
Tue, Sep 17, 10:50 PM
Unknown Object (File)
Aug 29 2024, 11:08 AM
Unknown Object (File)
Aug 25 2024, 12:15 PM
Subscribers

Details

Summary

To properly test WebSocket one device is not enough. We should send message from one device and receive it on another.
Adding two more, generated via local olm.

Depends on D9311

Test Plan

Run tests and make sure new credentials works.

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

kamil held this revision as a draft.
kamil published this revision for review.Sep 28 2023, 8:09 AM
bartek added inline comments.
services/commtest/src/identity/device.rs
22 ↗(On Diff #31522)

Looking at usages below, this could be Option<&ClientPublicKeys> to avoid cloning DEFAULT_CLIENT_KEYS and referencing &keys. Anyway it's a test so not a big deal

31–34 ↗(On Diff #31522)

This way is preferred

services/commtest/src/identity/olm_account_infos.rs
17 ↗(On Diff #31522)

Not directly related to this diff, but in the future we could replace lazy_static with once_cell

This revision is now accepted and ready to land.Sep 29 2023, 1:07 AM