mirror of
https://github.com/rclone/rclone
synced 2024-11-21 22:50:16 +01:00
Create TestCrypt remote
This commit is contained in:
parent
663dd6ed8b
commit
5f375a182d
20
crypt/crypt_config_test.go
Normal file
20
crypt/crypt_config_test.go
Normal file
@ -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")},
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user