-
Notifications
You must be signed in to change notification settings - Fork 38
chore: fix self validation by pulling in most recent SpiceDB #624
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
Conversation
75362d0 to
80759b4
Compare
80759b4 to
8394c3b
Compare
tstirrat15
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See comments
| // SpiceDB returns an error when no schema is defined, which is expected | ||
| require.Error(t, err) | ||
| assert.Contains(t, err.Error(), "No schema has been defined") | ||
| assert.Contains(t, err.Error(), "no schema has been defined") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This error message changed in the new version.
| relationships := []*core.RelationTuple{} | ||
|
|
||
| nsDefs, err := reader.ListAllNamespaces(ctx) | ||
| schemaReader, err := reader.SchemaReader() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These changes are to use the new SchemaReader interface and stop using a part of the interface that was removed.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #624 +/- ##
=======================================
Coverage 42.46% 42.46%
=======================================
Files 38 38
Lines 5032 5032
=======================================
Hits 2137 2137
Misses 2639 2639
Partials 256 256 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Fixes #623
Description
This pulls in most recent
mainfor SpiceDB which fixes validation of schemas with theselfkeyword.Changes
Testing
Review. See that you can
go run ./cmd/zed/... validatethis schema: