tests: add v0.5 example filesystem (with DirIV!)
This commit is contained in:
parent
8766ab5472
commit
eb38a36114
@ -0,0 +1 @@
|
|||||||
|
l7TSsTckQSyPjfmEJGNd8dRrbJCA68YIqD_ZYpKu4UQxlM-8RqA=
|
Binary file not shown.
@ -0,0 +1 @@
|
|||||||
|
fgxzwbsvjcQzLLJCh8iXmdL89StySXpiXyLSyGLWuDmDxNVH
|
14
integration_tests/example_filesystems/v0.5/gocryptfs.conf
Normal file
14
integration_tests/example_filesystems/v0.5/gocryptfs.conf
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
{
|
||||||
|
"EncryptedKey": "eEjly8AC1f/7HSiBwZlCWtzYXx+le7HpKu2qf8mcNo6ua2J0N4wasewjkzntU6r2ROdp3hjFQyHtZrCf",
|
||||||
|
"ScryptObject": {
|
||||||
|
"Salt": "MHr2o3kUQAHPE7Wc+p4eDDhKrpA8AOwzOo14JYoU89s=",
|
||||||
|
"N": 65536,
|
||||||
|
"R": 8,
|
||||||
|
"P": 1,
|
||||||
|
"KeyLen": 32
|
||||||
|
},
|
||||||
|
"Version": 2,
|
||||||
|
"FeatureFlags": [
|
||||||
|
"DirIV"
|
||||||
|
]
|
||||||
|
}
|
@ -0,0 +1 @@
|
|||||||
|
«¯úDÈ|å¯?jq
|
@ -44,11 +44,11 @@ func checkExampleContent(t *testing.T, dir string) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Test example_filesystems/normal
|
// Test example_filesystems/v0.4
|
||||||
// with password mount and -masterkey mount
|
// with password mount and -masterkey mount
|
||||||
func TestExampleFsNormal(t *testing.T) {
|
func TestExampleFsV04(t *testing.T) {
|
||||||
pDir := tmpDir + "TestExampleFsNormal/"
|
pDir := tmpDir + "TestExampleFsV04/"
|
||||||
cDir := "example_filesystems/normal"
|
cDir := "example_filesystems/v0.4"
|
||||||
err := os.Mkdir(pDir, 0777)
|
err := os.Mkdir(pDir, 0777)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
t.Fatal(err)
|
t.Fatal(err)
|
||||||
@ -65,3 +65,25 @@ func TestExampleFsNormal(t *testing.T) {
|
|||||||
t.Error(err)
|
t.Error(err)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Test example_filesystems/v0.5
|
||||||
|
// with password mount and -masterkey mount
|
||||||
|
func TestExampleFsV05(t *testing.T) {
|
||||||
|
pDir := tmpDir + "TestExampleFsV05/"
|
||||||
|
cDir := "example_filesystems/v0.5"
|
||||||
|
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", "e7f38c71-0da80f68-d3b2cd7d-ee4f49e5-"+
|
||||||
|
"f8bc98cd-d7976950-85204c54-3081b302")
|
||||||
|
checkExampleContent(t, pDir)
|
||||||
|
unmount(pDir)
|
||||||
|
err = os.Remove(pDir)
|
||||||
|
if err != nil {
|
||||||
|
t.Error(err)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user