MCPcopy Index your code
hub / github.com/endbasic/endbasic / test_clouddrive_put_acls

Function test_clouddrive_put_acls

client/src/drive.rs:291–313  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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() {

Callers

nothing calls this directly

Calls 5

with_readersMethod · 0.80
verify_all_usedMethod · 0.80
do_loginMethod · 0.45
update_aclsMethod · 0.45

Tested by

no test coverage detected