From e3f35d38b599801312e982c19b191aa5dd76f94d Mon Sep 17 00:00:00 2001 From: Jakob Unterwurzacher Date: Tue, 8 Dec 2015 16:17:19 +0100 Subject: [PATCH] tests: add v0.6 example filesystem with EME --- integration_tests/example_filesystems/abs | 1 + integration_tests/example_filesystems/rel | 1 + .../example_filesystems/status.txt | 1 + .../v0.6/9pOs0yjJI5A67pv5CnqomQ== | 1 + .../v0.6/G79Zdu41H3bgwdaQlrz-dg== | 1 + .../v0.6/RuYvQG_raW_-H_LcyJC4LQ== | Bin 0 -> 56 bytes .../example_filesystems/v0.6/gocryptfs.conf | 15 ++++++++++++ .../example_filesystems/v0.6/gocryptfs.diriv | 1 + integration_tests/example_filesystems_test.go | 22 ++++++++++++++++++ 9 files changed, 43 insertions(+) create mode 120000 integration_tests/example_filesystems/abs create mode 120000 integration_tests/example_filesystems/rel create mode 100644 integration_tests/example_filesystems/status.txt create mode 120000 integration_tests/example_filesystems/v0.6/9pOs0yjJI5A67pv5CnqomQ== create mode 120000 integration_tests/example_filesystems/v0.6/G79Zdu41H3bgwdaQlrz-dg== create mode 100644 integration_tests/example_filesystems/v0.6/RuYvQG_raW_-H_LcyJC4LQ== create mode 100644 integration_tests/example_filesystems/v0.6/gocryptfs.conf create mode 100644 integration_tests/example_filesystems/v0.6/gocryptfs.diriv 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 0000000000000000000000000000000000000000..5821d876056177c789114f611c1f0e6090f267a4 GIT binary patch literal 56 zcmV-80LT9T0@8HX5VCVUrCQ_KN6DfmoyrGBuNp7imYiJtS`Shq>={T6!r?iehqYxz O`(v9MxyDH-q81D0t{IvD literal 0 HcmV?d00001 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) + } +}