sylixos-uploader/pusher/ftp_pusher_test.go
2024-11-19 12:49:06 +08:00

22 lines
397 B
Go

package pusher
import (
"sylixos-uploader/common"
"sylixos-uploader/log"
"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", log.DefaultLogger, log.DefaultClearLinesUp)
if err != nil {
t.Error(err)
}
}