Documentation
¶
Index ¶
- func AddComponentVersions(components ...Component) features.Func
- func AddFilesToGitRepository(files ...File) features.Func
- func AddFluxSyncForRepo(name, path, giteaNamespace string) features.Func
- func AddGitRepository(repoName string) features.Func
- func AddScheme(addSchemeFuncs ...func(scheme *runtime.Scheme) error) features.Func
- func ApplyTestData(namespace, folder, pattern string) features.Func
- func CreateNamespace(name string) features.Func
- func DeleteGitRepository(repoName string) features.Func
- func DeleteTestData(namespace, folder, pattern string) features.Func
- func MergePullRequest(repoName string, prNumber int) features.Func
- type Component
- type File
- type Payload
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddComponentVersions ¶
AddComponentVersions defines a list of component versions to add.
func AddFilesToGitRepository ¶
AddFilesToGitRepository adds files to a git repository.
func AddFluxSyncForRepo ¶
AddFluxSyncForRepo adds a sync request for a repository for flux to reconcile.
func AddGitRepository ¶
AddGitRepository creates a git repository for the test user.
func AddScheme ¶
AddScheme provides a setup function to add the scheme to the client. Consider renaming this to create a client and pass it over via the context.
func ApplyTestData ¶
ApplyTestData takes a pattern and applies that from a testdata location.
func CreateNamespace ¶
CreateNamespace creates the given namespace in the configured environment.
func DeleteGitRepository ¶
DeleteGitRepository deletes a git repository for the test user.
func DeleteTestData ¶
DeleteTestData takes a pattern and deletes that from a testdata location.
func MergePullRequest ¶ added in v0.6.0
MergePullRequest merges a PR; gitea API is used instead of gitea-sdk because validation checks take time to complete for tests and options MergeWhenChecksSucceed: false, ForceMerge: true, are not available in the current latest version of the gitea-sdk
Types ¶
type Component ¶
type Component struct { Component shared.Component Scheme string ComponentVersionModifications []shared.ComponentModification }
Component contains information about a component to add.