1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
mod common; use serial_test::serial; #[test_log::test(maybe_async::test( not(feature = "async"), async(feature = "async", tokio::test(flavor = "multi_thread")) ))] #[serial] async fn test_shares_enum() -> smb::Result<()> { // Since the current setup is using samba, // Ndr64 is not supported! Ok(()) /*let (mut client, path) = make_server_connection("IPC$", None).await?; let shares = client.list_shares(&path.server).await?; assert!(shares .iter() .any( |s| s.netname.as_ref().unwrap().to_string() == TestConstants::DEFAULT_SHARE && s.share_type.kind() == ShareKind::Disk )); Ok(())*/ }