inttestutils

package
v1.42.3 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2020 License: Apache-2.0 Imports: 28 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 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 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 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
}

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