suite_init

package
v1.2.202 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2023 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const LocalRegistryImplementationName = ":local_container_registry"

Variables

This section is empty.

Functions

func ComputeWerfBinPath

func ComputeWerfBinPath() []byte

func ContainerRegistryImplementationListToCheck

func ContainerRegistryImplementationListToCheck(withOptionalContainerRegistry bool) []string

func GenerateUniqProjectName

func GenerateUniqProjectName() string

func MakeTestSuiteEntrypointFunc

func MakeTestSuiteEntrypointFunc(description string, opts TestSuiteEntrypointFuncOptions) func(t *testing.T)

func SetupK8sDockerRegistryRepo

func SetupK8sDockerRegistryRepo(repo, projectName *string, stubs *gostub.Stubs) bool

func SetupProjectName

func SetupProjectName(projectName *string, stubs *gostub.Stubs) bool

func SetupStubs

func SetupStubs(stubs *gostub.Stubs) bool

func SetupTmpDir

func SetupTmpDir(tmpDir, testDirPath *string) bool

Types

type ContainerRegistryPerImplementationData

type ContainerRegistryPerImplementationData struct {
	ContainerRegistryPerImplementation map[string]*containerRegistryImplementationData
}

func NewContainerRegistryPerImplementationData

func NewContainerRegistryPerImplementationData(synchronizedSuiteCallbacksData *SynchronizedSuiteCallbacksData, withOptionalContainerRegistry bool) *ContainerRegistryPerImplementationData

func (*ContainerRegistryPerImplementationData) SetupRepo

func (data *ContainerRegistryPerImplementationData) SetupRepo(ctx context.Context, repo, implementationName string, stubsData *StubsData) bool

func (*ContainerRegistryPerImplementationData) TeardownRepo

func (data *ContainerRegistryPerImplementationData) TeardownRepo(ctx context.Context, repo, implementationName string, _ *StubsData) bool

type K8sDockerRegistryData

type K8sDockerRegistryData struct {
	K8sDockerRegistryRepo string
}

func NewK8sDockerRegistryData

func NewK8sDockerRegistryData(projectNameData *ProjectNameData, stubsData *StubsData) *K8sDockerRegistryData

type ProjectNameData

type ProjectNameData struct {
	ProjectName string
}

func NewProjectNameData

func NewProjectNameData(stubsData *StubsData) *ProjectNameData

type StubsData

type StubsData struct {
	Stubs *gostub.Stubs
}

func NewStubsData

func NewStubsData() *StubsData

type SuiteData

func (*SuiteData) GetBuildReportPath

func (data *SuiteData) GetBuildReportPath(filename string) string

func (*SuiteData) GetTestRepoPath

func (data *SuiteData) GetTestRepoPath(dirname string) string

func (*SuiteData) InitTestRepo

func (data *SuiteData) InitTestRepo(dirname, fixtureRelPath string)

func (*SuiteData) SetupContainerRegistryPerImplementation

func (data *SuiteData) SetupContainerRegistryPerImplementation(setupData *ContainerRegistryPerImplementationData) bool

func (*SuiteData) SetupK8sDockerRegistry

func (data *SuiteData) SetupK8sDockerRegistry(setupData *K8sDockerRegistryData) bool

func (*SuiteData) SetupProjectName

func (data *SuiteData) SetupProjectName(setupData *ProjectNameData) bool

func (*SuiteData) SetupStubs

func (data *SuiteData) SetupStubs(setupData *StubsData) bool

func (*SuiteData) SetupSynchronizedSuiteCallbacks

func (data *SuiteData) SetupSynchronizedSuiteCallbacks(setupData *SynchronizedSuiteCallbacksData) bool

func (*SuiteData) SetupTmp

func (data *SuiteData) SetupTmp(setupData *TmpDirData) bool

func (*SuiteData) SetupWerfBinary

func (data *SuiteData) SetupWerfBinary(setupData *WerfBinaryData) bool

func (*SuiteData) UpdateTestRepo

func (data *SuiteData) UpdateTestRepo(dirname, fixtureRelPath string)

type SynchronizedSuiteCallbacksData

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

func NewSynchronizedSuiteCallbacksData

func NewSynchronizedSuiteCallbacksData() *SynchronizedSuiteCallbacksData

func (*SynchronizedSuiteCallbacksData) AppendSynchronizedAfterSuiteAllNodesFunc

func (data *SynchronizedSuiteCallbacksData) AppendSynchronizedAfterSuiteAllNodesFunc(f func()) bool

func (*SynchronizedSuiteCallbacksData) AppendSynchronizedAfterSuiteNode1Func

func (data *SynchronizedSuiteCallbacksData) AppendSynchronizedAfterSuiteNode1Func(f func()) bool

func (*SynchronizedSuiteCallbacksData) AppendSynchronizedBeforeSuiteAllNodesFunc

func (data *SynchronizedSuiteCallbacksData) AppendSynchronizedBeforeSuiteAllNodesFunc(f func([]byte)) bool

func (*SynchronizedSuiteCallbacksData) AppendSynchronizedBeforeSuiteNode1Func

func (data *SynchronizedSuiteCallbacksData) AppendSynchronizedBeforeSuiteNode1Func(f func()) bool

func (*SynchronizedSuiteCallbacksData) SetSynchronizedBeforeSuiteNode1FuncWithReturnValue

func (data *SynchronizedSuiteCallbacksData) SetSynchronizedBeforeSuiteNode1FuncWithReturnValue(f func() []byte) bool

type TestSuiteEntrypointFuncOptions

type TestSuiteEntrypointFuncOptions struct {
	RequiredSuiteTools []string
	RequiredSuiteEnvs  []string
}

type TmpDirData

type TmpDirData struct {
	TmpDir      string
	TestDirPath string
}

func NewTmpDirData

func NewTmpDirData() *TmpDirData

func (*TmpDirData) CommitProjectWorktree

func (data *TmpDirData) CommitProjectWorktree(projectName, worktreeFixtureDir, commitMessage string)

func (*TmpDirData) GetProjectWorktree

func (data *TmpDirData) GetProjectWorktree(projectName string) string

type WerfBinaryData

type WerfBinaryData struct {
	WerfBinPath string
}

func NewWerfBinaryData

func NewWerfBinaryData(synchronizedSuiteCallbacksData *SynchronizedSuiteCallbacksData) *WerfBinaryData

Jump to

Keyboard shortcuts

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