clusterservicetest

package
v0.0.0-...-9b598c7 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2023 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package clusterservicetest provides simple mock helpers for OCM Cluster Service types, to make table driven tests easier to define.

Index

Constants

View Source
const (
	MockClusterID            = "000"
	MockClusterExternalID    = "000"
	MockClusterMultiAZ       = true
	MockClusterCloudProvider = "aws"
	MockClusterRegion        = "us-east-1"
	MockClusterState         = "pending"
	MockClusterBYOC          = false
	MockClusterManaged       = true
)

Variables

This section is empty.

Functions

func NewMockCluster

func NewMockCluster(modifyFn func(*clustersmgmtv1.ClusterBuilder)) (*clustersmgmtv1.Cluster, error)

NewMockCluster create a default OCM Cluster Service cluster struct and apply modifications if provided.

Types

This section is empty.

Jump to

Keyboard shortcuts

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