Class TestEntitlementsRule
java.lang.Object
org.elasticsearch.entitlement.bootstrap.TestEntitlementsRule
- All Implemented Interfaces:
org.junit.rules.TestRule
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddEntitledNodePaths(Settings settings, Path configPath) Temporarily adds node paths based entitlements based on a node'ssettingsandconfigPathuntil the returned handle is closed.org.junit.runners.model.Statementapply(org.junit.runners.model.Statement base, org.junit.runner.Description description) voidRevoke all entitled node paths.
-
Constructor Details
-
TestEntitlementsRule
public TestEntitlementsRule()
-
-
Method Details
-
apply
public org.junit.runners.model.Statement apply(org.junit.runners.model.Statement base, org.junit.runner.Description description) - Specified by:
applyin interfaceorg.junit.rules.TestRule
-
addEntitledNodePaths
Temporarily adds node paths based entitlements based on a node'ssettingsandconfigPathuntil the returned handle is closed.- See Also:
-
revokeAllEntitledNodePaths
public void revokeAllEntitledNodePaths()Revoke all entitled node paths.
-