Nicola Murino
b4ea0fd6f6
fix lint issues
...
These lint issues remain:
- request-errors.go, aliases for new error types
- request-attrs.go, UidGid. Changing this will break compatibility
2019-08-30 17:04:37 +02:00
Tommie Gannert
2c24eaad1c
Implement the hardlink@openssh.com extension.
...
Both client and server. This is documented in
https://github.com/openssh/openssh-portable/blob/master/PROTOCOL
Draft 7 of SFTP added support for SSH_FXP_LINK which supports both
symlinks and hardlinks, but unfortunately OpenSSH doesn't support
that:
https://tools.ietf.org/html/draft-ietf-secsh-filexfer-07#section-7.7
Adding support for this as an option would be a nice extension to
this.
2019-08-25 20:16:37 -07:00
Tommie Gannert
2b53636545
Allow -sftp to work in server_integration_test.
2019-06-12 09:20:07 +02:00
Daniel Theophanes
d8ec5de5ee
sftp: update tests to finish and not panic on windows
...
Many Unix assuptions have been made when testing.
Previously running tests on windows threw a panic
part way through the tests. After these changes
many more tests pass when the fix was isolated
to the test itself, and none panic.
Some tests are skipped because they do make sense
on windows (chmod, chown), while others are skipped
just to how the test was implemented.
Lastly, some of the external executables were hard coded.
Change these to look paths in TestMain first. This is done
to better support windows, where openssh may be installed and
sftp and sftp-server may both be in the PATH.
2019-01-18 16:29:07 -08:00
John Eikenberry
161bbaf9a8
a few code simplifications
...
ran gosimple over the code and made suggested adjustments
2018-02-15 11:17:19 -08:00
John Eikenberry
f128182572
skip timestamp field in server comparison test
...
Timestamps on some directories can vary during the test (eg. /tmp).
2018-01-17 11:43:54 -08:00
John Eikenberry
98203f5a83
remove ssh-agent requirement for integration tests
...
Thanks @tv42 for this code. I took it from his PR; #92 .
2017-08-23 14:46:20 -07:00
John Eikenberry
13ec2164f5
mispelling in test output
2017-08-23 14:20:45 -07:00
Dave Cheney
f3fc26f1c3
General server cleanups ( #103 )
...
- no need to initalise mutexes, their zero value is valid
- make NewServer simpler, 90% of use cases already had an
io.ReadWriteCloser, in the single case that it it is easy to provide a
simple wrapper.
2016-05-29 16:32:05 +10:00
Matt Layher
8e47c759f5
server: remote rootDir parameter, as it does nothing
2016-01-16 12:41:01 -05:00
Matt Layher
403657b31e
server: use functional options for NewServer
2016-01-11 11:52:51 -05:00
Matt Layher
b348482b1a
*: golint (part 1)
2016-01-07 12:10:24 -05:00
Dave Cheney
fe1bd71a2f
s/wercker/travis
2015-12-25 18:24:07 +01:00
Mark Sheahan
e4daa2d013
added server integration test for recursive put and recursive get
2015-09-08 17:54:28 -07:00
Mark Sheahan
d7309968cd
add more tests; bug setting S_IFREG caused openssh sftp to refuse to get the file
2015-09-08 17:03:18 -07:00
Mark Sheahan
bce43f23ac
Address review comments; alter server test to allow the user / group words to be different
2015-09-07 22:50:46 -07:00
Mark Sheahan
c69ab311ab
all tests invoking external binaries considered integration tests to satisfy wercker
2015-09-07 02:28:33 -07:00
Mark Sheahan
20391fc5d1
skip server tests if the openssh sftp client binary is unavailable
2015-09-07 02:20:58 -07:00
Mark Sheahan
d80ae36051
rmdir and symlink packet handling
2015-09-07 01:05:16 -07:00
Mark Sheahan
7bb2083ca9
Address review comments; about to change decodePacket()
2015-09-06 23:55:15 -07:00
Mark Sheahan
0aec5ce5ec
use merge-to target branches, not ScriptRock ones
2015-09-06 21:54:42 -07:00
Mark Sheahan
d9371ace46
skipping integration tests for server unless specified
2015-09-06 21:43:59 -07:00
Mark Sheahan
c36e806e57
runLs output matching openssh for some stuff
2015-09-06 21:37:33 -07:00
Mark Sheahan
0d8e136458
removing sftp server to client layer; using straight os.* calls
2015-09-06 19:36:47 -07:00
Mark Sheahan
1502f6c9e6
compare golang sftp subsystem to openssh
2015-08-07 00:51:14 -07:00
Mark Sheahan
f9e831be30
proper ssh closing sequence
2015-08-05 23:24:33 -07:00
Mark Sheahan
4325c3654b
fix format of 'name' packets (shortname, longname, attrs), add Stat
2015-08-05 12:57:28 -07:00
Mark Sheahan
82ef5086ee
server integration test scaffolding
2015-08-04 23:37:18 -07:00