Documentation ¶
Index ¶
- Constants
- func AssertReleaseBundleOpen(t *testing.T, distributableResponse *distributableResponse)
- func AssertReleaseBundleSigned(t *testing.T, distributableResponse *distributableResponse)
- func BuildTestContainerImage(t *testing.T, imageName string, ...) string
- func CleanDistributionRepositories(t *testing.T, distributionDetails *config.ServerDetails)
- func CleanUpOldBundles(distHttpDetails httputils.HttpClientDetails, bundleVersion string, ...)
- func CleanUpOldImages(serverDetails *config.ServerDetails, ...)
- func ContainerTestCleanup(t *testing.T, serverDetails *config.ServerDetails, ...)
- func DeleteBuild(artifactoryUrl, buildName string, artHttpDetails httputils.HttpClientDetails)
- func DeleteTestContainerImage(t *testing.T, imageTag string, ...)
- func GetLocalBundle(t *testing.T, bundleName, bundleVersion string, ...) *distributableResponse
- func ListAllBundlesNames(distHttpDetails httputils.HttpClientDetails) ([]string, error)
- func SendGpgKeys(artHttpDetails httputils.HttpClientDetails, ...)
- func ValidateGeneratedBuildInfoModule(t *testing.T, buildname, buildNumber, projectKey string, moduleNames []string, ...)
- 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 DeleteDockerImage
- type ReceivedResponses
- type RunDockerImage
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 BuildTestContainerImage ¶ added in v1.43.0
func CleanDistributionRepositories ¶
func CleanDistributionRepositories(t *testing.T, distributionDetails *config.ServerDetails)
Clean up 'cli-dist1-<timestamp>' and 'cli-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 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
Click to show internal directories.
Click to hide internal directories.