summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakob Unterwurzacher2015-12-10 19:50:45 +0100
committerJakob Unterwurzacher2015-12-10 19:50:45 +0100
commit29336ba61425240e89878049853e0bf4fbd5c148 (patch)
treeb418988ecb744b09792884c6f65165f84dada70a
parentb4b9072cc2cb55f177909d4c497f25c3fd1abaf5 (diff)
tests: add v0.6-plaintextnames example filesystem
l---------integration_tests/example_filesystems/v0.6-plaintextnames/abs1
-rw-r--r--integration_tests/example_filesystems/v0.6-plaintextnames/gocryptfs.conf14
l---------integration_tests/example_filesystems/v0.6-plaintextnames/rel1
-rw-r--r--integration_tests/example_filesystems/v0.6-plaintextnames/status.txtbin0 -> 56 bytes
-rw-r--r--integration_tests/example_filesystems_test.go22
5 files changed, 38 insertions, 0 deletions
diff --git a/integration_tests/example_filesystems/v0.6-plaintextnames/abs b/integration_tests/example_filesystems/v0.6-plaintextnames/abs
new file mode 120000
index 0000000..e1740fa
--- /dev/null
+++ b/integration_tests/example_filesystems/v0.6-plaintextnames/abs
@@ -0,0 +1 @@
+/a/b/c/d \ No newline at end of file
diff --git a/integration_tests/example_filesystems/v0.6-plaintextnames/gocryptfs.conf b/integration_tests/example_filesystems/v0.6-plaintextnames/gocryptfs.conf
new file mode 100644
index 0000000..257b7ee
--- /dev/null
+++ b/integration_tests/example_filesystems/v0.6-plaintextnames/gocryptfs.conf
@@ -0,0 +1,14 @@
+{
+ "EncryptedKey": "SoTMt+DMqVDia42c7cx8YW6KrnzF9EQVYIq5DGR1yFqNKxtOCBIuXEIKJHYSw1Z8VluKRQmkugTOvyTU",
+ "ScryptObject": {
+ "Salt": "83wR2p5eDPtozsP48vizN1rAbYeXOtksvwoAZ9Y0vn4=",
+ "N": 1024,
+ "R": 8,
+ "P": 1,
+ "KeyLen": 32
+ },
+ "Version": 2,
+ "FeatureFlags": [
+ "PlaintextNames"
+ ]
+} \ No newline at end of file
diff --git a/integration_tests/example_filesystems/v0.6-plaintextnames/rel b/integration_tests/example_filesystems/v0.6-plaintextnames/rel
new file mode 120000
index 0000000..8279c75
--- /dev/null
+++ b/integration_tests/example_filesystems/v0.6-plaintextnames/rel
@@ -0,0 +1 @@
+status.txt \ No newline at end of file
diff --git a/integration_tests/example_filesystems/v0.6-plaintextnames/status.txt b/integration_tests/example_filesystems/v0.6-plaintextnames/status.txt
new file mode 100644
index 0000000..e5b62fb
--- /dev/null
+++ b/integration_tests/example_filesystems/v0.6-plaintextnames/status.txt
Binary files differ
diff --git a/integration_tests/example_filesystems_test.go b/integration_tests/example_filesystems_test.go
index c3f4966..69cbe0e 100644
--- a/integration_tests/example_filesystems_test.go
+++ b/integration_tests/example_filesystems_test.go
@@ -109,3 +109,25 @@ func TestExampleFsV06(t *testing.T) {
t.Error(err)
}
}
+
+// Test example_filesystems/v0.6
+// with password mount and -masterkey mount
+func TestExampleFsV06PlaintextNames(t *testing.T) {
+ pDir := tmpDir + "TestExampleFsV06PlaintextNames/"
+ cDir := "example_filesystems/v0.6-plaintextnames"
+ 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", "f4690202-595e4593-64c4f7e0-4dddd7d1-"+
+ "303147f9-0ca8aea2-966341a7-52ea8ae9", "-plaintextnames")
+ checkExampleContent(t, pDir)
+ unmount(pDir)
+ err = os.Remove(pDir)
+ if err != nil {
+ t.Error(err)
+ }
+}