github.com/openfga/openfga@v1.5.4-rc1/internal/test/listobjects/listobjects.go (about)

     1  package listobjectstest
     2  
     3  import (
     4  	openfgav1 "github.com/openfga/api/proto/openfga/v1"
     5  	"google.golang.org/protobuf/types/known/structpb"
     6  )
     7  
     8  type Assertion struct {
     9  	Request          *openfgav1.ListObjectsRequest
    10  	ContextualTuples []*openfgav1.TupleKey `json:"contextualTuples"`
    11  	Context          *structpb.Struct
    12  	Expectation      []string
    13  	ErrorCode        int `json:"errorCode"` // If ErrorCode is non-zero then we expect that the ListObjects call failed.
    14  }