Documentation ¶
Index ¶
- Constants
- func BitbucketClientOrFatal(t *testing.T, c kclient.Interface, namespace string, privateCert bool) *bitbucket.Client
- func EnableLfsOnBitbucketRepoOrFatal(t *testing.T, repo, projectKey string)
- func NexusClientOrFatal(t *testing.T, c kclient.Interface, namespace string, privateCert bool) *nexus.Client
- func PushFileToBitbucketOrFatal(t *testing.T, c *kclient.Clientset, ns, wsDir, branch, filename string)
- func RemoveAll(t *testing.T, path ...string)
- func SetupBitbucketRepo(t *testing.T, c kclient.Interface, ns, wsDir, projectKey string, ...) *pipelinectxt.ODSContext
- func SetupFakeRepo(t *testing.T, ns, wsDir string) *pipelinectxt.ODSContext
- func SetupGitRepo(t *testing.T, ns, wsDir string) *pipelinectxt.ODSContext
- func UpdateBitbucketRepoWithLfsOrFatal(t *testing.T, ctxt *pipelinectxt.ODSContext, ...) [32]byte
- func UpdateBitbucketRepoWithTagOrFatal(t *testing.T, ctxt *pipelinectxt.ODSContext, wsDir, tag string)
Constants ¶
const ( BitbucketProjectKey = "ODSPIPELINETEST" BitbucketKinDHost = "ods-test-bitbucket-server.kind" BitbucketTLSKinDHost = "ods-test-bitbucket-server-tls.kind" )
const ( NexusKinDHost = "ods-test-nexus.kind" NexusKinDTLSHost = "ods-test-nexus-tls.kind" )
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 ¶
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 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.