tests

package
v1.14.0 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2023 License: MIT Imports: 15 Imported by: 0

Documentation

Overview

Package tests is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDeleteDependenciesError added in v1.13.0

func NewDeleteDependenciesError(testName string, allErrors []error) error

Types

type DeleteDependenciesError added in v1.13.0

type DeleteDependenciesError struct {
	// contains filtered or unexported fields
}

func (*DeleteDependenciesError) Error added in v1.13.0

func (e *DeleteDependenciesError) Error() string

type Interface added in v1.5.5

type Interface interface {
	List(selector string) (*testsv3.TestList, error)
	ListLabels() (map[string][]string, error)
	Get(name string) (*testsv3.Test, error)
	Create(test *testsv3.Test, options ...Option) (*testsv3.Test, error)
	Update(test *testsv3.Test, options ...Option) (*testsv3.Test, error)
	Delete(name string) error
	DeleteAll() error
	CreateTestSecrets(test *testsv3.Test) error
	UpdateTestSecrets(test *testsv3.Test) error
	LoadTestVariablesSecret(test *testsv3.Test) (*corev1.Secret, error)
	GetCurrentSecretUUID(testName string) (string, error)
	GetSecretTestVars(testName, secretUUID string) (map[string]string, error)
	ListByNames(names []string) ([]testsv3.Test, error)
	DeleteByLabels(selector string) error
	UpdateStatus(test *testsv3.Test) error
}

type MockInterface added in v1.5.5

type MockInterface struct {
	// contains filtered or unexported fields
}

MockInterface is a mock of Interface interface.

func NewMockInterface added in v1.5.5

func NewMockInterface(ctrl *gomock.Controller) *MockInterface

NewMockInterface creates a new mock instance.

func (*MockInterface) Create added in v1.5.5

func (m *MockInterface) Create(arg0 *v3.Test, arg1 ...Option) (*v3.Test, error)

Create mocks base method.

func (*MockInterface) CreateTestSecrets added in v1.5.5

func (m *MockInterface) CreateTestSecrets(arg0 *v3.Test) error

CreateTestSecrets mocks base method.

func (*MockInterface) Delete added in v1.5.5

func (m *MockInterface) Delete(arg0 string) error

Delete mocks base method.

func (*MockInterface) DeleteAll added in v1.5.5

func (m *MockInterface) DeleteAll() error

DeleteAll mocks base method.

func (*MockInterface) DeleteByLabels added in v1.5.5

func (m *MockInterface) DeleteByLabels(arg0 string) error

DeleteByLabels mocks base method.

func (*MockInterface) EXPECT added in v1.5.5

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockInterface) Get added in v1.5.5

func (m *MockInterface) Get(arg0 string) (*v3.Test, error)

Get mocks base method.

func (*MockInterface) GetCurrentSecretUUID added in v1.5.5

func (m *MockInterface) GetCurrentSecretUUID(arg0 string) (string, error)

GetCurrentSecretUUID mocks base method.

func (*MockInterface) GetSecretTestVars added in v1.5.5

func (m *MockInterface) GetSecretTestVars(arg0, arg1 string) (map[string]string, error)

GetSecretTestVars mocks base method.

func (*MockInterface) List added in v1.5.5

func (m *MockInterface) List(arg0 string) (*v3.TestList, error)

List mocks base method.

func (*MockInterface) ListByNames added in v1.5.5

func (m *MockInterface) ListByNames(arg0 []string) ([]v3.Test, error)

ListByNames mocks base method.

func (*MockInterface) ListLabels added in v1.5.5

func (m *MockInterface) ListLabels() (map[string][]string, error)

ListLabels mocks base method.

func (*MockInterface) LoadTestVariablesSecret added in v1.5.5

func (m *MockInterface) LoadTestVariablesSecret(arg0 *v3.Test) (*v1.Secret, error)

LoadTestVariablesSecret mocks base method.

func (*MockInterface) Update added in v1.5.5

func (m *MockInterface) Update(arg0 *v3.Test, arg1 ...Option) (*v3.Test, error)

Update mocks base method.

func (*MockInterface) UpdateStatus added in v1.8.4

func (m *MockInterface) UpdateStatus(test *v3.Test) error

UpdateStatus mocks base method.

func (*MockInterface) UpdateTestSecrets added in v1.5.5

func (m *MockInterface) UpdateTestSecrets(arg0 *v3.Test) error

UpdateTestSecrets mocks base method.

type MockInterfaceMockRecorder added in v1.5.5

type MockInterfaceMockRecorder struct {
	// contains filtered or unexported fields
}

MockInterfaceMockRecorder is the mock recorder for MockInterface.

func (*MockInterfaceMockRecorder) Create added in v1.5.5

func (mr *MockInterfaceMockRecorder) Create(arg0 interface{}, arg1 ...interface{}) *gomock.Call

Create indicates an expected call of Create.

func (*MockInterfaceMockRecorder) CreateTestSecrets added in v1.5.5

func (mr *MockInterfaceMockRecorder) CreateTestSecrets(arg0 interface{}) *gomock.Call

CreateTestSecrets indicates an expected call of CreateTestSecrets.

func (*MockInterfaceMockRecorder) Delete added in v1.5.5

func (mr *MockInterfaceMockRecorder) Delete(arg0 interface{}) *gomock.Call

Delete indicates an expected call of Delete.

func (*MockInterfaceMockRecorder) DeleteAll added in v1.5.5

func (mr *MockInterfaceMockRecorder) DeleteAll() *gomock.Call

DeleteAll indicates an expected call of DeleteAll.

func (*MockInterfaceMockRecorder) DeleteByLabels added in v1.5.5

func (mr *MockInterfaceMockRecorder) DeleteByLabels(arg0 interface{}) *gomock.Call

DeleteByLabels indicates an expected call of DeleteByLabels.

func (*MockInterfaceMockRecorder) Get added in v1.5.5

func (mr *MockInterfaceMockRecorder) Get(arg0 interface{}) *gomock.Call

Get indicates an expected call of Get.

func (*MockInterfaceMockRecorder) GetCurrentSecretUUID added in v1.5.5

func (mr *MockInterfaceMockRecorder) GetCurrentSecretUUID(arg0 interface{}) *gomock.Call

GetCurrentSecretUUID indicates an expected call of GetCurrentSecretUUID.

func (*MockInterfaceMockRecorder) GetSecretTestVars added in v1.5.5

func (mr *MockInterfaceMockRecorder) GetSecretTestVars(arg0, arg1 interface{}) *gomock.Call

GetSecretTestVars indicates an expected call of GetSecretTestVars.

func (*MockInterfaceMockRecorder) List added in v1.5.5

func (mr *MockInterfaceMockRecorder) List(arg0 interface{}) *gomock.Call

List indicates an expected call of List.

func (*MockInterfaceMockRecorder) ListByNames added in v1.5.5

func (mr *MockInterfaceMockRecorder) ListByNames(arg0 interface{}) *gomock.Call

ListByNames indicates an expected call of ListByNames.

func (*MockInterfaceMockRecorder) ListLabels added in v1.5.5

func (mr *MockInterfaceMockRecorder) ListLabels() *gomock.Call

ListLabels indicates an expected call of ListLabels.

func (*MockInterfaceMockRecorder) LoadTestVariablesSecret added in v1.5.5

func (mr *MockInterfaceMockRecorder) LoadTestVariablesSecret(arg0 interface{}) *gomock.Call

LoadTestVariablesSecret indicates an expected call of LoadTestVariablesSecret.

func (*MockInterfaceMockRecorder) Update added in v1.5.5

func (mr *MockInterfaceMockRecorder) Update(arg0 interface{}, arg1 ...interface{}) *gomock.Call

Update indicates an expected call of Update.

func (*MockInterfaceMockRecorder) UpdateStatus added in v1.8.4

func (mr *MockInterfaceMockRecorder) UpdateStatus(test interface{}) *gomock.Call

UpdateStatus indicates an expected call of UpdateStatus.

func (*MockInterfaceMockRecorder) UpdateTestSecrets added in v1.5.5

func (mr *MockInterfaceMockRecorder) UpdateTestSecrets(arg0 interface{}) *gomock.Call

UpdateTestSecrets indicates an expected call of UpdateTestSecrets.

type Option added in v1.5.3

type Option struct {
	Secrets map[string]string
}

Option contain test source options

type TestsClient

type TestsClient struct {
	// contains filtered or unexported fields
}

TestsClient implements methods to work with Test

func NewClient

func NewClient(client client.Client, namespace string) *TestsClient

NewClient creates new Test client

func (TestsClient) Create

func (s TestsClient) Create(test *testsv3.Test, options ...Option) (*testsv3.Test, error)

Create creates new Test and coupled resources

func (TestsClient) CreateTestSecrets

func (s TestsClient) CreateTestSecrets(test *testsv3.Test) error

CreateTestSecrets creates corresponding test vars secrets

func (TestsClient) Delete

func (s TestsClient) Delete(name string) error

Delete deletes existing Test and coupled resources (secrets)

func (TestsClient) DeleteAll

func (s TestsClient) DeleteAll() error

DeleteAll deletes all Tests

func (TestsClient) DeleteByLabels

func (s TestsClient) DeleteByLabels(selector string) error

DeleteByLabels deletes tests by labels

func (TestsClient) Get

func (s TestsClient) Get(name string) (*testsv3.Test, error)

Get returns Test, loads and decodes secrets data

func (TestsClient) GetCurrentSecretUUID

func (s TestsClient) GetCurrentSecretUUID(testName string) (string, error)

GetCurrentSecretUUID returns current secret uuid

func (TestsClient) GetSecretTestVars

func (s TestsClient) GetSecretTestVars(testName, secretUUID string) (map[string]string, error)

GetSecretTestVars returns secret test vars

func (TestsClient) List

func (s TestsClient) List(selector string) (*testsv3.TestList, error)

List lists Tests

func (TestsClient) ListByNames

func (s TestsClient) ListByNames(names []string) ([]testsv3.Test, error)

ListByNames returns Tests by names TODO - should be replaced by --field-selector when it supports IN for expression

func (TestsClient) ListLabels

func (s TestsClient) ListLabels() (map[string][]string, error)

ListLabels labels for Tests

func (TestsClient) LoadTestVariablesSecret

func (s TestsClient) LoadTestVariablesSecret(test *testsv3.Test) (*corev1.Secret, error)

func (TestsClient) TestHasSecrets

func (s TestsClient) TestHasSecrets(test *testsv3.Test) (has bool)

func (TestsClient) Update

func (s TestsClient) Update(test *testsv3.Test, options ...Option) (*testsv3.Test, error)

Update updates existing Test and coupled resources

func (TestsClient) UpdateStatus added in v1.8.4

func (s TestsClient) UpdateStatus(test *testsv3.Test) error

UpdateStatus updates existing Test status

func (TestsClient) UpdateTestSecrets

func (s TestsClient) UpdateTestSecrets(test *testsv3.Test) error

Jump to

Keyboard shortcuts

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