Documentation
¶
Overview ¶
package state provides a singleton that can be used to share data across all test cases within a test suite The state can contain the following: - Framework - An initialized `clustertest` framework client pointing at the test management cluster - Cluster - A Cluster object with details about the test workload cluster - Application - An Application object with details abou the App being tested - Context - A context instance
Index ¶
- func GetApplication() *application.Application
- func GetBundleApplication() *application.Application
- func GetCluster() *application.Cluster
- func GetContext() context.Context
- func GetFramework() *clustertest.Framework
- func GetHelmRelease() *helmv2.HelmRelease
- func SetApplication(app *application.Application)
- func SetBundleApplication(app *application.Application)
- func SetCluster(framework *application.Cluster)
- func SetContext(ctx context.Context)
- func SetFramework(framework *clustertest.Framework)
- func SetHelmRelease(hr *helmv2.HelmRelease)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetApplication ¶
func GetApplication() *application.Application
func GetBundleApplication ¶
func GetBundleApplication() *application.Application
func GetCluster ¶
func GetCluster() *application.Cluster
func GetContext ¶
func GetFramework ¶
func GetFramework() *clustertest.Framework
func GetHelmRelease ¶
func GetHelmRelease() *helmv2.HelmRelease
func SetApplication ¶
func SetApplication(app *application.Application)
func SetBundleApplication ¶
func SetBundleApplication(app *application.Application)
func SetCluster ¶
func SetCluster(framework *application.Cluster)
func SetContext ¶
func SetFramework ¶
func SetFramework(framework *clustertest.Framework)
func SetHelmRelease ¶
func SetHelmRelease(hr *helmv2.HelmRelease)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.