[APP-3801] implement remote environments auth (#9331)

This commit is contained in:
Moira Huang
2026-04-28 21:31:23 -05:00
committed by GitHub
parent c325d146ab
commit f0c8b7f723
21 changed files with 685 additions and 69 deletions
+6 -2
View File
@@ -10,7 +10,9 @@ use super::*;
async fn round_trip_client_message() {
let msg = ClientMessage {
request_id: "test-123".to_string(),
message: Some(client_message::Message::Initialize(Initialize {})),
message: Some(client_message::Message::Initialize(Initialize {
auth_token: String::new(),
})),
};
let mut buf = Vec::new();
@@ -119,7 +121,9 @@ async fn write_message_too_large() {
fn try_extract_request_id_from_valid_message() {
let msg = ClientMessage {
request_id: "abc-123".to_string(),
message: Some(client_message::Message::Initialize(Initialize {})),
message: Some(client_message::Message::Initialize(Initialize {
auth_token: String::new(),
})),
};
let buf = msg.encode_to_vec();
assert_eq!(try_extract_request_id(&buf), Some("abc-123".to_string()));