-
Notifications
You must be signed in to change notification settings - Fork 780
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
[gator test] Support referential constraints #1574
[gator test] Support referential constraints #1574
Conversation
5b27600
to
98d1b6b
Compare
Codecov Report
@@ Coverage Diff @@
## master #1574 +/- ##
==========================================
+ Coverage 53.67% 54.03% +0.36%
==========================================
Files 93 93
Lines 7995 8080 +85
==========================================
+ Hits 4291 4366 +75
- Misses 3364 3371 +7
- Partials 340 343 +3
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
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.
LGTM, 1 nit
2eb0ea4
to
0d01cac
Compare
Could you fill out the rest of the description? |
Done. |
4519e76
to
380ba92
Compare
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.
LGTM
Signed-off-by: Will Beason <willbeason@google.com>
Signed-off-by: Will Beason <willbeason@google.com>
This reduces test runtime from 7s to ~0.8s on my machine. Block usage of ToVersionless() behind mutex since it isn't yet threadsafe. Allow caller to pass scheme into test runner. This makes the test runner more extensible and prevents tests which need to manipulate scheme from having data races. Signed-off-by: Will Beason <willbeason@google.com>
Signed-off-by: Will Beason <willbeason@google.com>
Make Test.Cases a slice of pointers to avoid copying. Signed-off-by: Will Beason <willbeason@google.com>
Signed-off-by: Will Beason <willbeason@google.com>
380ba92
to
9de100e
Compare
Support
gator test
for referential constraints.To keep tests hermetic, we now instantiate a new OPA client for each test case. Otherwise, we risk crosstalk between tests if resetting Data in the OPA client fails.
Other minor changes: