tests: add v0.6 example filesystem with EME

This commit is contained in:
Jakob Unterwurzacher 2015-12-08 16:17:19 +01:00
parent c6dacd6f91
commit e3f35d38b5
9 changed files with 43 additions and 0 deletions

View File

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

View File

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

View File

@ -0,0 +1 @@
It works!

View File

@ -0,0 +1 @@
OoEsnmmWQzBSl3E471yZkI2t2vB4SteL_l1J60HYXZ7g0W3CkTM=

View File

@ -0,0 +1 @@
4IGGj21t4IYWI76F46v3gG-JwTcw_QxGDFMSk_19bJav2WNw

View File

@ -0,0 +1,15 @@
{
"EncryptedKey": "/PhLwDblkFRGfoIA0egXikG0ZSZTWrOOoFZJPPX0R8JgU5+XnT2M2rxUzHIKKeuGoqZN55phgJjhTu0J",
"ScryptObject": {
"Salt": "YSHRXpcWYp95npMxAy9cf27LoaPR3gvrFpk3Xhg2tM8=",
"N": 1024,
"R": 8,
"P": 1,
"KeyLen": 32
},
"Version": 2,
"FeatureFlags": [
"DirIV",
"EMENames"
]
}

View File

@ -0,0 +1 @@
<EFBFBD><EFBFBD>(<28><>'<<3C>7<EFBFBD>Q<>

View File

@ -87,3 +87,25 @@ func TestExampleFsV05(t *testing.T) {
t.Error(err)
}
}
// Test example_filesystems/v0.6
// with password mount and -masterkey mount
func TestExampleFsV06(t *testing.T) {
pDir := tmpDir + "TestExampleFsV06/"
cDir := "example_filesystems/v0.6"
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", "7bc8deb0-5fc894ef-a093da43-61561a81-"+
"0e8dee83-fdc056a4-937c37dd-9df5c520")
checkExampleContent(t, pDir)
unmount(pDir)
err = os.Remove(pDir)
if err != nil {
t.Error(err)
}
}