Skip to content

Commit 8ebda2c

Browse files
test: update subscription fixtures for backend config
Signed-off-by: Pratik Gandhi <gandhipratik203@gmail.com>
1 parent 8196371 commit 8ebda2c

2 files changed

Lines changed: 2 additions & 4 deletions

File tree

crates/contextforge-data-plane-lib/src/gateway/downstream_subscriptions.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ fn subscription_key(
134134
mod tests {
135135
use std::collections::HashMap;
136136

137-
use contextforge_data_plane_apis::user_store::{BackendMCPGateway, Transport, VirtualHost};
137+
use contextforge_data_plane_apis::user_store::{BackendMCPGateway, VirtualHost};
138138
use rmcp::model::RequestId;
139139

140140
use super::*;
@@ -169,7 +169,6 @@ mod tests {
169169
BackendMCPGateway {
170170
name: "backend-one".to_owned(),
171171
url: "http://127.0.0.1:9999/mcp".parse().expect("valid URL"),
172-
transport: Transport::default(),
173172
passthrough_headers: Vec::new(),
174173
add_headers: HashMap::new(),
175174
remove_headers: Vec::new(),

crates/contextforge-data-plane-lib/src/gateway/mcp_service.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ fn is_routable_resource_subscription(virtual_host: &VirtualHost, uri: &str) -> b
245245
mod tests {
246246
use std::collections::HashMap;
247247

248-
use contextforge_data_plane_apis::user_store::{BackendMCPGateway, Transport};
248+
use contextforge_data_plane_apis::user_store::BackendMCPGateway;
249249
use rmcp::model::RequestId;
250250

251251
use super::*;
@@ -338,7 +338,6 @@ mod tests {
338338
BackendMCPGateway {
339339
name: (*name).to_owned(),
340340
url: "http://127.0.0.1:9999/mcp".parse().expect("valid URL"),
341-
transport: Transport::default(),
342341
passthrough_headers: Vec::new(),
343342
add_headers: HashMap::new(),
344343
remove_headers: Vec::new(),

0 commit comments

Comments
 (0)