@@ -135,7 +135,7 @@ public void testPathAndFileWithSamePrefix() {
135135 }
136136
137137 public void testReadWithRelativePath () {
138- for (var dir : List .of ("config" , " home" )) {
138+ for (var dir : List .of ("home" )) {
139139 var tree = accessTree (entitlement (Map .of ("relative_path" , "foo" , "mode" , "read" , "relative_to" , dir )), List .of ());
140140 assertThat (tree .canRead (path ("foo" )), is (false ));
141141
@@ -152,7 +152,7 @@ public void testReadWithRelativePath() {
152152 }
153153
154154 public void testWriteWithRelativePath () {
155- for (var dir : List .of ("config" , " home" )) {
155+ for (var dir : List .of ("home" )) {
156156 var tree = accessTree (entitlement (Map .of ("relative_path" , "foo" , "mode" , "read_write" , "relative_to" , dir )), List .of ());
157157 assertThat (tree .canWrite (path ("/" + dir + "/foo" )), is (true ));
158158 assertThat (tree .canWrite (path ("/" + dir + "/foo/subdir" )), is (true ));
@@ -263,6 +263,12 @@ public void testTempDirAccess() {
263263 assertThat (tree .canWrite (TEST_PATH_LOOKUP .tempDir ()), is (true ));
264264 }
265265
266+ public void testConfigDirAccess () {
267+ var tree = FileAccessTree .of ("test-component" , "test-module" , FilesEntitlement .EMPTY , TEST_PATH_LOOKUP , List .of ());
268+ assertThat (tree .canRead (TEST_PATH_LOOKUP .configDir ()), is (true ));
269+ assertThat (tree .canWrite (TEST_PATH_LOOKUP .configDir ()), is (false ));
270+ }
271+
266272 public void testBasicExclusiveAccess () {
267273 var tree = accessTree (entitlement ("foo" , "read" ), exclusivePaths ("test-component" , "test-module" , "foo" ));
268274 assertThat (tree .canRead (path ("foo" )), is (true ));
0 commit comments