Skip to content

"rsync for cloud storage" - Google Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Wasabi, Google Cloud Storage, Azure Blob, Azure Files, Yandex Files

Create TestCrypt remote

Nick Craig-Wood5f375a182df1
diff --git a/crypt/crypt_config_test.go b/crypt/crypt_config_test.go
new file mode 100644
index 000000000..d9961cf28
--- /dev/null
+++ b/crypt/crypt_config_test.go
@@ -0,0 +1,20 @@
+package crypt_test
+
+import (
+ "os"
+ "path/filepath"
+
+ "github.com/ncw/rclone/fs"
+ "github.com/ncw/rclone/fstest/fstests"
+)
+
+// Create the TestCrypt: remote
+func init() {
+ tempdir := filepath.Join(os.TempDir(), "rclone-crypt-test")
+ name := "TestCrypt"
+ fstests.ExtraConfig = []fstests.ExtraConfigItem{
+ {Name: name, Key: "type", Value: "crypt"},
+ {Name: name, Key: "remote", Value: tempdir},
+ {Name: name, Key: "password", Value: fs.MustObscure("potato")},
+ }
+}