tests: add v0.7-plaintextnames example filesystem

The v0.6-plaintextnames example FS lacks the GCMIV128 feature
flag, is no longer mountable and can no longer be used for testing.

Add a new "-plaintextnames" filesystem created by gocryptfs v0.7.
There have been no format changes to "-plaintextnames" since then.
This commit is contained in:
Jakob Unterwurzacher 2016-06-23 20:53:14 +02:00
parent af07866e08
commit 8a2e1a543a
5 changed files with 37 additions and 0 deletions

View File

@ -194,6 +194,26 @@ func TestExampleFSv07(t *testing.T) {
}
}
// gocryptfs v0.7 filesystem created with "-plaintextnames"
func TestExampleFSv07PlaintextNames(t *testing.T) {
cDir := "v0.7-plaintextnames"
pDir := test_helpers.TmpDir + cDir + ".mnt"
test_helpers.MountOrFatal(t, cDir, pDir, "-extpass", "echo test")
checkExampleFS(t, pDir, true)
test_helpers.Unmount(pDir)
test_helpers.MountOrFatal(t, cDir, pDir, "-plaintextnames", "-masterkey",
"6d96397b-585631e1-c7cba69d-61e738b6-4d5ad2c2-e21f0fb3-52f60d3a-b08526f7")
checkExampleFS(t, pDir, true)
test_helpers.Unmount(pDir)
err := os.Remove(pDir)
if err != nil {
t.Error(err)
}
}
// Test example_filesystems/v0.9
// (gocryptfs v0.9 introduced long file name support)
func TestExampleFSv09(t *testing.T) {

View File

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

View File

@ -0,0 +1,15 @@
{
"EncryptedKey": "13f9NLdlS20w26T0bukhVrqhumJOHhRyntEJb2y2BJK+K1kulklQGT6gxSWPsjDqw5514h9/euMiKMwc",
"ScryptObject": {
"Salt": "b2ZD+7sN6b/lchJbYT+4K73tscC6WwbGrdxHuFjhOT4=",
"N": 1024,
"R": 8,
"P": 1,
"KeyLen": 32
},
"Version": 2,
"FeatureFlags": [
"GCMIV128",
"PlaintextNames"
]
}

View File

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