Wez Furlong
a745c2edc8
ssh: fixup test for centos8
...
```
thread 'e2e::sftp::canonicalize_should_either_return_resolved_path_or_error_if_missing' panicked at 'Unexpected result from canonicalize: Err(LibSsh(Sftp(SftpError(2))))', wezterm-ssh/tests/e2e/sftp.rs:615:14
```
We can't currently match that error because the LibSsh SftError(x) error
code is private.
2021-12-15 11:48:13 -07:00
Wez Furlong
9822e80adb
wezterm-ssh: ask kernel to allocate port number for tests
...
The ssh tests are the main flakey failure in CI, so let's see if
we can make them less flakey.
2021-11-23 06:16:31 -07:00
Chip Senkbeil
2415a44d74
Switch to camino::{Utf8PathBuf, Utf8Path}
2021-10-10 14:54:45 -07:00
Chip Senkbeil
d15789d2c0
Finish refactoring names of methods based on wez feedback
2021-10-10 14:54:45 -07:00
Chip Senkbeil
9a8a0f35e7
Update realpath test to support error or ok
2021-10-10 14:54:45 -07:00
Chip Senkbeil
0cc426df7d
Reenable PAM as Fedora was complaining about it being disabled
2021-10-10 14:54:45 -07:00
Chip Senkbeil
4befffccd4
Add ignore attr to non-linux/non-macos tests
2021-10-10 14:54:45 -07:00
Chip Senkbeil
7d5c301c66
Ensure /run/sshd exists, explicitly set username in sshd fixture, add back use_privilege_mode no
2021-10-10 14:54:45 -07:00
Chip Senkbeil
d98a2cbbc2
Remove deprecated privilege separation from sshd
2021-10-10 14:54:45 -07:00
Chip Senkbeil
1dd3d5cdf0
Update tests to generate keys using old PEM format
2021-10-10 14:54:45 -07:00
Chip Senkbeil
4a0376e6de
Refactor exposed ssh2 types to wrapper types
2021-10-10 14:54:45 -07:00
Chip Senkbeil
86c307a214
Add tests for File::readdir and File::stat; change .cirrus.yml to set home directory permissions
2021-10-10 14:54:45 -07:00
Chip Senkbeil
50a0372e17
Fix file asyncread and asyncwrite future handling by keeping stateful futures
2021-10-10 14:54:45 -07:00
Chip Senkbeil
35043e9341
Fix four failing tests and clean up sshd setup to not require ssh-add
2021-10-10 14:54:45 -07:00
Chip Senkbeil
d797b3f27e
Add tests for remaining sftp methods off of sftp channel -- 4 are failing
2021-10-10 14:54:45 -07:00
Chip Senkbeil
ec09a6ab68
Add tests for stat and lstat
2021-10-10 14:54:45 -07:00
Chip Senkbeil
dc61ba2774
Add a couple more tests for sftp to cover mkdir and rmdir
2021-10-10 14:54:45 -07:00
Chip Senkbeil
259ac04ce5
Refactor sftp interaction into a separate struct that uses SessionSender underneath
2021-10-10 14:54:45 -07:00
Chip Senkbeil
fca3bd6904
Add some initial tests to wezterm-ssh, ignoring read/write of file as those are hanging
2021-10-10 14:54:45 -07:00