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: add integration tests #3809

Merged
merged 11 commits into from
Aug 26, 2020

Conversation

wflms20110333
Copy link
Contributor

@ZhenLian
Also added helper functions compileCel and convertStringToCheckedExpr, which should be removed when #3805 is merged.

@ZhenLian ZhenLian self-requested a review August 12, 2020 21:01
security/authorization/engine/engine_test.go Outdated Show resolved Hide resolved
security/authorization/engine/engine_test.go Outdated Show resolved Hide resolved
@wflms20110333 wflms20110333 requested a review from ZhenLian August 18, 2020 17:27
security/authorization/engine/engine_test.go Show resolved Hide resolved
security/authorization/engine/engine_test.go Outdated Show resolved Hide resolved
security/authorization/engine/engine_test.go Show resolved Hide resolved
security/authorization/engine/util.go Outdated Show resolved Hide resolved
@wflms20110333 wflms20110333 requested a review from ZhenLian August 21, 2020 05:43
Copy link
Contributor

@ZhenLian ZhenLian left a comment

Choose a reason for hiding this comment

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

@wflms20110333 Thanks a lot for the review! LGTM!

@ZhenLian ZhenLian requested a review from easwars August 21, 2020 07:32
@ZhenLian
Copy link
Contributor

ZhenLian commented Aug 21, 2020

@easwars Can you please take a look? This is to add the integration tests for security/authorization, with the help of PR #3822 you just reviewed. Thank you so much!

security/authorization/engine/engine_test.go Outdated Show resolved Hide resolved
security/authorization/engine/engine_test.go Outdated Show resolved Hide resolved
security/authorization/engine/engine_test.go Outdated Show resolved Hide resolved
security/authorization/engine/engine_test.go Outdated Show resolved Hide resolved
security/authorization/engine/engine_test.go Outdated Show resolved Hide resolved
security/authorization/engine/engine_test.go Outdated Show resolved Hide resolved
security/authorization/engine/engine_test.go Outdated Show resolved Hide resolved
security/authorization/engine/engine_test.go Outdated Show resolved Hide resolved
security/authorization/engine/engine_test.go Outdated Show resolved Hide resolved
security/authorization/engine/engine_test.go Outdated Show resolved Hide resolved
@wflms20110333 wflms20110333 requested a review from easwars August 21, 2020 18:00
@@ -66,6 +75,18 @@ func (mock valMock) Value() interface{} {
return mock.val
}

type addrMock struct {
Copy link
Contributor

Choose a reason for hiding this comment

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

Is it possible to use a net.IPAddr instead? I don't see this mock addr adding much value here.

security/authorization/engine/engine_test.go Outdated Show resolved Hide resolved
security/authorization/engine/engine_test.go Outdated Show resolved Hide resolved
security/authorization/engine/engine_test.go Outdated Show resolved Hide resolved
@ZhenLian
Copy link
Contributor

Thanks @wflms20110333 for the great work and @easwars for the review!

@ZhenLian ZhenLian merged commit cc8e63c into grpc:master Aug 26, 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
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants