(id: &str, name: &str, phase: SandboxPhase)
| 2379 | } |
| 2380 | |
| 2381 | fn sandbox_record(id: &str, name: &str, phase: SandboxPhase) -> Sandbox { |
| 2382 | let mut sandbox = Sandbox { |
| 2383 | metadata: Some(openshell_core::proto::datamodel::v1::ObjectMeta { |
| 2384 | id: id.to_string(), |
| 2385 | name: name.to_string(), |
| 2386 | created_at_ms: 1_000_000, |
| 2387 | labels: HashMap::new(), |
| 2388 | resource_version: 0, |
| 2389 | }), |
| 2390 | ..Default::default() |
| 2391 | }; |
| 2392 | sandbox.set_phase(phase as i32); |
| 2393 | sandbox |
| 2394 | } |
| 2395 | |
| 2396 | fn ssh_session_record(id: &str, sandbox_id: &str) -> SshSession { |
| 2397 | SshSession { |
no test coverage detected