Skip to content

Commit 6bfcd7d

Browse files
committed
test
1 parent 20c7192 commit 6bfcd7d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

libs/entitlement/src/test/java/org/elasticsearch/entitlement/runtime/policy/PolicyParserTests.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,8 @@ public void testParseFiles() throws IOException {
182182
mode: "read"
183183
- path: '%s'
184184
mode: "read_write"
185-
- config_path_setting: foo.bar
185+
- path_setting: foo.bar
186+
basedir_if_relative: config
186187
mode: read
187188
""", relativePathToFile, relativePathToDir, TEST_ABSOLUTE_PATH_TO_FILE).getBytes(StandardCharsets.UTF_8)),
188189
"test-policy.yaml",
@@ -199,7 +200,7 @@ public void testParseFiles() throws IOException {
199200
Map.of("relative_path", relativePathToFile, "mode", "read_write", "relative_to", "data"),
200201
Map.of("relative_path", relativePathToDir, "mode", "read", "relative_to", "config"),
201202
Map.of("path", TEST_ABSOLUTE_PATH_TO_FILE, "mode", "read_write"),
202-
Map.of("config_path_setting", "foo.bar", "mode", "read")
203+
Map.of("path_setting", "foo.bar", "basedir_if_relative", "config", "mode", "read")
203204
)
204205
)
205206
)

0 commit comments

Comments
 (0)