mirror of
https://github.com/rclone/rclone.git
synced 2025-02-16 23:32:45 +08:00
ftp: enable CI for ProFtpd, PureFtpd, VsFtpd
This commit is contained in:
parent
dc589d3070
commit
2d05b28b0a
|
@ -9,25 +9,27 @@ import (
|
||||||
"github.com/rclone/rclone/fstest/fstests"
|
"github.com/rclone/rclone/fstest/fstests"
|
||||||
)
|
)
|
||||||
|
|
||||||
// TestIntegration runs integration tests against the remote
|
// TestIntegration runs integration tests against rclone FTP server
|
||||||
func TestIntegration(t *testing.T) {
|
func TestIntegration(t *testing.T) {
|
||||||
fstests.Run(t, &fstests.Opt{
|
|
||||||
RemoteName: "TestFTPProftpd:",
|
|
||||||
NilObject: (*ftp.Object)(nil),
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
func TestIntegration2(t *testing.T) {
|
|
||||||
if *fstest.RemoteName != "" {
|
|
||||||
t.Skip("skipping as -remote is set")
|
|
||||||
}
|
|
||||||
fstests.Run(t, &fstests.Opt{
|
fstests.Run(t, &fstests.Opt{
|
||||||
RemoteName: "TestFTPRclone:",
|
RemoteName: "TestFTPRclone:",
|
||||||
NilObject: (*ftp.Object)(nil),
|
NilObject: (*ftp.Object)(nil),
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestIntegration3(t *testing.T) {
|
// TestIntegrationProftpd runs integration tests against proFTPd
|
||||||
|
func TestIntegrationProftpd(t *testing.T) {
|
||||||
|
if *fstest.RemoteName != "" {
|
||||||
|
t.Skip("skipping as -remote is set")
|
||||||
|
}
|
||||||
|
fstests.Run(t, &fstests.Opt{
|
||||||
|
RemoteName: "TestFTPProftpd:",
|
||||||
|
NilObject: (*ftp.Object)(nil),
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// TestIntegrationPureftpd runs integration tests against pureFTPd
|
||||||
|
func TestIntegrationPureftpd(t *testing.T) {
|
||||||
if *fstest.RemoteName != "" {
|
if *fstest.RemoteName != "" {
|
||||||
t.Skip("skipping as -remote is set")
|
t.Skip("skipping as -remote is set")
|
||||||
}
|
}
|
||||||
|
@ -37,12 +39,13 @@ func TestIntegration3(t *testing.T) {
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
// func TestIntegration4(t *testing.T) {
|
// TestIntegrationVsftpd runs integration tests against vsFTPd
|
||||||
// if *fstest.RemoteName != "" {
|
func TestIntegrationVsftpd(t *testing.T) {
|
||||||
// t.Skip("skipping as -remote is set")
|
if *fstest.RemoteName != "" {
|
||||||
// }
|
t.Skip("skipping as -remote is set")
|
||||||
// fstests.Run(t, &fstests.Opt{
|
}
|
||||||
// RemoteName: "TestFTPVsftpd:",
|
fstests.Run(t, &fstests.Opt{
|
||||||
// NilObject: (*ftp.Object)(nil),
|
RemoteName: "TestFTPVsftpd:",
|
||||||
// })
|
NilObject: (*ftp.Object)(nil),
|
||||||
// }
|
})
|
||||||
|
}
|
||||||
|
|
|
@ -18,6 +18,7 @@ start() {
|
||||||
echo host=$(docker_ip)
|
echo host=$(docker_ip)
|
||||||
echo user=$USER
|
echo user=$USER
|
||||||
echo pass=$(rclone obscure $PASS)
|
echo pass=$(rclone obscure $PASS)
|
||||||
|
echo encoding=Asterisk,Ctl,Dot,Slash
|
||||||
echo _connect=$(docker_ip):21
|
echo _connect=$(docker_ip):21
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -22,6 +22,7 @@ start() {
|
||||||
echo host=$(docker_ip)
|
echo host=$(docker_ip)
|
||||||
echo user=$USER
|
echo user=$USER
|
||||||
echo pass=$(rclone obscure $PASS)
|
echo pass=$(rclone obscure $PASS)
|
||||||
|
echo encoding=BackSlash,Ctl,Del,Dot,RightSpace,Slash,SquareBracket
|
||||||
echo _connect=$(docker_ip):21
|
echo _connect=$(docker_ip):21
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -18,6 +18,7 @@ start() {
|
||||||
echo host=$(docker_ip)
|
echo host=$(docker_ip)
|
||||||
echo user=$USER
|
echo user=$USER
|
||||||
echo pass=$(rclone obscure $PASS)
|
echo pass=$(rclone obscure $PASS)
|
||||||
|
echo encoding=Ctl,LeftPeriod,Slash
|
||||||
echo _connect=$(docker_ip):21
|
echo _connect=$(docker_ip):21
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user