aboutsummaryrefslogtreecommitdiff
path: root/integration_tests
diff options
context:
space:
mode:
authorJakob Unterwurzacher2015-12-08 16:17:19 +0100
committerJakob Unterwurzacher2015-12-08 16:17:19 +0100
commite3f35d38b599801312e982c19b191aa5dd76f94d (patch)
tree58f6e79f3451f12e6820c854e4d9f3ed3e6c519d /integration_tests
parentc6dacd6f913b4c6eb7a8917af49190dce32db108 (diff)
tests: add v0.6 example filesystem with EME
Diffstat (limited to 'integration_tests')
l---------integration_tests/example_filesystems/abs1
l---------integration_tests/example_filesystems/rel1
-rw-r--r--integration_tests/example_filesystems/status.txt1
l---------integration_tests/example_filesystems/v0.6/9pOs0yjJI5A67pv5CnqomQ==1
l---------integration_tests/example_filesystems/v0.6/G79Zdu41H3bgwdaQlrz-dg==1
-rw-r--r--integration_tests/example_filesystems/v0.6/RuYvQG_raW_-H_LcyJC4LQ==bin0 -> 56 bytes
-rw-r--r--integration_tests/example_filesystems/v0.6/gocryptfs.conf15
-rw-r--r--integration_tests/example_filesystems/v0.6/gocryptfs.diriv1
-rw-r--r--integration_tests/example_filesystems_test.go22
9 files changed, 43 insertions, 0 deletions
diff --git a/integration_tests/example_filesystems/abs b/integration_tests/example_filesystems/abs
new file mode 120000
index 0000000..e1740fa
--- /dev/null
+++ b/integration_tests/example_filesystems/abs
@@ -0,0 +1 @@
+/a/b/c/d \ No newline at end of file
diff --git a/integration_tests/example_filesystems/rel b/integration_tests/example_filesystems/rel
new file mode 120000
index 0000000..8279c75
--- /dev/null
+++ b/integration_tests/example_filesystems/rel
@@ -0,0 +1 @@
+status.txt \ No newline at end of file
diff --git a/integration_tests/example_filesystems/status.txt b/integration_tests/example_filesystems/status.txt
new file mode 100644
index 0000000..68300b8
--- /dev/null
+++ b/integration_tests/example_filesystems/status.txt
@@ -0,0 +1 @@
+It works!
diff --git a/integration_tests/example_filesystems/v0.6/9pOs0yjJI5A67pv5CnqomQ== b/integration_tests/example_filesystems/v0.6/9pOs0yjJI5A67pv5CnqomQ==
new file mode 120000
index 0000000..11b0234
--- /dev/null
+++ b/integration_tests/example_filesystems/v0.6/9pOs0yjJI5A67pv5CnqomQ==
@@ -0,0 +1 @@
+OoEsnmmWQzBSl3E471yZkI2t2vB4SteL_l1J60HYXZ7g0W3CkTM= \ No newline at end of file
diff --git a/integration_tests/example_filesystems/v0.6/G79Zdu41H3bgwdaQlrz-dg== b/integration_tests/example_filesystems/v0.6/G79Zdu41H3bgwdaQlrz-dg==
new file mode 120000
index 0000000..b72a393
--- /dev/null
+++ b/integration_tests/example_filesystems/v0.6/G79Zdu41H3bgwdaQlrz-dg==
@@ -0,0 +1 @@
+4IGGj21t4IYWI76F46v3gG-JwTcw_QxGDFMSk_19bJav2WNw \ No newline at end of file
diff --git a/integration_tests/example_filesystems/v0.6/RuYvQG_raW_-H_LcyJC4LQ== b/integration_tests/example_filesystems/v0.6/RuYvQG_raW_-H_LcyJC4LQ==
new file mode 100644
index 0000000..5821d87
--- /dev/null
+++ b/integration_tests/example_filesystems/v0.6/RuYvQG_raW_-H_LcyJC4LQ==
Binary files differ
diff --git a/integration_tests/example_filesystems/v0.6/gocryptfs.conf b/integration_tests/example_filesystems/v0.6/gocryptfs.conf
new file mode 100644
index 0000000..1c72781
--- /dev/null
+++ b/integration_tests/example_filesystems/v0.6/gocryptfs.conf
@@ -0,0 +1,15 @@
+{
+ "EncryptedKey": "/PhLwDblkFRGfoIA0egXikG0ZSZTWrOOoFZJPPX0R8JgU5+XnT2M2rxUzHIKKeuGoqZN55phgJjhTu0J",
+ "ScryptObject": {
+ "Salt": "YSHRXpcWYp95npMxAy9cf27LoaPR3gvrFpk3Xhg2tM8=",
+ "N": 1024,
+ "R": 8,
+ "P": 1,
+ "KeyLen": 32
+ },
+ "Version": 2,
+ "FeatureFlags": [
+ "DirIV",
+ "EMENames"
+ ]
+} \ No newline at end of file
diff --git a/integration_tests/example_filesystems/v0.6/gocryptfs.diriv b/integration_tests/example_filesystems/v0.6/gocryptfs.diriv
new file mode 100644
index 0000000..ec9f503
--- /dev/null
+++ b/integration_tests/example_filesystems/v0.6/gocryptfs.diriv
@@ -0,0 +1 @@
+éœ(ûò'<˜7§Q‹ \ No newline at end of file
diff --git a/integration_tests/example_filesystems_test.go b/integration_tests/example_filesystems_test.go
index a04e67e..c3f4966 100644
--- a/integration_tests/example_filesystems_test.go
+++ b/integration_tests/example_filesystems_test.go
@@ -87,3 +87,25 @@ func TestExampleFsV05(t *testing.T) {
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)
+ }
+}