From 5f375a182df1516bf4aefb533c99f47d28a768f2 Mon Sep 17 00:00:00 2001 From: Nick Craig-Wood Date: Sat, 20 Aug 2016 16:25:51 +0100 Subject: [PATCH] Create TestCrypt remote --- crypt/crypt_config_test.go | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 crypt/crypt_config_test.go 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")}, + } +}