Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewHTTPExpect ¶
func NewHTTPExpect(t AssertLoggerT, baseURL string) *httpexpect.Expect
Types ¶
type AssertLoggerT ¶
type ClusterConfig ¶
type Config ¶
type Config struct { TestID string `yaml:"test_id" validate:"required" mapstructure:"test_id"` APIBasePath string `yaml:"api_base_path" validate:"required" mapstructure:"api_base_path"` Project ProjectConfig `validate:"required,dive"` Cluster ClusterConfig `validate:"required,dive"` Mockserver MockserverConfig `yaml:"mockserver" validate:"required,dive"` MockControlUPIServer MockserverConfig `yaml:"mockControlUPIServer" validate:"required,dive"` MockTreatmentUPIServer MockserverConfig `yaml:"mockTreatmentUPIServer" validate:"required,dive"` Echoserver EchoserverConfig `validate:"required,dive"` PythonVersions []string `yaml:"python_versions" validate:"required" mapstructure:"python_versions"` // Dynamically computed Ensemblers EnsemblerConfig `yaml:"ensemblers" validate:"required,dive"` // KubeconfigUseLocal specifies whether the test helper should use local Kube config to // authenticate to the cluster. The Kube config is assumed to be available at $HOME/.kube/config. // If false, the helper will use the cluster credentials config.yaml. KubeconfigUseLocal bool `yaml:"kubeconfig_use_local" default:"false" mapstructure:"kubeconfig_use_local"` KubeconfigFilePath string `yaml:"kubeconfig_file_path" default:"" mapstructure:"kubeconfig_file_path"` }
func DefaultConfig ¶
func DefaultConfig() *Config
func LoadFromFiles ¶
type EchoserverConfig ¶
type EchoserverConfig struct {
Image string `validate:"required"`
}
type EnsemblerConfig ¶
type EnsemblerConfig struct { BaseName string `yaml:"base_name" validate:"required" mapstructure:"base_name"` Entities []EnsemblerData }
type EnsemblerData ¶
type K8sConfig ¶
type K8sConfig mlpcluster.K8sConfig
func (*K8sConfig) MarshalYAML ¶
MarshalYAML implements the Marshal interface, so k8sConfig fields can be properly marshalled
func (*K8sConfig) UnmarshalYAML ¶
UnmarshalYAML implements Unmarshal interface Since K8sConfig fields only have json tags, sigyaml.Unmarshal needs to be used to unmarshal all the fields. This method reads K8sConfig into a map[string]interface{}, marshals it into a byte for, before passing to sigyaml.Unmarshal
type MockserverConfig ¶
type ProjectConfig ¶
Click to show internal directories.
Click to hide internal directories.