Skip to content
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

Open
wants to merge 5 commits into
base: bosorawis-prototype-grant-test
Choose a base branch
from

Conversation

elimt
Copy link
Member

@elimt elimt commented Feb 21, 2025

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

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
@elimt elimt added this to the 0.20.x milestone Feb 21, 2025
@elimt elimt requested review from bosorawis and dkanney February 21, 2025 16:53
@elimt elimt requested a review from a team as a code owner February 21, 2025 16:53
Copy link
Collaborator

@bosorawis bosorawis left a 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!

@elimt elimt requested a review from bosorawis February 21, 2025 21:54
@@ -84,6 +86,36 @@ func TestGrants_ReadActions(t *testing.T) {
},
wantErr: handlers.ApiErrorWithCode(codes.PermissionDenied),
},
{
Copy link
Collaborator

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?

Copy link
Member Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants