test

package
v0.0.0-...-037d3bb Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 16, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SpicedbSchemaBootstrapFile = "../internal/data/spicedb-test-data/basic_schema.zed"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type LocalKesselContainer

type LocalKesselContainer struct {
	Name string

	HTTPport string
	// contains filtered or unexported fields
}

LocalKesselContainer struct that holds pointers to the localKesselContainer, dockertest pool and exposes the port

func CreateKesselAPIContainer

func CreateKesselAPIContainer(logger log.Logger) (*LocalKesselContainer, error)

func (*LocalKesselContainer) Close

func (l *LocalKesselContainer) Close()

type TokenResponse

type TokenResponse struct {
	AccessToken  string `json:"access_token"`
	ExpiresIn    int    `json:"expires_in"`
	RefreshToken string `json:"refresh_token"`
}

func GetJWTToken

func GetJWTToken(baseURL, username, password string) (*TokenResponse, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL