()
| 289 | |
| 290 | #[tokio::test] |
| 291 | async fn test_clouddrive_put_acls() { |
| 292 | let service = Rc::from(RefCell::from(MockService::default())); |
| 293 | service.borrow_mut().do_login().await; |
| 294 | let mut drive = CloudDrive::new(service.clone(), "the-user"); |
| 295 | |
| 296 | service.borrow_mut().add_mock_patch_file_acls( |
| 297 | "the-user", |
| 298 | "the-filename", |
| 299 | ["r1".to_owned(), "r2".to_owned()], |
| 300 | ["r2".to_owned(), "r3".to_owned()], |
| 301 | Ok(()), |
| 302 | ); |
| 303 | drive |
| 304 | .update_acls( |
| 305 | "the-filename", |
| 306 | &FileAcls::default().with_readers(["r1".to_owned(), "r2".to_owned()]), |
| 307 | &FileAcls::default().with_readers(["r2".to_owned(), "r3".to_owned()]), |
| 308 | ) |
| 309 | .await |
| 310 | .unwrap(); |
| 311 | |
| 312 | service.take().verify_all_used(); |
| 313 | } |
| 314 | |
| 315 | #[test] |
| 316 | fn test_clouddrive_system_path() { |
nothing calls this directly
no test coverage detected