testutils

package
v7.2.2 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2023 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildExecutable

func BuildExecutable() error

func BuildExecutableFor

func BuildExecutableFor(goos, goarch string) error

func CertSetup

func CertSetup() (serverCert tls.Certificate, caCertBytes []byte, err error)

CertSetup generates the required TLS certs for tests

func CreateStemcell

func CreateStemcell(stemcellSrcDir string, stemcellPath string) error

func GenerateDeploymentManifest

func GenerateDeploymentManifest(deploymentManifestFilePath string, fs boshsys.FileSystem, manifestContents string) error

GenerateDeploymentManifest write deployment manifests to disk

func MarshalToString

func MarshalToString(input interface{}) (string, error)

func RunCommand

func RunCommand(cmd string, args ...string) (*gexec.Session, error)

func RunComplexCommand

func RunComplexCommand(cmd *exec.Cmd) (*gexec.Session, error)

Types

type TarVerifier

type TarVerifier struct {
	BlobPath string
}

func (TarVerifier) FileContents

func (b TarVerifier) FileContents(fileName string) ([]byte, error)

func (TarVerifier) FileExists

func (b TarVerifier) FileExists(fileName string) (bool, error)

func (TarVerifier) Listing

func (b TarVerifier) Listing() (string, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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