-
Notifications
You must be signed in to change notification settings - Fork 289
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
feat: add grants tests for billing resource #5559
base: bosorawis-prototype-grant-test
Are you sure you want to change the base?
Conversation
add test coverage for testing grants with billing resource. This tests `monthly-active-users` action with billing. billing does not support output_fields so there are no tests for that
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.
nitpick: Do you mind adding a case where you grant descendant
but not this
to a global role as well as one with role at the org level for negative tests?
Other than that, LGTM!
@@ -84,6 +86,36 @@ func TestGrants_ReadActions(t *testing.T) { | |||
}, | |||
wantErr: handlers.ApiErrorWithCode(codes.PermissionDenied), | |||
}, | |||
{ |
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.
are changes to this file accidentally committed?
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.
The tests should be for billing resource rather. Added that mistakenly. This is what happens when you're jumping from one test to another 😅. Just pushed a change to address this
add test coverage for testing grants with billing resource. This tests
monthly-active-users
action with billing.billing does not support
output_fields
so there are no tests for that