Documentation ¶
Index ¶
- Variables
- func FormatClusterList(clusters []*v1.Cluster) string
- func MockOCMCluster(modifyFn func(c *v1.ClusterBuilder)) (*v1.Cluster, error)
- func RunWithOutputCapture(runWithRuntime func(*rosa.Runtime, *cobra.Command) error, ...) (string, string, error)
- func RunWithOutputCaptureAndArgv(runWithRuntime func(*rosa.Runtime, *cobra.Command, []string) error, ...) (string, string, error)
- type TestingRuntime
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 MockOCMCluster ¶ added in v1.2.26
func MockOCMCluster(modifyFn func(c *v1.ClusterBuilder)) (*v1.Cluster, error)
func RunWithOutputCapture ¶
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()
Click to show internal directories.
Click to hide internal directories.