MCPcopy Create free account
hub / github.com/appleboy/easyssh-proxy / TestWrongRawKey

Function TestWrongRawKey

easyssh_test.go:398–412  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

396}
397
398func TestWrongRawKey(t *testing.T) {
399 // wrong key
400 ssh := &MakeConfig{
401 Server: "localhost",
402 User: "drone-scp",
403 Port: "22",
404 Key: "appleboy",
405 }
406
407 outStr, errStr, isTimeout, err := ssh.Run("whoami")
408 assert.Equal(t, "", outStr)
409 assert.Equal(t, "", errStr)
410 assert.False(t, isTimeout)
411 assert.Error(t, err)
412}
413
414func TestExitCode(t *testing.T) {
415 ssh := &MakeConfig{

Callers

nothing calls this directly

Calls 1

RunMethod · 0.95

Tested by

no test coverage detected