"rsync for cloud storage" - Google Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Wasabi, Google Cloud Storage, Azure Blob, Azure Files, Yandex Files
Go azure-blobazure-blob-storageazure-filesbackblaze-b2cloud-storagedropboxencryptionftpfuse-filesystemgogolanggoogle-cloud-storagegoogle-driveonedriveopenstack-swiftrclones3sftpsyncwebdav
crypt: ensure integration tests run correctly when -remote is set
Nick Craig-Woodfe61cff0793f
diff --git a/backend/crypt/crypt_test.go b/backend/crypt/crypt_test.goindex 1fb14ab9b..4acf61a46 100644--- a/backend/crypt/crypt_test.go+++ b/backend/crypt/crypt_test.go@@ -7,13 +7,30 @@ import ("testing""github.com/ncw/rclone/backend/crypt"+ _ "github.com/ncw/rclone/backend/drive" // for integration tests_ "github.com/ncw/rclone/backend/local"+ _ "github.com/ncw/rclone/backend/swift" // for integration tests"github.com/ncw/rclone/fs/config/obscure"+ "github.com/ncw/rclone/fstest""github.com/ncw/rclone/fstest/fstests")+// TestIntegration runs integration tests against the remote+func TestIntegration(t *testing.T) {+ if *fstest.RemoteName == "" {+ t.Skip("Skipping as -remote not set")+ }+ fstests.Run(t, &fstests.Opt{+ RemoteName: *fstest.RemoteName,+ NilObject: (*crypt.Object)(nil),+ })+}+// TestStandard runs integration tests against the remotefunc TestStandard(t *testing.T) {+ if *fstest.RemoteName != "" {+ t.Skip("Skipping as -remote set")+ }tempdir := filepath.Join(os.TempDir(), "rclone-crypt-test-standard")name := "TestCrypt"fstests.Run(t, &fstests.Opt{@@ -30,6 +47,9 @@ func TestStandard(t *testing.T) {// TestOff runs integration tests against the remotefunc TestOff(t *testing.T) {+ if *fstest.RemoteName != "" {+ t.Skip("Skipping as -remote set")+ }tempdir := filepath.Join(os.TempDir(), "rclone-crypt-test-off")name := "TestCrypt2"fstests.Run(t, &fstests.Opt{@@ -46,6 +66,9 @@ func TestOff(t *testing.T) {// TestObfuscate runs integration tests against the remotefunc TestObfuscate(t *testing.T) {+ if *fstest.RemoteName != "" {+ t.Skip("Skipping as -remote set")+ }tempdir := filepath.Join(os.TempDir(), "rclone-crypt-test-obfuscate")name := "TestCrypt3"fstests.Run(t, &fstests.Opt{