use rcom::domain::{HostAlias, Location}; use rcom::ssh::OpenSshConnector; #[tokio::test] #[ignore = "requires an explicitly prepared OpenSSH host and credentials"] async fn openssh_home_can_be_listed_through_sftp() { let host = std::env::var("RCOM_TEST_SSH_HOST") .expect("set RCOM_TEST_SSH_HOST to an explicitly prepared test alias"); let host = HostAlias::new(host); let connector = OpenSshConnector::default(); let backend = connector.connect(&host).await.unwrap(); let home = backend .canonicalize(&Location::ssh(host, ".")) .await .unwrap(); let _entries = backend.list(&home).await.unwrap(); assert!(home.path().is_absolute()); }