inttestutils

package
v1.39.1 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2020 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Open                 distributableDistributionStatus = "OPEN"
	ReadyForDistribution distributableDistributionStatus = "READY_FOR_DISTRIBUTION"
	Signed               distributableDistributionStatus = "SIGNED"
	NotDistributed       receivedDistributionStatus      = "Not distributed"
	InProgress           receivedDistributionStatus      = "In progress"
	Completed            receivedDistributionStatus      = "Completed"
	Failed               receivedDistributionStatus      = "Failed"
)

Variables

This section is empty.

Functions

func BuildTestDockerImage

func BuildTestDockerImage(imageName string) string

func CleanDistributionRepositories

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

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(artifactoryDetails *config.ArtifactoryDetails, artHttpDetails httputils.HttpClientDetails)

func DeleteBuild

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

func DeleteTestDockerImage

func DeleteTestDockerImage(imageTag string)

func DockerTestCleanup

func DockerTestCleanup(artifactoryDetails *config.ArtifactoryDetails, artHttpDetails httputils.HttpClientDetails, imageName, buildName string)

func GetBuildInfo

func GetBuildInfo(artifactoryUrl, buildName, buildNumber string, t *testing.T, artHttpDetails httputils.HttpClientDetails) (buildInfo buildinfo.BuildInfo, found bool)

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 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
}

Image get parent image id command

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 ReceivedResponses

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

Jump to

Keyboard shortcuts

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