Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TestConfig

type TestConfig struct {
	GatewayNamespace string `envconfig:"default=gateway-tests"`

	MockServiceURL  string `envconfig:"default=http://mock:8080"`
	MockServicePort int32  `envconfig:"default=8080"`
}

func ReadConfig

func ReadConfig() (TestConfig, error)

func (TestConfig) String

func (c TestConfig) String() string

type TestSuite

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

func NewTestSuite

func NewTestSuite(t *testing.T) *TestSuite

func (*TestSuite) CallAPIThroughGateway

func (ts *TestSuite) CallAPIThroughGateway(t *testing.T, secretName, apiName, path string) *http.Response

func (*TestSuite) CheckApplicationGatewayHealth

func (ts *TestSuite) CheckApplicationGatewayHealth(t *testing.T)

func (*TestSuite) Cleanup

func (ts *TestSuite) Cleanup(t *testing.T)

func (*TestSuite) CreateSecret

func (ts *TestSuite) CreateSecret(t *testing.T, apiName string, proxyConfig proxyconfig2.ProxyDestinationConfig) string

func (*TestSuite) DeleteSecret

func (ts *TestSuite) DeleteSecret(t *testing.T, secretName string)

func (*TestSuite) GetMockServiceURL

func (ts *TestSuite) GetMockServiceURL() string

func (*TestSuite) Setup

func (ts *TestSuite) Setup(t *testing.T)

func (*TestSuite) WaitForAccessToAPIServer

func (ts *TestSuite) WaitForAccessToAPIServer(t *testing.T)

WaitForAccessToAPIServer waits for access to API Server which might be delayed by initialization of Istio sidecar

Source Files

Directories

Path Synopsis
testkit