framework

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2021 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(t *testing.T, providers []*Provider, testCases []*TestCase)

Types

type Container

type Container struct {
	// contains filtered or unexported fields
}

func NewContainer

func NewContainer(t *testing.T, repo, tag string, env []string) *Container

func (*Container) Close

func (c *Container) Close(t *testing.T)

func (*Container) GetPort

func (c *Container) GetPort(id string) string

type Provider

type Provider struct {
	// contains filtered or unexported fields
}

func NewProvider

func NewProvider(t *testing.T, ctx context.Context, jwt string, config *server.Config) *Provider

creates an starts a new factory instance

func (*Provider) Teardown

func (f *Provider) Teardown(t *testing.T)

type TestCase

type TestCase struct {
	Name string
	Func func(t *testing.T, clientset *stategate_client_go.ClientSet)
}

Jump to

Keyboard shortcuts

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