gateway

package
v0.0.0-...-80f85ff Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2023 License: Apache-2.0 Imports: 23 Imported by: 0

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

Directories

Path Synopsis
testkit

Jump to

Keyboard shortcuts

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