Documentation ¶
Index ¶
- Constants
- func ApplyKubeFile(kubeContext string, namespace string, filename string) error
- func ApplyKubeFilesForTest(t *testing.T, kubeContext string, namespace string, filename ...string) error
- func CleanupCommand(cmd *exec.Cmd) error
- func Contains(slice []string, containsValue string) bool
- func ContainsPartOfValue(slice []string, containsValue string) bool
- func DeleteKubeFile(kubeContext string, namespace string, filename string) error
- func ExecuteHttpGetRequest(url string) (interface{}, error)
- func ExecuteHttpGetRequestWithHeaders(url string, headers map[string]string) (interface{}, error)
- func ExecuteHttpPostRequestWithHeaders(url string, headers map[string]string, body interface{}) (interface{}, error)
- func ExecuteHttpRequest(response *http.Response, requestErr error) (interface{}, error)
- func GetApiServerUrl(port uint16) string
- func GetCliPath() (string, error)
- func GetConfigPath() (string, error)
- func GetDefaultConfigCommandArgs() []string
- func GetDefaultLogsCommandArgs() []string
- func GetDefaultTapCommandArgs() []string
- func GetDefaultTapCommandArgsWithRegex(regex string) []string
- func GetDefaultTapNamespace() []string
- func GetKubeCurrentContextName() (string, error)
- func GetLogsPath() (string, error)
- func GetMizuFolderPath() (string, error)
- func GetProxyUrl(namespace string, service string) string
- func JsonBytesToInterface(jsonBytes []byte) (interface{}, error)
- func RetriesExecute(retriesCount int, executeFunc func() error) error
- func RunCypressTests(t *testing.T, cypressRunCmd string)
- func SetKubeCurrentContext(contextName string) error
- func SwitchKubeContextForTest(t *testing.T, newContextName string) error
- func TryExecuteFunc(executeFunc func() error) (err interface{})
- func WaitTapPodsReady(apiServerUrl string) error
- type KubernetesProvider
- type PodDescriptor
Constants ¶
View Source
const ( LongRetriesCount = 100 ShortRetriesCount = 10 DefaultApiServerPort = shared.DefaultApiServerPort DefaultNamespaceName = "mizu-tests" DefaultServiceName = "httpbin" DefaultEntriesCount = 50 WaitAfterTapPodsReady = 3 * time.Second AllNamespaces = "" )
Variables ¶
This section is empty.
Functions ¶
func ApplyKubeFile ¶
func ApplyKubeFilesForTest ¶
func CleanupCommand ¶
func ContainsPartOfValue ¶
func DeleteKubeFile ¶
func ExecuteHttpGetRequest ¶
func ExecuteHttpRequest ¶
func GetApiServerUrl ¶
func GetCliPath ¶
func GetConfigPath ¶
func GetDefaultConfigCommandArgs ¶
func GetDefaultConfigCommandArgs() []string
func GetDefaultLogsCommandArgs ¶
func GetDefaultLogsCommandArgs() []string
func GetDefaultTapCommandArgs ¶
func GetDefaultTapCommandArgs() []string
func GetDefaultTapNamespace ¶
func GetDefaultTapNamespace() []string
func GetLogsPath ¶
func GetMizuFolderPath ¶
func GetProxyUrl ¶
func JsonBytesToInterface ¶
func RetriesExecute ¶
func RunCypressTests ¶
func SetKubeCurrentContext ¶
func TryExecuteFunc ¶
func TryExecuteFunc(executeFunc func() error) (err interface{})
func WaitTapPodsReady ¶
Types ¶
type KubernetesProvider ¶
type KubernetesProvider struct {
// contains filtered or unexported fields
}
func NewKubernetesProvider ¶
func NewKubernetesProvider() (*KubernetesProvider, error)
func (*KubernetesProvider) GetServiceExternalIp ¶
type PodDescriptor ¶
Click to show internal directories.
Click to hide internal directories.