-
Notifications
You must be signed in to change notification settings - Fork 356
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
test: Add test for filtering user by Role Id #10095
Conversation
✅ Deploy Preview for determined-ui ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #10095 +/- ##
==========================================
- Coverage 54.43% 54.43% -0.01%
==========================================
Files 1267 1267
Lines 159371 159371
Branches 3631 3631
==========================================
- Hits 86749 86748 -1
- Misses 72488 72489 +1
Partials 134 134
Flags with carried forward coverage won't be shown. Click here to find out more. |
}) | ||
require.NoError(t, err) | ||
require.Len(t, resp.Users, 1) | ||
require.Equal(t, int32(user0.ID), resp.Users[0].Id) |
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.
we only want user0
and not user1
because the query filters to global assignments (ref here) right?
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.
Exactly
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!
Ticket
Description
Add test for filtering user by Role id.
Migration of this PR
Test Plan
CI pass.
Checklist
docs/release-notes/
See Release Note for details.