tests: add v0.6-plaintextnames example filesystem

This commit is contained in:
Jakob Unterwurzacher 2015-12-10 19:50:45 +01:00
parent b4b9072cc2
commit 29336ba614
5 changed files with 38 additions and 0 deletions

View File

@ -0,0 +1 @@
/a/b/c/d

View File

@ -0,0 +1,14 @@
{
"EncryptedKey": "SoTMt+DMqVDia42c7cx8YW6KrnzF9EQVYIq5DGR1yFqNKxtOCBIuXEIKJHYSw1Z8VluKRQmkugTOvyTU",
"ScryptObject": {
"Salt": "83wR2p5eDPtozsP48vizN1rAbYeXOtksvwoAZ9Y0vn4=",
"N": 1024,
"R": 8,
"P": 1,
"KeyLen": 32
},
"Version": 2,
"FeatureFlags": [
"PlaintextNames"
]
}

View File

@ -0,0 +1 @@
status.txt

View File

@ -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)
}
}