[client] Calls: four MLS kinds (call, callAnswer, callIce, callEnd) with the frame key in the offer; coturn in the NixOS module; Caddy's global logger mkDefault; v0.3.0
This commit is contained in:
@@ -247,6 +247,19 @@ fn pair_and_talk_through_a_real_relay_which_never_sees_a_name_or_a_word() {
|
||||
.compose_poll(jan_side, question, &options, false)
|
||||
.expect("poll");
|
||||
jan.deliver(&out).expect("deliver");
|
||||
// And a call (`.agents/features/call-kinds.md`): its SDP, candidates, id and key neither.
|
||||
let sdp = "v=0
|
||||
a=fingerprint:sha-256 SDP-CANARY
|
||||
";
|
||||
let (call, key, out) = jan
|
||||
.offer_call(jan_side, true, sdp, 1_767_000_000)
|
||||
.expect("offer");
|
||||
jan.deliver(&out).expect("deliver");
|
||||
let candidates = vec!["candidate:1 1 udp 2 203.0.113.77 3478 typ relay".to_string()];
|
||||
let out = jan
|
||||
.call_candidates(jan_side, call, &candidates)
|
||||
.expect("ice");
|
||||
jan.deliver(&out).expect("deliver");
|
||||
|
||||
// Snapshot the database while both messages wait, before anyone fetches.
|
||||
let waiting = std::fs::read(&db).expect("db");
|
||||
@@ -280,6 +293,19 @@ fn pair_and_talk_through_a_real_relay_which_never_sees_a_name_or_a_word() {
|
||||
options: options.clone(),
|
||||
multiple: false,
|
||||
},
|
||||
Event::CallOffered {
|
||||
contact: eva_side,
|
||||
id: call,
|
||||
video: true,
|
||||
sdp: sdp.into(),
|
||||
key,
|
||||
at: 1_767_000_000,
|
||||
},
|
||||
Event::CallCandidates {
|
||||
contact: eva_side,
|
||||
id: call,
|
||||
candidates: candidates.clone(),
|
||||
},
|
||||
]
|
||||
);
|
||||
let after = std::fs::read(&db).expect("db");
|
||||
@@ -294,6 +320,10 @@ fn pair_and_talk_through_a_real_relay_which_never_sees_a_name_or_a_word() {
|
||||
("inviter's name", "Eva Nováková".as_bytes()),
|
||||
("invitee's name", "Jan Dvořák".as_bytes()),
|
||||
("invite secret", invite.secret.as_bytes().as_slice()),
|
||||
("call SDP", b"SDP-CANARY".as_slice()),
|
||||
("call candidate", b"203.0.113.77".as_slice()),
|
||||
("call id", call.as_bytes().as_slice()),
|
||||
("call key", key.as_bytes().as_slice()),
|
||||
] {
|
||||
assert!(
|
||||
!contains(snapshot, needle),
|
||||
|
||||
Reference in New Issue
Block a user