Clarify that tests are run locally when specifying a model .fga.yaml + store-id
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 68/100
Research direction
Start at the model test CLI entry point and trace handling of --tests store.fga.yaml with --store-id. Run the example command to confirm the current behavior, then make the output clarify when a model in the file causes local execution; preserve server execution when fga.yaml has no model.
Written by the indexing model from the issue text.
Description
When you run model test using a file that has a model and we specify the store-id, the store-id is ignored and tests are run locally on the CLI.
fga model test --tests store.fga.yaml --store-id 01HYX4FWK9P2VFRQ0YABYNQ447
I think that's the right behavior, but we should display a message clarifying it:
$ fga model test --tests store.fga.yaml --store-id 01HYX4FWK9P2VFRQ0YABYNQ447
Ignoring store-id parameter, running tests locally using model from store.fga.yaml
# Test Summary #
Tests 2/2 passing
Checks 4/4 passing
Note that if the fga.yaml file does NOT have a model, tests are run in the OpenFGA server.
- Dominant language
- Go
- Stars
- 102
- Forks
- 49
- Avg merge
- 1d 1h
- Merged PRs (30d)
- 16
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from openfga/cli
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
Difficulty 4/5 3-5 days Newbie friendliness 48/100
-
Difficulty 3/5 1-2 days Newbie friendliness 48/100
-
Difficulty 4/5 3-5 days Newbie friendliness 52/100
Similar issues
-
Difficulty 1/5 Under an hour Newbie friendliness 84/100
-
enhancement needs triage
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
kind/cleanup
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
kubernetes-sigs/kueue#15947 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
sympozium-ai/sympozium#627 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 86/100