mirror of https://github.com/status-im/consul.git
catalog: fix for new method argument (#18978)
This commit is contained in:
parent
ec6189fd2f
commit
de231bbbdd
|
@ -323,7 +323,7 @@ func SimplifyFailoverPolicy(svc *pbcatalog.Service, failover *pbcatalog.Failover
|
|||
return failover
|
||||
}
|
||||
|
||||
func aclReadHookFailoverPolicy(authorizer acl.Authorizer, authzContext *acl.AuthorizerContext, id *pbresource.ID) error {
|
||||
func aclReadHookFailoverPolicy(authorizer acl.Authorizer, authzContext *acl.AuthorizerContext, id *pbresource.ID, _ *pbresource.Resource) error {
|
||||
// FailoverPolicy is name-aligned with Service
|
||||
serviceName := id.Name
|
||||
|
||||
|
|
|
@ -726,7 +726,7 @@ func TestFailoverPolicyACLs(t *testing.T) {
|
|||
authz = acl.NewChainedAuthorizer([]acl.Authorizer{authz, acl.DenyAll()})
|
||||
|
||||
t.Run("read", func(t *testing.T) {
|
||||
err := reg.ACLs.Read(authz, &acl.AuthorizerContext{}, res.Id)
|
||||
err := reg.ACLs.Read(authz, &acl.AuthorizerContext{}, res.Id, nil)
|
||||
checkF(t, tc.readOK, err)
|
||||
})
|
||||
t.Run("write", func(t *testing.T) {
|
||||
|
|
Loading…
Reference in New Issue