inttestutils

package
v1.46.1 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2021 License: Apache-2.0 Imports: 30 Imported by: 0

Documentation

Index

Constants

View Source
const (
	NotDistributed receivedDistributionStatus = "Not distributed"
	InProgress     receivedDistributionStatus = "In progress"
	Completed      receivedDistributionStatus = "Completed"
	Failed         receivedDistributionStatus = "Failed"
)

Variables

This section is empty.

Functions

func AssertReleaseBundleOpen added in v1.39.5

func AssertReleaseBundleOpen(t *testing.T, distributableResponse *distributableResponse)

Assert release bundle status is OPEN

func AssertReleaseBundleSigned added in v1.39.5

func AssertReleaseBundleSigned(t *testing.T, distributableResponse *distributableResponse)

Assert release bundle status is SIGNED, STORED or READY_FOR_DISTRIBUTION

func BuildTestContainerImage added in v1.43.0

func BuildTestContainerImage(t *testing.T, imageName string, containerManagerType container.ContainerManagerType) string

func CleanDistributionRepositories

func CleanDistributionRepositories(t *testing.T, distributionDetails *config.ServerDetails)

Clean up 'cli-tests-dist1-<timestamp>' and 'cli-tests-dist2-<timestamp>' after running a distribution test

func CleanUpOldBundles

func CleanUpOldBundles(distHttpDetails httputils.HttpClientDetails, bundleVersion string, distributionCli *tests.JfrogCli)

func CleanUpOldImages

func CleanUpOldImages(serverDetails *config.ServerDetails, artHttpDetails httputils.HttpClientDetails)

func ContainerTestCleanup added in v1.43.0

func ContainerTestCleanup(t *testing.T, serverDetails *config.ServerDetails, artHttpDetails httputils.HttpClientDetails, imageName, buildName, repo string)

func DeleteBuild

func DeleteBuild(artifactoryUrl, buildName string, artHttpDetails httputils.HttpClientDetails)

func DeleteTestContainerImage added in v1.43.0

func DeleteTestContainerImage(t *testing.T, imageTag string, containerManagerType container.ContainerManagerType)

func GetLocalBundle

func GetLocalBundle(t *testing.T, bundleName, bundleVersion string, distHttpDetails httputils.HttpClientDetails) *distributableResponse

Get a local release bundle

func ListAllBundlesNames

func ListAllBundlesNames(distHttpDetails httputils.HttpClientDetails) ([]string, error)

func SendGpgKeys

func SendGpgKeys(artHttpDetails httputils.HttpClientDetails, distHttpDetails httputils.HttpClientDetails)

Send GPG keys to Distribution and Artifactory to allow signing of release bundles

func ValidateGeneratedBuildInfoModule added in v1.42.0

func ValidateGeneratedBuildInfoModule(t *testing.T, buildname, buildNumber, projectKey string, moduleNames []string, moduleType buildinfo.ModuleType)

func VerifyLocalBundleExistence

func VerifyLocalBundleExistence(t *testing.T, bundleName, bundleVersion string, expectExist bool, distHttpDetails httputils.HttpClientDetails)

Return true if the release bundle exists locally on distribution

func WaitForDeletion

func WaitForDeletion(t *testing.T, bundleName, bundleVersion string, distHttpDetails httputils.HttpClientDetails)

Wait for deletion of a release bundle

func WaitForDistribution

func WaitForDistribution(t *testing.T, bundleName, bundleVersion string, distHttpDetails httputils.HttpClientDetails)

Wait for distribution of a release bundle

Types

type BuildDockerImage

type BuildDockerImage struct {
	DockerFilePath string
	DockerTag      string
	// contains filtered or unexported fields
}

Image get parent image id command

func NewBuildDockerImage added in v1.43.0

func NewBuildDockerImage(imageTag, dockerFilePath string, containerManager container.ContainerManagerType) *BuildDockerImage

func (*BuildDockerImage) GetCmd

func (image *BuildDockerImage) GetCmd() *exec.Cmd

func (*BuildDockerImage) GetEnv

func (image *BuildDockerImage) GetEnv() map[string]string

func (*BuildDockerImage) GetErrWriter

func (image *BuildDockerImage) GetErrWriter() io.WriteCloser

func (*BuildDockerImage) GetStdWriter

func (image *BuildDockerImage) GetStdWriter() io.WriteCloser

type DeleteDockerImage added in v1.43.0

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

func NewDeleteDockerImage added in v1.43.0

func NewDeleteDockerImage(imageTag string, containerManager container.ContainerManagerType) *DeleteDockerImage

func (*DeleteDockerImage) GetCmd added in v1.43.0

func (image *DeleteDockerImage) GetCmd() *exec.Cmd

func (*DeleteDockerImage) GetEnv added in v1.43.0

func (image *DeleteDockerImage) GetEnv() map[string]string

func (*DeleteDockerImage) GetErrWriter added in v1.43.0

func (image *DeleteDockerImage) GetErrWriter() io.WriteCloser

func (*DeleteDockerImage) GetStdWriter added in v1.43.0

func (image *DeleteDockerImage) GetStdWriter() io.WriteCloser

type ReceivedResponses

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

type RunDockerImage added in v1.43.0

type RunDockerImage struct {
	Args []string
	// contains filtered or unexported fields
}

func NewRunDockerImage added in v1.43.0

func NewRunDockerImage(containerManager container.ContainerManagerType, args ...string) *RunDockerImage

func (*RunDockerImage) GetCmd added in v1.43.0

func (run *RunDockerImage) GetCmd() *exec.Cmd

func (*RunDockerImage) GetEnv added in v1.43.0

func (run *RunDockerImage) GetEnv() map[string]string

func (*RunDockerImage) GetErrWriter added in v1.43.0

func (run *RunDockerImage) GetErrWriter() io.WriteCloser

func (*RunDockerImage) GetStdWriter added in v1.43.0

func (run *RunDockerImage) GetStdWriter() io.WriteCloser

Jump to

Keyboard shortcuts

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