Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 5 additions & 13 deletions tests/mcp_http_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -236,19 +236,11 @@ fn test_auth_accepts_correct_token() {
}),
None,
);
assert_ne!(resp.status(), 401, "Correct API key should not be rejected");
}

#[test]
fn test_health_endpoint_no_auth_required() {
let server = start_server();
// Health endpoint should work without any auth header
let client = reqwest::blocking::Client::new();
let resp = client
.get(format!("http://127.0.0.1:{}/health", server.port))
.send()
.unwrap();
assert_eq!(resp.status(), 200);
assert!(
resp.status().is_success(),
"Correct API key should be accepted, got {}",
resp.status()
);
}

#[test]
Expand Down
Loading