Class TestEntitlementsRule

java.lang.Object
org.elasticsearch.entitlement.bootstrap.TestEntitlementsRule
All Implemented Interfaces:
org.junit.rules.TestRule

public class TestEntitlementsRule extends Object implements org.junit.rules.TestRule
  • 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:
      apply in interface org.junit.rules.TestRule
    • addEntitledNodePaths

      public Closeable addEntitledNodePaths(Settings settings, Path configPath)
      Temporarily adds node paths based entitlements based on a node's settings and configPath until the returned handle is closed.
      See Also:
      • PathLookup
    • revokeAllEntitledNodePaths

      public void revokeAllEntitledNodePaths()
      Revoke all entitled node paths.