We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
test_sftp_subsystem
1 parent a340328 commit b4432deCopy full SHA for b4432de
tests/openssh.rs
@@ -822,3 +822,31 @@ async fn local_socket_forward() {
822
assert!(output.status.success());
823
}
824
825
+
826
+#[cfg(feature = "openssh-sftp-client")]
827
+#[tokio::test]
828
+#[cfg_attr(not(ci), ignore)]
829
+async fn test_sftp_subsystem() {
830
+ use openssh_sftp_client::highlevel::Sftp;
831
832
+ for session in connects().await {
833
+ let mut child = session
834
+ .subsystem("sftp")
835
+ .stdin(Stdio::piped())
836
+ .stdout(Stdio::piped())
837
+ .spawn()
838
+ .await
839
+ .unwrap();
840
841
+ Sftp::new(
842
+ child.stdin().take().unwrap(),
843
+ child.stdout().take().unwrap(),
844
+ Default::default(),
845
+ )
846
847
+ .unwrap()
848
+ .close()
849
850
851
+ }
852
+}
0 commit comments