-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support importing assertions along with the store #224
Comments
I would also love a |
Hey all, when we are talking about importing assertions, it is only the |
Yes, you'd convert check tests to assertions. |
Yes, but then there are other assertion types too like the
|
No, they should be ignored for now. We should only import assertions for Check |
Hello, I need some help with this: Lines 50 to 59 in 6c3b7aa
I tried to refactor it here - sujitha-av@df157a1 But CreateStoreWithModel requires a *client.OpenFgaClient due to this line Line 74 in 6c3b7aa
The problem is there is a mock for client of type client.SdkClient but not for OpenFgaClient which implements it and has extra methods like SetStoreId . Any help on how to proceed is appreciated, thanks!
|
@sujitha-av I just opened a PR in the go-sdk to add the getter/setter for Store ID to the We need to maintain the |
Sure, thank you! |
@sujitha-av FYI we just merged #436 to |
Hey @sujitha-av, I just wanted to check in and see if there's any assistance we can provide. If the work is complete and you're just needing to add tests, feel free to open a PR as the testing in this project isn't necessarily the most straight forward due to mocking etc. |
Thanks @ewanharris. Yep, got carried away in testing other parts of import. I have opened a PR for just this now. |
Currently we support importing a store file using
fga import store --file=store.fga.yaml
But this doesn't import the assertions present along with the store.
Importing the assertions can be helpful to be accessed from the playground and do the checks.
The text was updated successfully, but these errors were encountered: