github.com/openfga/openfga@v1.5.4-rc1/tests/writemodel/writemodel_test.go (about)

     1  package writemodel
     2  
     3  import (
     4  	"testing"
     5  
     6  	openfgav1 "github.com/openfga/api/proto/openfga/v1"
     7  
     8  	"github.com/openfga/openfga/internal/server/config"
     9  	"github.com/openfga/openfga/pkg/testutils"
    10  	"github.com/openfga/openfga/tests"
    11  )
    12  
    13  func TestWriteAuthorizationModel(t *testing.T) {
    14  	cfg := config.MustDefaultConfig()
    15  	cfg.Log.Level = "error"
    16  	cfg.Datastore.Engine = "memory"
    17  
    18  	tests.StartServer(t, cfg)
    19  
    20  	conn := testutils.CreateGrpcConnection(t, cfg.GRPC.Addr)
    21  
    22  	RunAllTests(t, openfgav1.NewOpenFGAServiceClient(conn))
    23  }