[APP-3801] implement remote environments auth (#9331)
This commit is contained in:
@@ -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()));
|
||||
|
||||
Reference in New Issue
Block a user