2017-05-06 14:37:24 +02:00
|
|
|
package ssh
|
|
|
|
|
|
|
|
import (
|
|
|
|
"net"
|
|
|
|
"testing"
|
|
|
|
|
|
|
|
"github.com/stretchr/testify/assert"
|
|
|
|
)
|
|
|
|
|
|
|
|
func TestManager(t *testing.T) {
|
|
|
|
assert := assert.New(t)
|
|
|
|
|
|
|
|
mgmt := NewManager("~/.ssh/id_rsa")
|
|
|
|
assert.NotNil(mgmt, "no new manager created")
|
|
|
|
|
2017-05-06 19:44:37 +02:00
|
|
|
mgmt.ConnectTo(net.TCPAddr{IP: net.ParseIP("2a06:8782:ffbb:1337::127"), Port: 22})
|
2017-05-06 14:37:24 +02:00
|
|
|
|
|
|
|
mgmt.Close()
|
|
|
|
}
|