aboutsummaryrefslogtreecommitdiff
path: root/tests/example_filesystems
diff options
context:
space:
mode:
Diffstat (limited to 'tests/example_filesystems')
-rw-r--r--tests/example_filesystems/example_filesystems_test.go20
l---------tests/example_filesystems/v0.7-plaintextnames/abs1
-rw-r--r--tests/example_filesystems/v0.7-plaintextnames/gocryptfs.conf15
l---------tests/example_filesystems/v0.7-plaintextnames/rel1
-rw-r--r--tests/example_filesystems/v0.7-plaintextnames/status.txtbin0 -> 60 bytes
5 files changed, 37 insertions, 0 deletions
diff --git a/tests/example_filesystems/example_filesystems_test.go b/tests/example_filesystems/example_filesystems_test.go
index 1cf05b6..c4a0cad 100644
--- a/tests/example_filesystems/example_filesystems_test.go
+++ b/tests/example_filesystems/example_filesystems_test.go
@@ -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) {
diff --git a/tests/example_filesystems/v0.7-plaintextnames/abs b/tests/example_filesystems/v0.7-plaintextnames/abs
new file mode 120000
index 0000000..e1740fa
--- /dev/null
+++ b/tests/example_filesystems/v0.7-plaintextnames/abs
@@ -0,0 +1 @@
+/a/b/c/d \ No newline at end of file
diff --git a/tests/example_filesystems/v0.7-plaintextnames/gocryptfs.conf b/tests/example_filesystems/v0.7-plaintextnames/gocryptfs.conf
new file mode 100644
index 0000000..9b462a3
--- /dev/null
+++ b/tests/example_filesystems/v0.7-plaintextnames/gocryptfs.conf
@@ -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"
+ ]
+} \ No newline at end of file
diff --git a/tests/example_filesystems/v0.7-plaintextnames/rel b/tests/example_filesystems/v0.7-plaintextnames/rel
new file mode 120000
index 0000000..8279c75
--- /dev/null
+++ b/tests/example_filesystems/v0.7-plaintextnames/rel
@@ -0,0 +1 @@
+status.txt \ No newline at end of file
diff --git a/tests/example_filesystems/v0.7-plaintextnames/status.txt b/tests/example_filesystems/v0.7-plaintextnames/status.txt
new file mode 100644
index 0000000..86ae6dc
--- /dev/null
+++ b/tests/example_filesystems/v0.7-plaintextnames/status.txt
Binary files differ