@@ -20,7 +20,7 @@ import (
2020 "github.com/cerbos/cerbos-go-adapters/ent-adapter/db"
2121 "github.com/cerbos/cerbos-go-adapters/ent-adapter/ent"
2222 "github.com/cerbos/cerbos-sdk-go/cerbos"
23- responsev1 "github.com/cerbos/cerbos/api/genpb/cerbos/response /v1"
23+ enginev1 "github.com/cerbos/cerbos/api/genpb/cerbos/engine /v1"
2424 "github.com/ghodss/yaml"
2525 "github.com/ory/dockertest/v3"
2626 "github.com/ory/dockertest/v3/docker"
@@ -47,10 +47,10 @@ func Test_BuildPredicate(t *testing.T) {
4747 for _ , tt := range tests {
4848 t .Run (tt .SQL , func (t * testing.T ) {
4949 is := require .New (t )
50- e := new (responsev1. ResourcesQueryPlanResponse_Expression_Operand )
50+ e := new (enginev1. PlanResourcesFilter_Expression_Operand )
5151 err := protojson .Unmarshal (tt .Input , e )
5252 is .NoError (err )
53- p , err := BuildPredicate (e .Node .(* responsev1. ResourcesQueryPlanResponse_Expression_Operand_Expression ))
53+ p , err := BuildPredicate (e .Node .(* enginev1. PlanResourcesFilter_Expression_Operand_Expression ))
5454 is .NoError (err )
5555 p .SetDialect (dialect .Postgres )
5656 q , args := p .Query ()
@@ -181,7 +181,7 @@ func TestIntegration(t *testing.T) {
181181 WithRoles (user .Role ).
182182 WithAttr ("department" , user .Department )
183183
184- queryPlan , err := c .ResourcesQueryPlan (ctx , principal , cerbos .NewResource ("contact" , "" ), "read" )
184+ queryPlan , err := c .PlanResources (ctx , principal , cerbos .NewResource ("contact" , "" ), "read" )
185185 is .NoError (err )
186186
187187 filter := queryPlan .GetFilter ()
0 commit comments