Documentation ¶
Index ¶
- func MustTestHelper(ctx context.Context, installation *TestInstallation) *helper.SoloTestHelper
- type TestCluster
- type TestInstallation
- func (i *TestInstallation) InstallGlooGateway(ctx context.Context, installFn func(ctx context.Context) error)
- func (i *TestInstallation) PreFailHandler(_ context.Context)
- func (i *TestInstallation) String() string
- func (i *TestInstallation) UninstallGlooGateway(ctx context.Context, uninstallFn func(ctx context.Context) error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MustTestHelper ¶
func MustTestHelper(ctx context.Context, installation *TestInstallation) *helper.SoloTestHelper
MustTestHelper returns the SoloTestHelper used for e2e tests The SoloTestHelper is a wrapper around `glooctl` and we should eventually phase it out in favor of using the exact tool that users rely on
Types ¶
type TestCluster ¶
type TestCluster struct { // RuntimeContext contains the set of properties that are defined at runtime by whoever is invoking tests RuntimeContext runtime.Context // ClusterContext contains the metadata about the Kubernetes Cluster that is used for this TestCluster ClusterContext *cluster.Context // contains filtered or unexported fields }
TestCluster is the structure around a set of tests that run against a Kubernetes Cluster Within a TestCluster, we spin off multiple TestInstallation to test the behavior of a particular installation
func MustTestCluster ¶
func MustTestCluster() *TestCluster
func (*TestCluster) RegisterTestInstallation ¶
func (c *TestCluster) RegisterTestInstallation(t *testing.T, glooGatewayContext *gloogateway.Context) *TestInstallation
func (*TestCluster) UnregisterTestInstallation ¶
func (c *TestCluster) UnregisterTestInstallation(installation *TestInstallation)
type TestInstallation ¶
type TestInstallation struct { fmt.Stringer // TestCluster contains the properties of the TestCluster this TestInstallation is a part of TestCluster *TestCluster // Metadata contains the properties used to install Gloo Gateway Metadata *gloogateway.Context // ResourceClients is a set of clients that can manipulate resources owned by Gloo Gateway ResourceClients gloogateway.ResourceClients // Actions is the entity that creates actions that can be executed by the Operator Actions *actions.Provider // Assertions is the entity that creates assertions that can be executed by the Operator Assertions *assertions.Provider }
TestInstallation is the structure around a set of tests that validate behavior for an installation of Gloo Gateway.
func (*TestInstallation) InstallGlooGateway ¶
func (*TestInstallation) PreFailHandler ¶
func (i *TestInstallation) PreFailHandler(_ context.Context)
PreFailHandler is the function that is invoked if a test in the given TestInstallation fails
func (*TestInstallation) String ¶
func (i *TestInstallation) String() string
func (*TestInstallation) UninstallGlooGateway ¶
Click to show internal directories.
Click to hide internal directories.