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

Test double-revoking grants. #57

Merged
merged 4 commits into from
Sep 6, 2024
Merged

Test double-revoking grants. #57

merged 4 commits into from
Sep 6, 2024

Conversation

ggreer
Copy link
Contributor

@ggreer ggreer commented Sep 5, 2024

I had to test this manually by commenting out the happy path for revoking (since I always had a correct grant ID). It successfully revokes and handles the case of the user not being in the group (which means the grant was already revoked earlier).

return annos, nil
}

l.Error("aws-connector: Failed to delete group membership. Trying to fetch group membership in case grant ID is incorrect", zap.Error(err))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think that since we expect this to happen a lot, this is maybe a log level INFO?

@ggreer ggreer enabled auto-merge (squash) September 6, 2024 17:17
@ggreer ggreer merged commit bce8d71 into main Sep 6, 2024
3 checks passed
@ggreer ggreer deleted the ggreer/test-revoke branch September 6, 2024 17:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants