tests: add v0.6-plaintextnames example filesystem
This commit is contained in:
parent
b4b9072cc2
commit
29336ba614
1
integration_tests/example_filesystems/v0.6-plaintextnames/abs
Symbolic link
1
integration_tests/example_filesystems/v0.6-plaintextnames/abs
Symbolic link
@ -0,0 +1 @@
|
|||||||
|
/a/b/c/d
|
@ -0,0 +1,14 @@
|
|||||||
|
{
|
||||||
|
"EncryptedKey": "SoTMt+DMqVDia42c7cx8YW6KrnzF9EQVYIq5DGR1yFqNKxtOCBIuXEIKJHYSw1Z8VluKRQmkugTOvyTU",
|
||||||
|
"ScryptObject": {
|
||||||
|
"Salt": "83wR2p5eDPtozsP48vizN1rAbYeXOtksvwoAZ9Y0vn4=",
|
||||||
|
"N": 1024,
|
||||||
|
"R": 8,
|
||||||
|
"P": 1,
|
||||||
|
"KeyLen": 32
|
||||||
|
},
|
||||||
|
"Version": 2,
|
||||||
|
"FeatureFlags": [
|
||||||
|
"PlaintextNames"
|
||||||
|
]
|
||||||
|
}
|
1
integration_tests/example_filesystems/v0.6-plaintextnames/rel
Symbolic link
1
integration_tests/example_filesystems/v0.6-plaintextnames/rel
Symbolic link
@ -0,0 +1 @@
|
|||||||
|
status.txt
|
Binary file not shown.
@ -109,3 +109,25 @@ func TestExampleFsV06(t *testing.T) {
|
|||||||
t.Error(err)
|
t.Error(err)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Test example_filesystems/v0.6
|
||||||
|
// with password mount and -masterkey mount
|
||||||
|
func TestExampleFsV06PlaintextNames(t *testing.T) {
|
||||||
|
pDir := tmpDir + "TestExampleFsV06PlaintextNames/"
|
||||||
|
cDir := "example_filesystems/v0.6-plaintextnames"
|
||||||
|
err := os.Mkdir(pDir, 0777)
|
||||||
|
if err != nil {
|
||||||
|
t.Fatal(err)
|
||||||
|
}
|
||||||
|
mount(cDir, pDir, "-extpass", "echo test")
|
||||||
|
checkExampleContent(t, pDir)
|
||||||
|
unmount(pDir)
|
||||||
|
mount(cDir, pDir, "-masterkey", "f4690202-595e4593-64c4f7e0-4dddd7d1-"+
|
||||||
|
"303147f9-0ca8aea2-966341a7-52ea8ae9", "-plaintextnames")
|
||||||
|
checkExampleContent(t, pDir)
|
||||||
|
unmount(pDir)
|
||||||
|
err = os.Remove(pDir)
|
||||||
|
if err != nil {
|
||||||
|
t.Error(err)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user