Documentation ¶
Index ¶
- func GetKubeconfig() string
- type Framework
- func (f *Framework) CreateConfigMap(name, key, value string) error
- func (f *Framework) CreateResourceFromString(res string) error
- func (f *Framework) DeployNginxWithConfigMapVolume(cm string) error
- func (f *Framework) DeploySpringboardWithSpecificProxyTarget(target string) error
- func (f *Framework) GetHttpBinServiceFQDN() string
- func (f *Framework) NewHTTPClientToSpringboard() (*httpexpect.Expect, error)
- type Options
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 ¶
NewDefaultFramework creates the framework with default options
func NewFramework ¶
NewFramework creates the framework with the given options.
func (*Framework) CreateConfigMap ¶
CreateConfigMap create a ConfigMap object which filled by the key/value specified by the caller.
func (*Framework) CreateResourceFromString ¶
CreateResourceFromString creates a Kubernetes resource from the given manifest.
func (*Framework) DeployNginxWithConfigMapVolume ¶
DeployNginxWithConfigMapVolume deploys Nginx with an extra volume (ConfigMap type).
func (*Framework) DeploySpringboardWithSpecificProxyTarget ¶
DeploySpringboardWithSpecificProxyTarget deploys
func (*Framework) GetHttpBinServiceFQDN ¶
GetHttpBinServiceFQDN returns the FQDN description for HttpBin service.
func (*Framework) NewHTTPClientToSpringboard ¶
NewHTTPClientToSpringboard creates a http client which sends requests to springboard.