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

security/authorization: util function for converting CEL expression string #3822

Merged
merged 2 commits into from
Aug 19, 2020

Conversation

ZhenLian
Copy link
Contributor

This is a fork for #3805.
This PR aims to add a util function to convert a CEL expression string to the complied format(cel.CheckedExpr).

security/authorization/util/util_test.go Outdated Show resolved Hide resolved
security/authorization/util/util_test.go Outdated Show resolved Hide resolved
} {
test := test
t.Run(test.desc, func(t *testing.T) {
t.Parallel()
Copy link
Contributor

Choose a reason for hiding this comment

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

Any specific reason to run these tests in parallel?
Do they run for long? Do they block on something, therefore running in parallel makes sense?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No, I just saw the usage of t.Parallel somewhere, and thought it might help speed up the tests.
I'll remove it since this is a small test.

security/authorization/util/util_test.go Outdated Show resolved Hide resolved
security/authorization/util/util_test.go Outdated Show resolved Hide resolved
@easwars easwars added the Type: Feature New features or improvements in behavior label Aug 17, 2020
@ZhenLian ZhenLian requested a review from easwars August 18, 2020 17:52
@ZhenLian
Copy link
Contributor Author

@easwars Thanks a lot for the review! Merging now...

@ZhenLian ZhenLian merged commit f640ae6 into grpc:master Aug 19, 2020
@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 25, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Type: Feature New features or improvements in behavior
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants