(view: &str, ttl_secs: u64)
| 624 | const HOUR: u64 = 60 * 60; |
| 625 | |
| 626 | fn request(view: &str, ttl_secs: u64) -> GrantRequest { |
| 627 | GrantRequest { |
| 628 | repository_id: b"repo".to_vec(), |
| 629 | view: view.to_string(), |
| 630 | view_id: None, |
| 631 | acting_as: None, |
| 632 | capabilities: ["sandbox.read".to_string()].into(), |
| 633 | ttl_secs, |
| 634 | } |
| 635 | } |
| 636 | |
| 637 | fn settable_clock() -> (Arc<Mutex<DateTime<Utc>>>, InMemorySandboxGrants) { |
| 638 | let now = Arc::new(Mutex::new(Utc::now())); |
no outgoing calls