crypt: add integration tests for obfuscate name encryption

This commit is contained in:
Nick Craig-Wood
2017-03-23 20:32:29 +00:00
parent 81d688107e
commit 4b4c59a4bb
17 changed files with 85 additions and 14 deletions

View File

@ -14,6 +14,8 @@ func init() {
name := "TestCrypt"
tempdir2 := filepath.Join(os.TempDir(), "rclone-crypt-test-off")
name2 := name + "2"
tempdir3 := filepath.Join(os.TempDir(), "rclone-crypt-test-obfuscate")
name3 := name + "3"
fstests.ExtraConfig = []fstests.ExtraConfigItem{
{Name: name, Key: "type", Value: "crypt"},
{Name: name, Key: "remote", Value: tempdir},
@ -23,5 +25,9 @@ func init() {
{Name: name2, Key: "remote", Value: tempdir2},
{Name: name2, Key: "password", Value: fs.MustObscure("potato2")},
{Name: name2, Key: "filename_encryption", Value: "off"},
{Name: name3, Key: "type", Value: "crypt"},
{Name: name3, Key: "remote", Value: tempdir3},
{Name: name3, Key: "password", Value: fs.MustObscure("potato2")},
{Name: name3, Key: "filename_encryption", Value: "obfuscate"},
}
}