tasktesting

package
v0.15.0 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2023 License: Apache-2.0 Imports: 23 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	BitbucketProjectKey  = "ODSPIPELINETEST"
	BitbucketKinDHost    = "ods-test-bitbucket-server.kind"
	BitbucketTLSKinDHost = "ods-test-bitbucket-server-tls.kind"
)
View Source
const (
	NexusKinDHost    = "ods-test-nexus.kind"
	NexusKinDTLSHost = "ods-test-nexus-tls.kind"
)
View Source
const (
	PrivateCertFile = "test/testdata/private-cert/tls.crt"
)

Variables

This section is empty.

Functions

func BitbucketClientOrFatal

func BitbucketClientOrFatal(t *testing.T, c kclient.Interface, namespace string, privateCert bool) *bitbucket.Client

BitbucketClientOrFatal returns a Bitbucket client, configured based on ConfigMap/Secret in the given namespace.

func EnableLfsOnBitbucketRepoOrFatal

func EnableLfsOnBitbucketRepoOrFatal(t *testing.T, repo, projectKey string)

EnableLfsOnBitbucketRepoOrFatal enable Git LFS extension in existing repo, using private Bitbucket API.

func NexusClientOrFatal

func NexusClientOrFatal(t *testing.T, c kclient.Interface, namespace string, privateCert bool) *nexus.Client

NexusClientOrFatal returns a Nexus client, configured based on ConfigMap/Secret in the given namespace.

func PushFileToBitbucketOrFatal

func PushFileToBitbucketOrFatal(t *testing.T, c *kclient.Clientset, ns, wsDir, branch, filename string)

func RemoveAll

func RemoveAll(t *testing.T, path ...string)

func SetupBitbucketRepo

func SetupBitbucketRepo(t *testing.T, c kclient.Interface, ns, wsDir, projectKey string, privateCert bool) *pipelinectxt.ODSContext

SetupBitbucketRepo initializes a Git repo, commits, pushes to Bitbucket and writes the result to the .ods cache.

func SetupFakeRepo

func SetupFakeRepo(t *testing.T, ns, wsDir string) *pipelinectxt.ODSContext

SetupFakeRepo writes .ods cache with fake data, without actually initializing a Git repo.

func SetupGitRepo

func SetupGitRepo(t *testing.T, ns, wsDir string) *pipelinectxt.ODSContext

SetupGitRepo initializes a Git repo, commits and writes the result to the .ods cache.

func UpdateBitbucketRepoWithLfsOrFatal

func UpdateBitbucketRepoWithLfsOrFatal(t *testing.T, ctxt *pipelinectxt.ODSContext, wsDir, projectKey, filename string) [32]byte

UpdateBitbucketRepoWithLfsOrFatal create, track, commit and push a random JPG file with git LFS, and return its hash.

func UpdateBitbucketRepoWithTagOrFatal

func UpdateBitbucketRepoWithTagOrFatal(t *testing.T, ctxt *pipelinectxt.ODSContext, wsDir, tag string)

Types

This section is empty.

Jump to

Keyboard shortcuts

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