Skip to content

Support multiple tuple_files in .fga.yaml files #499

@aaguiarz

Description

@aaguiarz

When working with Modular Models, you'd want to keep the tests together with the module, so each team can own their own tests.

In the https://github.com/openfga/sample-stores/tree/main/stores example, we show that approach with a core.fga.yaml, wiki.fga.yaml, issue-tracker.fga.yaml test files.

For the tests for the wiki and issue-tracker module to pass, they need certain tuples that belong to the core module, so they include a core-tuples.yaml file using the tuple_file directlve.

However, in more complex scenarios, the tests for one module could require tuples from multiple modules. Currently, you would need to duplicate those tuples in each .fga.yaml file. Ideally, I can have a set of YAML files with tuples and I can include them in every .fga.yaml file.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions