@@ -33,12 +33,7 @@ class EntitlementsTestRule implements TestRule {
3333
3434 // entitlements that test methods may use, see EntitledActions
3535 private static final PolicyBuilder ENTITLED_POLICY = (builder , tempDir ) -> {
36- builder .value (
37- Map .of (
38- "write_system_properties" ,
39- Map .of ("properties" , List .of ("org.elasticsearch.entitlement.qa.selfTest" ))
40- )
41- );
36+ builder .value (Map .of ("write_system_properties" , Map .of ("properties" , List .of ("org.elasticsearch.entitlement.qa.selfTest" ))));
4237 builder .value (Map .of ("file" , Map .of ("path" , tempDir .resolve ("read_dir" ), "mode" , "read" )));
4338 builder .value (Map .of ("file" , Map .of ("path" , tempDir .resolve ("read_write_dir" ), "mode" , "read_write" )));
4439 builder .value (Map .of ("file" , Map .of ("path" , tempDir .resolve ("read_file" ), "mode" , "read" )));
@@ -67,9 +62,7 @@ protected void before() throws Throwable {
6762 }
6863 };
6964 cluster = ElasticsearchCluster .local ()
70- .module ("entitled" , spec ->
71- buildEntitlements (spec , "org.elasticsearch.entitlement.qa.entitled" , ENTITLED_POLICY )
72- )
65+ .module ("entitled" , spec -> buildEntitlements (spec , "org.elasticsearch.entitlement.qa.entitled" , ENTITLED_POLICY ))
7366 .module ("entitlement-test-plugin" , spec -> setupEntitlements (spec , modular , policyBuilder ))
7467 .systemProperty ("es.entitlements.enabled" , "true" )
7568 .systemProperty ("es.entitlements.testdir" , () -> testDir .getRoot ().getAbsolutePath ())
0 commit comments