Documentation ¶
Index ¶
- Constants
- func AssertReleaseBundleOpen(t *testing.T, distributableResponse *distributableResponse)
- func AssertReleaseBundleSigned(t *testing.T, distributableResponse *distributableResponse)
- func BuildTestDockerImage(imageName string) string
- func CleanDistributionRepositories(t *testing.T, distributionDetails *config.ArtifactoryDetails)
- func CleanUpOldBundles(distHttpDetails httputils.HttpClientDetails, bundleVersion string, ...)
- func CleanUpOldImages(artifactoryDetails *config.ArtifactoryDetails, ...)
- func DeleteBuild(artifactoryUrl, buildName string, artHttpDetails httputils.HttpClientDetails)
- func DeleteTestDockerImage(imageTag string)
- func DockerTestCleanup(artifactoryDetails *config.ArtifactoryDetails, ...)
- func GetBuildInfo(artifactoryUrl, buildName, buildNumber string, t *testing.T, ...) (buildInfo buildinfo.BuildInfo, found bool)
- func GetLocalBundle(t *testing.T, bundleName, bundleVersion string, ...) *distributableResponse
- func ListAllBundlesNames(distHttpDetails httputils.HttpClientDetails) ([]string, error)
- func SendGpgKeys(artHttpDetails httputils.HttpClientDetails, ...)
- func VerifyLocalBundleExistence(t *testing.T, bundleName, bundleVersion string, expectExist bool, ...)
- func WaitForDeletion(t *testing.T, bundleName, bundleVersion string, ...)
- func WaitForDistribution(t *testing.T, bundleName, bundleVersion string, ...)
- type BuildDockerImage
- type ReceivedResponses
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
Assert release bundle status is OPEN
func AssertReleaseBundleSigned ¶ added in v1.39.5
Assert release bundle status is SIGNED, STORED or READY_FOR_DISTRIBUTION
func BuildTestDockerImage ¶
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 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 ¶
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
}
Click to show internal directories.
Click to hide internal directories.