framework

package
v0.0.0-...-39db037 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2021 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetKubeconfig

func GetKubeconfig() string

GetKubeconfig returns the kubeconfig file path. Order: env KUBECONFIG; ~/.kube/config; "" (in case in-cluster configuration will be used).

Types

type Framework

type Framework struct {

	// Public arguments to render manifests.
	HttpBinReplicas      int
	SpringboardTarget    string
	NginxReplicas        int
	LocalRegistry        string
	NginxVolumeConfigMap string
	// contains filtered or unexported fields
}

Framework is the framework of apisix-mesh-agent e2e tests.

func NewDefaultFramework

func NewDefaultFramework() (*Framework, error)

NewDefaultFramework creates the framework with default options

func NewFramework

func NewFramework(opts *Options) (*Framework, error)

NewFramework creates the framework with the given options.

func (*Framework) CreateConfigMap

func (f *Framework) CreateConfigMap(name, key, value string) error

CreateConfigMap create a ConfigMap object which filled by the key/value specified by the caller.

func (*Framework) CreateResourceFromString

func (f *Framework) CreateResourceFromString(res string) error

CreateResourceFromString creates a Kubernetes resource from the given manifest.

func (*Framework) DeployNginxWithConfigMapVolume

func (f *Framework) DeployNginxWithConfigMapVolume(cm string) error

DeployNginxWithConfigMapVolume deploys Nginx with an extra volume (ConfigMap type).

func (*Framework) DeploySpringboardWithSpecificProxyTarget

func (f *Framework) DeploySpringboardWithSpecificProxyTarget(target string) error

DeploySpringboardWithSpecificProxyTarget deploys

func (*Framework) GetHttpBinServiceFQDN

func (f *Framework) GetHttpBinServiceFQDN() string

GetHttpBinServiceFQDN returns the FQDN description for HttpBin service.

func (*Framework) NewHTTPClientToSpringboard

func (f *Framework) NewHTTPClientToSpringboard() (*httpexpect.Expect, error)

NewHTTPClientToSpringboard creates a http client which sends requests to springboard.

type Options

type Options struct {
	Kubeconfig string
	// Control Plane type
	ControlPlane      string
	ControlPlaneImage string
	// The Helm Charts path to install the Control Plane.
	ControlPlaneChartsPath []string
}

Options contains options to customize the e2d framework.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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