test

package
v1.2.26 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2023 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	MockClusterID   = "24vf9iitg3p6tlml88iml6j6mu095mh8"
	MockClusterHREF = "/api/clusters_mgmt/v1/clusters/24vf9iitg3p6tlml88iml6j6mu095mh8"
	MockClusterName = "cluster"
)

Functions

func FormatClusterList added in v1.2.26

func FormatClusterList(clusters []*v1.Cluster) string

func MockOCMCluster added in v1.2.26

func MockOCMCluster(modifyFn func(c *v1.ClusterBuilder)) (*v1.Cluster, error)

func RunWithOutputCapture

func RunWithOutputCapture(runWithRuntime func(*rosa.Runtime, *cobra.Command) error,
	runtime *rosa.Runtime, cmd *cobra.Command) (string, string, error)

func RunWithOutputCaptureAndArgv added in v1.2.26

func RunWithOutputCaptureAndArgv(runWithRuntime func(*rosa.Runtime, *cobra.Command, []string) error,
	runtime *rosa.Runtime, cmd *cobra.Command, argv *[]string) (string, string, error)

Types

type TestingRuntime added in v1.2.26

type TestingRuntime struct {
	SsoServer   *ghttp.Server
	ApiServer   *ghttp.Server
	RosaRuntime *rosa.Runtime
}

TestingRuntime is a wrapper for the structure used for testing

func (*TestingRuntime) InitRuntime added in v1.2.26

func (t *TestingRuntime) InitRuntime()

Jump to

Keyboard shortcuts

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