Skip to content

OpenFGA

Testcontainers module for OpenFGA.

OpenFGAContainer's usage examples

You can start an OpenFGA container instance from any Java application by using:

OpenFGAContainer openfga = new OpenFGAContainer("openfga/openfga:v1.4.3")

Adding this module to your project dependencies

Add the following dependency to your pom.xml/build.gradle file:

testImplementation "org.testcontainers:openfga:1.19.7"
<dependency>
    <groupId>org.testcontainers</groupId>
    <artifactId>openfga</artifactId>
    <version>1.19.7</version>
    <scope>test</scope>
</dependency>