Documentation ¶
Index ¶
- Variables
- func DoesGitPathExist(gitURL, gitBranch, gitPath string) bool
- func GetAllTestClients() []*clients.Settings
- func GetArgocdAppGitDetails() error
- func GetGitDetailsFromArgocd(appName, namespace string) (string, string, string, error)
- func GetZtpContext() context.Context
- func JoinGitPaths(inputs []string) string
- func ResetArgocdGitDetails() error
- func SetGitDetailsInArgocd(gitRepo, gitBranch, gitPath, argocdApp string, ...) error
- func WaitUntilArgocdChangeIsCompleted(appName string, syncMustBeValid bool, timeout time.Duration) error
Constants ¶
This section is empty.
Variables ¶
var ( // test image. CnfTestImage = "quay.io/openshift-kni/cnf-tests:4.8" // ArgocdApps represents argocd git details. ArgocdApps = map[string]argocdparams.ArgocdGitDetails{} // ReporterNamespacesToDump tells to the reporter from where to collect logs. ReporterNamespacesToDump = map[string]string{ argocdparams.ZtpTestNamespace: "", } // ReporterCRDsToDump tells to the reporter what CRs to dump. ReporterCRDsToDump = []k8sreporter.CRData{ {Cr: &v1.PodList{}}, } )
ztp related vars.
Functions ¶
func DoesGitPathExist ¶
DoesGitPathExist checks if the specified git url exists.
func GetAllTestClients ¶
GetAllTestClients is used to quickly obtain a list of all the test clients.
func GetArgocdAppGitDetails ¶
func GetArgocdAppGitDetails() error
GetArgocdAppGitDetails is used to check the environment variables for any ztp test configuration. If any are undefined then the default values are used instead.
func GetGitDetailsFromArgocd ¶
GetGitDetailsFromArgocd is used to get the current git repo, branch, and path in the Argocd app.
func GetZtpContext ¶
GetZtpContext is used to get the context for the Ztp test client interactions.
func JoinGitPaths ¶
JoinGitPaths is used to join any combination of git strings but also avoiding double slashes.
func ResetArgocdGitDetails ¶
func ResetArgocdGitDetails() error
ResetArgocdGitDetails is used to configure Argocd back to the values it had before the tests started.
func SetGitDetailsInArgocd ¶
func SetGitDetailsInArgocd(gitRepo, gitBranch, gitPath, argocdApp string, waitForSync, syncMustBeValid bool) error
SetGitDetailsInArgocd is used to update the git repo, branch, and path in the Argocd app.
Types ¶
This section is empty.