github.com/artpar/rclone@v1.67.3/backend/ftp/ftp_test.go (about)

     1  // Test FTP filesystem interface
     2  package ftp_test
     3  
     4  import (
     5  	"testing"
     6  
     7  	"github.com/artpar/rclone/backend/ftp"
     8  	"github.com/artpar/rclone/fstest"
     9  	"github.com/artpar/rclone/fstest/fstests"
    10  )
    11  
    12  // TestIntegration runs integration tests against rclone FTP server
    13  func TestIntegration(t *testing.T) {
    14  	fstests.Run(t, &fstests.Opt{
    15  		RemoteName: "TestFTPRclone:",
    16  		NilObject:  (*ftp.Object)(nil),
    17  	})
    18  }
    19  
    20  // TestIntegrationProftpd runs integration tests against proFTPd
    21  func TestIntegrationProftpd(t *testing.T) {
    22  	if *fstest.RemoteName != "" {
    23  		t.Skip("skipping as -remote is set")
    24  	}
    25  	fstests.Run(t, &fstests.Opt{
    26  		RemoteName: "TestFTPProftpd:",
    27  		NilObject:  (*ftp.Object)(nil),
    28  	})
    29  }
    30  
    31  // TestIntegrationPureftpd runs integration tests against pureFTPd
    32  func TestIntegrationPureftpd(t *testing.T) {
    33  	if *fstest.RemoteName != "" {
    34  		t.Skip("skipping as -remote is set")
    35  	}
    36  	fstests.Run(t, &fstests.Opt{
    37  		RemoteName: "TestFTPPureftpd:",
    38  		NilObject:  (*ftp.Object)(nil),
    39  	})
    40  }
    41  
    42  // TestIntegrationVsftpd runs integration tests against vsFTPd
    43  func TestIntegrationVsftpd(t *testing.T) {
    44  	if *fstest.RemoteName != "" {
    45  		t.Skip("skipping as -remote is set")
    46  	}
    47  	fstests.Run(t, &fstests.Opt{
    48  		RemoteName: "TestFTPVsftpd:",
    49  		NilObject:  (*ftp.Object)(nil),
    50  	})
    51  }