(id: &str, sandbox_id: &str)
| 2394 | } |
| 2395 | |
| 2396 | fn ssh_session_record(id: &str, sandbox_id: &str) -> SshSession { |
| 2397 | SshSession { |
| 2398 | metadata: Some(openshell_core::proto::datamodel::v1::ObjectMeta { |
| 2399 | id: id.to_string(), |
| 2400 | name: format!("session-{id}"), |
| 2401 | created_at_ms: 1_000_000, |
| 2402 | labels: HashMap::new(), |
| 2403 | resource_version: 0, |
| 2404 | }), |
| 2405 | sandbox_id: sandbox_id.to_string(), |
| 2406 | token: format!("token-{id}"), |
| 2407 | revoked: false, |
| 2408 | expires_at_ms: 0, |
| 2409 | } |
| 2410 | } |
| 2411 | |
| 2412 | fn make_driver_condition(reason: &str, message: &str) -> DriverCondition { |
| 2413 | DriverCondition { |
no outgoing calls
no test coverage detected