-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
Conversation
…ng, changed Errorf to Fatalf for fail to construct engine
…helper function to util.go
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.
@wflms20110333 Thanks a lot for the review! LGTM!
@@ -66,6 +75,18 @@ func (mock valMock) Value() interface{} { | |||
return mock.val | |||
} | |||
|
|||
type addrMock struct { |
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.
Is it possible to use a net.IPAddr
instead? I don't see this mock addr adding much value here.
Thanks @wflms20110333 for the great work and @easwars for the review! |
@ZhenLian
Also added helper functions
compileCel
andconvertStringToCheckedExpr
, which should be removed when #3805 is merged.