sylixos-uploader/pusher/ftp_pusher_test.go

21 lines
329 B
Go

package pusher
import (
"sylixos-uploader/common"
"testing"
)
func TestPush(t *testing.T) {
p := NewFtpPusher("10.13.16.202")
if err := p.Login(common.SylixOSUser, common.SylixOSPassword); err != nil {
t.Error(err)
}
defer p.Logout()
err := p.Push("./", "/apps/ftp_pusher_test")
if err != nil {
t.Error(err)
}
}