Skip to content

test path parameter is broken since upgrading to openFGA CLI 0.7.7 #32

@jhonny-on

Description

@jhonny-on

openFGA CLI released v 0.7.7 yesterday, which included [this change](openfga/cli#349. It changes the behaviour of the --tests parameter to work relative to the test file location, rather than to always start from the project root folder.

This change causes this github action to break - the test_path parameter is defined as The path to your store test file or folder relative to the root of your project., which is now wrong.

the issue seems to be with using the output of the find command here to feed the --tests CLI command here.
but now the behaviour of --tests has changed..

example output from a failed run of the action -

Running FGA test file my_project/infrastructure/fga/tests.fga.yaml
 Error: failed to read test file my_project/infrastructure/fga/tests.fga.yaml: failed to read file "my_project/infrastructure/fga/tests.fga.yaml" (resolved path: "my_project/infrastructure/fga/my_project/infrastructure/fga/tests.fga.yaml"): open my_project/infrastructure/fga/my_project/infrastructure/fga/tests.fga.yaml: no such file or directory

the same error occurs whether I configure test_path as ., or as my_project/infrastructure/fga

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions