testutil

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2021 License: MPL-2.0 Imports: 29 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsE2EEnabled added in v0.1.3

func IsE2EEnabled(t *testing.T)

func TestDNS added in v0.1.3

func TestDNS(t *testing.T, c operator.ControlPlane, p operator.Provider)

func TestPodBarArgs added in v0.1.3

func TestPodBarArgs(t *testing.T, c operator.ControlPlane, p operator.Provider)

func TestPodFiles added in v0.1.3

func TestPodFiles(t *testing.T, c operator.ControlPlane, p operator.Provider)

func TestPodJobFailed added in v0.1.3

func TestPodJobFailed(t *testing.T, c operator.ControlPlane, p operator.Provider)

func TestPodLifecycle added in v0.1.3

func TestPodLifecycle(t *testing.T, c operator.ControlPlane, p operator.Provider)

func TestPodMount added in v0.1.3

func TestPodMount(t *testing.T, c operator.ControlPlane, p operator.Provider)

func TestProvider added in v0.1.3

func TestProvider(t *testing.T, p operator.Provider)

testing suite for the Provider

Types

type Client

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

Client is a sugarcoat version of the docker client

func NewDockerClient added in v0.1.1

func NewDockerClient() (*Client, error)

NewClient creates a new docker Client

func (*Client) Clean

func (c *Client) Clean()

func (*Client) Exec

func (c *Client) Exec(id string, path string, args ...string) (string, error)

func (*Client) GetIP

func (c *Client) GetIP(id string) string

func (*Client) Name added in v0.1.3

func (c *Client) Name() string

func (*Client) PullImage

func (c *Client) PullImage(ctx context.Context, image string) error

PullImage pulls a docker image

func (*Client) Remove

func (c *Client) Remove(id string) error

func (*Client) Resources added in v0.1.3

func (c *Client) Resources() operator.ProviderResources

func (*Client) Setup added in v0.1.1

func (c *Client) Setup(cc operator.ControlPlane) error

func (*Client) Start added in v0.1.1

func (c *Client) Start() error

func (*Client) Stop added in v0.1.3

func (c *Client) Stop() error

type TestServer added in v0.1.1

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

func TestOperator added in v0.1.1

func TestOperator(t *testing.T, factories ...operator.HandlerFactory) *TestServer

func (*TestServer) Apply added in v0.1.1

func (t *TestServer) Apply(c *proto.Component) string

func (*TestServer) Close added in v0.1.1

func (t *TestServer) Close()

func (*TestServer) WaitForTask added in v0.1.1

func (t *TestServer) WaitForTask(id string)

Jump to

Keyboard shortcuts

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