()
| 900 | |
| 901 | #[tokio::test] |
| 902 | async fn test_share_print_some_acls() { |
| 903 | let mut t = ClientTester::default(); |
| 904 | { |
| 905 | let storage = t.get_storage(); |
| 906 | let mut storage = storage.borrow_mut(); |
| 907 | storage.put("MEMORY:/FOO", b"").await.unwrap(); |
| 908 | storage |
| 909 | .update_acls( |
| 910 | "MEMORY:/FOO", |
| 911 | &FileAcls::default().with_readers(["some".to_owned(), "person".to_owned()]), |
| 912 | &FileAcls::default(), |
| 913 | ) |
| 914 | .await |
| 915 | .unwrap(); |
| 916 | } |
| 917 | t.run(r#"SHARE "MEMORY:/FOO""#) |
| 918 | .expect_prints(["", " Reader ACLs on MEMORY:/FOO:", " person", " some", ""]) |
| 919 | .expect_file("MEMORY:/FOO", "") |
| 920 | .check(); |
| 921 | } |
| 922 | |
| 923 | #[tokio::test] |
| 924 | async fn test_share_make_public() { |
nothing calls this directly
no test coverage detected