common

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2020 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Copyright (C) 2020 VMware, Inc. SPDX-License-Identifier: Apache-2.0

Copyright (C) 2020 VMware, Inc. SPDX-License-Identifier: Apache-2.0

Copyright (C) 2020 VMware, Inc. SPDX-License-Identifier: Apache-2.0

Copyright (C) 2020 VMware, Inc. SPDX-License-Identifier: Apache-2.0

Index

Constants

This section is empty.

Variables

View Source
var (
	// TmpDirPattern sets the pattern for temporary files
	TmpDirPattern = "build_cli_tests"
)

Functions

func NewBuildContext

func NewBuildContext(payloads map[string]string) (string, func(), error)

NewBuildContext creates a temporary directory with a set of files populated. The input payload keys represent the filenames, and values are the contents of the files. Returns the directory path, a cleanup function, and error Callers should always call the cleanup, even in the case of an error

func NewSimpleBuildContext

func NewSimpleBuildContext() (string, func(), error)

NewSimpleBuildContext creates a very simple Dockerfile for exercising the builder

func RunBuild

func RunBuild(args []string) error

func RunBuildkit

func RunBuildkit(command string, args []string) error

func Skipper

func Skipper(t *testing.T)

Skipper will skip this test if we're not in integration mode

Types

type BaseSuite

type BaseSuite struct {
	suite.Suite
	Name        string
	CreateFlags []string
}

func (*BaseSuite) SetupTest

func (s *BaseSuite) SetupTest()

func (*BaseSuite) TearDownTest

func (s *BaseSuite) TearDownTest()

func (*BaseSuite) TestSimpleBuild

func (s *BaseSuite) TestSimpleBuild()

Jump to

Keyboard shortcuts

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