dockerbuildertester

package
v1.77.0 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunAssetDockerBuilderTest

func RunAssetDockerBuilderTest(t *testing.T,
	pluginProvider pluginapitester.PluginProvider,
	assetProvider pluginapitester.AssetProvider,
	testCases []TestCase,
)

RunAssetDockerBuilderTest tests the "docker" operation using the provided asset. Uses the provided plugin provider and asset provider to resolve the plugin and asset and invokes the "docker" command.

func RunMultipleAssetDockerBuilderTest added in v1.23.0

func RunMultipleAssetDockerBuilderTest(t *testing.T,
	pluginProvider pluginapitester.PluginProvider,
	assetProviders []pluginapitester.AssetProvider,
	testCases []TestCase,
)

RunMultipleAssetDockerBuilderTest tests the "docker" operation using the provided assets. Uses the provided plugin provider and asset providers to resolve the plugin and assets and invokes the "docker" command.

Types

type TestCase

type TestCase struct {
	Name        string
	Specs       []gofiles.GoFileSpec
	ConfigFiles map[string]string
	Args        []string
	WantError   bool
	WantOutput  func(projectDir string) string
	Validate    func(projectDir string)
}

Jump to

Keyboard shortcuts

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