tests: add v0.6 example filesystem with EME
This commit is contained in:
parent
c6dacd6f91
commit
e3f35d38b5
1
integration_tests/example_filesystems/abs
Symbolic link
1
integration_tests/example_filesystems/abs
Symbolic link
@ -0,0 +1 @@
|
|||||||
|
/a/b/c/d
|
1
integration_tests/example_filesystems/rel
Symbolic link
1
integration_tests/example_filesystems/rel
Symbolic link
@ -0,0 +1 @@
|
|||||||
|
status.txt
|
1
integration_tests/example_filesystems/status.txt
Normal file
1
integration_tests/example_filesystems/status.txt
Normal file
@ -0,0 +1 @@
|
|||||||
|
It works!
|
@ -0,0 +1 @@
|
|||||||
|
OoEsnmmWQzBSl3E471yZkI2t2vB4SteL_l1J60HYXZ7g0W3CkTM=
|
@ -0,0 +1 @@
|
|||||||
|
4IGGj21t4IYWI76F46v3gG-JwTcw_QxGDFMSk_19bJav2WNw
|
Binary file not shown.
15
integration_tests/example_filesystems/v0.6/gocryptfs.conf
Normal file
15
integration_tests/example_filesystems/v0.6/gocryptfs.conf
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
{
|
||||||
|
"EncryptedKey": "/PhLwDblkFRGfoIA0egXikG0ZSZTWrOOoFZJPPX0R8JgU5+XnT2M2rxUzHIKKeuGoqZN55phgJjhTu0J",
|
||||||
|
"ScryptObject": {
|
||||||
|
"Salt": "YSHRXpcWYp95npMxAy9cf27LoaPR3gvrFpk3Xhg2tM8=",
|
||||||
|
"N": 1024,
|
||||||
|
"R": 8,
|
||||||
|
"P": 1,
|
||||||
|
"KeyLen": 32
|
||||||
|
},
|
||||||
|
"Version": 2,
|
||||||
|
"FeatureFlags": [
|
||||||
|
"DirIV",
|
||||||
|
"EMENames"
|
||||||
|
]
|
||||||
|
}
|
@ -0,0 +1 @@
|
|||||||
|
<EFBFBD><EFBFBD>(<28><>'<<3C>7<EFBFBD>Q<>
|
@ -87,3 +87,25 @@ func TestExampleFsV05(t *testing.T) {
|
|||||||
t.Error(err)
|
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)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user