Documentation ¶
Index ¶
- func E2EOperatorCheck(ctx context.Context, t *testing.T, serviceClient *testutil.RecordingClient, ...)
- func KubeCarrierCheck(ctx context.Context, t *testing.T, managementClient *testutil.RecordingClient, ...)
- func KubeCarrierOperatorCheck(ctx context.Context, t *testing.T, managementClient *testutil.RecordingClient, ...)
- func LoadTestDataFile(t *testing.T, fname string) string
- func LoadTestDataObject(t *testing.T, fname string, obj runtime.Object)
- func NewCatalog(name, namespace string, ...) *catalogv1alpha1.Catalog
- func NewCatalogEntry(name, namespace, crdName string) *catalogv1alpha1.CatalogEntry
- func NewFakeCouchDBCRD(group string) *apiextensionsv1.CustomResourceDefinition
- func NewFakeDB(name, namespace string) *fakev1alpha1.DB
- func NewProviderAccount(name string, subjects ...rbacv1.Subject) *catalogv1alpha1.Account
- func NewServiceCluster(name, namespace, secret string) *corev1alpha1.ServiceCluster
- func NewTenantAccount(name string, subjects ...rbacv1.Subject) *catalogv1alpha1.Account
- type Framework
- func (f *Framework) Config() FrameworkConfig
- func (f *Framework) ManagementClient(t *testing.T, options ...func(config *restclient.Config) error) (*testutil.RecordingClient, error)
- func (f *Framework) ServiceClient(t *testing.T, options ...func(config *restclient.Config) error) (*testutil.RecordingClient, error)
- func (f *Framework) SetupServiceCluster(ctx context.Context, cl *testutil.RecordingClient, t *testing.T, name string, ...) *corev1alpha1.ServiceCluster
- type FrameworkConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func E2EOperatorCheck ¶
func KubeCarrierCheck ¶
func LoadTestDataFile ¶
LoadTestDataFile copies from testdata VFS to the temp file system, returning the file name
func NewCatalog ¶
func NewCatalog(name, namespace string, catalogEntrySelector, tenantSelector *metav1.LabelSelector) *catalogv1alpha1.Catalog
func NewCatalogEntry ¶
func NewCatalogEntry(name, namespace, crdName string) *catalogv1alpha1.CatalogEntry
func NewFakeCouchDBCRD ¶
func NewFakeCouchDBCRD(group string) *apiextensionsv1.CustomResourceDefinition
func NewFakeDB ¶
func NewFakeDB(name, namespace string) *fakev1alpha1.DB
func NewProviderAccount ¶
func NewProviderAccount(name string, subjects ...rbacv1.Subject) *catalogv1alpha1.Account
func NewServiceCluster ¶
func NewServiceCluster(name, namespace, secret string) *corev1alpha1.ServiceCluster
func NewTenantAccount ¶
func NewTenantAccount(name string, subjects ...rbacv1.Subject) *catalogv1alpha1.Account
Types ¶
type Framework ¶
type Framework struct { ManagementScheme *runtime.Scheme ServiceScheme *runtime.Scheme // contains filtered or unexported fields }
func New ¶
func New(c FrameworkConfig) (f *Framework, err error)
func (*Framework) Config ¶
func (f *Framework) Config() FrameworkConfig
func (*Framework) ManagementClient ¶
func (f *Framework) ManagementClient(t *testing.T, options ...func(config *restclient.Config) error) (*testutil.RecordingClient, error)
func (*Framework) ServiceClient ¶
func (f *Framework) ServiceClient(t *testing.T, options ...func(config *restclient.Config) error) (*testutil.RecordingClient, error)
func (*Framework) SetupServiceCluster ¶
func (f *Framework) SetupServiceCluster(ctx context.Context, cl *testutil.RecordingClient, t *testing.T, name string, account *catalogv1alpha1.Account) *corev1alpha1.ServiceCluster
type FrameworkConfig ¶
type FrameworkConfig struct { TestID string ManagementExternalKubeconfigPath string ManagementInternalKubeconfigPath string ServiceExternalKubeconfigPath string ServiceInternalKubeconfigPath string CleanUpStrategy testutil.CleanUpStrategy }
func (*FrameworkConfig) Default ¶
func (c *FrameworkConfig) Default()
func (*FrameworkConfig) ManagementClusterName ¶
func (c *FrameworkConfig) ManagementClusterName() string
func (*FrameworkConfig) ServiceClusterName ¶
func (c *FrameworkConfig) ServiceClusterName() string
Click to show internal directories.
Click to hide internal directories.