test

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2021 License: Apache-2.0 Imports: 34 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PatchClient

func PatchClient(t *testing.T, action func(container *FakeContainer))

PatchClient ...

Types

type FakeContainer

type FakeContainer struct {
	FakeClient                    client.Client
	FakeClientset                 *k8sFake.Clientset
	MockManager                   *mock.MockManager
	MockClassQuery                *mock.MockIClassQuery
	MockEngineParamsClassQuery    *mock.MockIEngineParamsClassQuery
	MockEngineParamsTemplateQuery *mock.MockIEngineParamsTemplateQuery
	MockMinorVersionQuery         *mock.MockIMinorVersionQuery
	Ctrl                          *Controller
	MockSmsServer                 *httptest.Server
	MockCmServer                  *httptest.Server
	CoreV1Client                  corev1.CoreV1Interface
	ExecInPodGuard                *PatchGuard
}

FakeContainer ...

func InitFakeContainer

func InitFakeContainer(t *testing.T) (container *FakeContainer)

InitFakeContainer ...

Directories

Path Synopsis
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.

Jump to

Keyboard shortcuts

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