Documentation ¶
Index ¶
- Constants
- Variables
- func BootstrapGroup(ctx context.Context, cl frontierv1beta1.FrontierServiceClient, ...) error
- func BootstrapOrganizations(ctx context.Context, cl frontierv1beta1.FrontierServiceClient, ...) error
- func BootstrapProject(ctx context.Context, cl frontierv1beta1.FrontierServiceClient, ...) error
- func BootstrapUsers(ctx context.Context, cl frontierv1beta1.FrontierServiceClient, ...) error
- func CreateAdminClient(ctx context.Context, host string) (frontierv1beta1.AdminServiceClient, func() error, error)
- func CreateClient(ctx context.Context, host string) (frontierv1beta1.FrontierServiceClient, func() error, error)
- func EchoServer(network *docker.Network, pool *dockertest.Pool) (string, *dockertest.Resource, error)
- func GetFreePort() (int, error)
- func MigrateFrontier(logger *log.Zap, appConfig *config.Frontier) error
- func StartFrontier(logger *log.Zap, appConfig *config.Frontier)
- func StartPG(network *docker.Network, pool *dockertest.Pool, dbName string) (connStringInternal, connStringExternal string, res *dockertest.Resource, ...)
- func StartSpiceDB(logger log.Logger, network *docker.Network, pool *dockertest.Pool, ...) (extPort string, close func() error, err error)
- func StartStripeMock(logger log.Logger, network *docker.Network, pool *dockertest.Pool) (extPort string, close func() error, err error)
- type TestBench
Constants ¶
View Source
const ( OrgAdminEmail = "admin1-group1-org1@raystack.org" IdentityHeader = "X-Frontier-Email" )
Variables ¶
View Source
var (
RuleCacheRefreshDelay = time.Minute * 2
)
Functions ¶
func BootstrapGroup ¶
func BootstrapGroup(ctx context.Context, cl frontierv1beta1.FrontierServiceClient, creatorEmail string) error
func BootstrapOrganizations ¶
func BootstrapOrganizations(ctx context.Context, cl frontierv1beta1.FrontierServiceClient, creatorEmail string) error
func BootstrapProject ¶
func BootstrapProject(ctx context.Context, cl frontierv1beta1.FrontierServiceClient, creatorEmail string) error
func BootstrapUsers ¶
func BootstrapUsers(ctx context.Context, cl frontierv1beta1.FrontierServiceClient, creatorEmail string) error
func CreateAdminClient ¶
func CreateAdminClient(ctx context.Context, host string) (frontierv1beta1.AdminServiceClient, func() error, error)
func CreateClient ¶
func CreateClient(ctx context.Context, host string) (frontierv1beta1.FrontierServiceClient, func() error, error)
func EchoServer ¶
func GetFreePort ¶
func StartSpiceDB ¶
Types ¶
type TestBench ¶
type TestBench struct { Pool *dockertest.Pool Network *docker.Network Resources []*dockertest.Resource Client frontierv1beta1.FrontierServiceClient AdminClient frontierv1beta1.AdminServiceClient // contains filtered or unexported fields }
Click to show internal directories.
Click to hide internal directories.