-
Notifications
You must be signed in to change notification settings - Fork 299
tests: added "fleetctl --tunnel" tests #1492
Conversation
8a62ab6 to
010dc52
Compare
|
Looks like |
|
Yet another test for #565: $ export REMOTE_HOST=localhost
$ eval $(ssh-agent)
$ for i in {1..10}; do (ssh-keygen -t rsa -b 1024 -f $HOME/.ssh/test_rsa_$i -N ''; ssh-add $HOME/.ssh/test_rsa_$i)& done; wait; echo "done"
$ fleetctl -strict-host-key-checking=false --tunnel $REMOTE_HOST list-machines
Unable to initialize client: failed initializing SSH client: ssh: handshake failed: ssh: unexpected message type 1 (expected 52)
$ ssh-agent -k
$ rm $HOME/.ssh/test_rsa_* |
d9552e7 to
cfbb3fc
Compare
6c08547 to
3f3daa2
Compare
|
Trying to find other way to fix this bug. ea415ad is only workaround which doesn't explain cause of the problem |
|
@jonboulle if you accept this fix, let's merge this PR. and I'll try to find proper solution later within new issue. |
functional/platform/nspawn.go
Outdated
|
|
||
| fleetdBinDst := path.Join(dir, "opt", "fleet", "fleetd") | ||
| return copyFile(fleetdBinPath, fleetdBinDst, 0755) | ||
| BinDst := path.Join(dst, "opt", "fleet", path.Base(src)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit, binDst
|
Couple of nits but LGTM overall! |
|
@tixxdz any remarks or objections? |
* renamed BinDst into binDst * split "Launch one unit" string
3ad2ac2 to
fd6b2f6
Compare
ssh/ssh.go
Outdated
| type SSHForwardingClient struct { | ||
| agentForwarding bool | ||
| *gossh.Client | ||
| agentForwardingEnabled bool |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, one minor: could you please rename this to: authAgentReqSent or agentForwardingSent , but not Enabled, and also put some code comment: "Used to check if we have already sent the request to the ssh channel".
|
@kayrus thank you, please if you could change the name of that variable! then will merge. |
tests: added "fleetctl --tunnel" tests
|
@kayrus ok thank you merged, and thanks also for triggering that "remote: Daily bandwidth rate limit exceeded..." ! |
adding tests which will cover #565 #1425 #1455
closes #1484