testhelper

package
v0.0.0-...-98ed532 Latest Latest
Warning

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

Go to latest
Published: May 3, 2024 License: BSD-3-Clause Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadBuildPlan

func LoadBuildPlan(t *testing.T, name string) *model.BuildPlan

func LoadBuildResponse

func LoadBuildResponse(t *testing.T, name string) *headchef_models.V1BuildStatusResponse

func LoadRecipe

func LoadRecipe(t *testing.T, name string) *inventory_models.Recipe

func SaveBuildResponse

func SaveBuildResponse(name string, m *headchef_models.V1BuildStatusResponse) error

func SaveRecipe

func SaveRecipe(name string, m *inventory_models.Recipe) error

Types

type MockProgressOutput

type MockProgressOutput struct {
	BuildStartedCalled          bool
	BuildCompletedCalled        bool
	BuildTotal                  int64
	BuildCurrent                int
	InstallationStartedCalled   bool
	InstallationCompletedCalled bool
	InstallationTotal           int64
	InstallationCurrent         int
	ArtifactStartedCalled       int
	ArtifactIncrementCalled     int
	ArtifactCompletedCalled     int
	ArtifactFailureCalled       int
}

func (*MockProgressOutput) ArtifactStepCompleted

func (mpo *MockProgressOutput) ArtifactStepCompleted(artifact.ArtifactID, string, string) error

func (*MockProgressOutput) ArtifactStepFailure

func (mpo *MockProgressOutput) ArtifactStepFailure(artifact.ArtifactID, string, string, string) error

func (*MockProgressOutput) ArtifactStepIncrement

func (mpo *MockProgressOutput) ArtifactStepIncrement(artifact.ArtifactID, string, string, int64) error

func (*MockProgressOutput) ArtifactStepStarted

func (mpo *MockProgressOutput) ArtifactStepStarted(artifact.ArtifactID, string, string, int64, bool) error

func (*MockProgressOutput) BuildArtifactCompleted

func (mpo *MockProgressOutput) BuildArtifactCompleted(artifactID artifact.ArtifactID, artifactName, logURI string, cachedBuild bool) error

func (*MockProgressOutput) BuildArtifactFailure

func (mpo *MockProgressOutput) BuildArtifactFailure(artifactID artifact.ArtifactID, artifactName, logURI string, errorMessage string, cachedBuild bool) error

func (*MockProgressOutput) BuildArtifactProgress

func (mpo *MockProgressOutput) BuildArtifactProgress(artifactID artifact.ArtifactID, artifactName, timeStamp, message, facility, pipeName, source string) error

func (*MockProgressOutput) BuildArtifactStarted

func (mpo *MockProgressOutput) BuildArtifactStarted(artifactID artifact.ArtifactID, artifactName string) error

func (*MockProgressOutput) BuildCompleted

func (mpo *MockProgressOutput) BuildCompleted(bool) error

func (*MockProgressOutput) BuildStarted

func (mpo *MockProgressOutput) BuildStarted(total int64) error

func (*MockProgressOutput) Close

func (mpo *MockProgressOutput) Close() error

func (*MockProgressOutput) InstallationCompleted

func (mpo *MockProgressOutput) InstallationCompleted(bool) error

func (*MockProgressOutput) InstallationStarted

func (mpo *MockProgressOutput) InstallationStarted(total int64) error

func (*MockProgressOutput) InstallationStatusUpdate

func (mpo *MockProgressOutput) InstallationStatusUpdate(current, total int64) error

func (*MockProgressOutput) SolverError

func (mpo *MockProgressOutput) SolverError(serr *model.SolverError) error

func (*MockProgressOutput) SolverStart

func (mpo *MockProgressOutput) SolverStart() error

func (*MockProgressOutput) SolverSuccess

func (mpo *MockProgressOutput) SolverSuccess() error

func (*MockProgressOutput) StillBuilding

func (mpo *MockProgressOutput) StillBuilding(numCompleted, numTotal int) error

Jump to

Keyboard shortcuts

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