e2e

package
v0.9.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 29, 2026 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FindComponentByName

func FindComponentByName(components []component, name string) (component, bool)

FindComponentByName finds a component in a list by name

Types

type APIHelper

type APIHelper struct {
	// contains filtered or unexported fields
}

APIHelper provides helper methods for Cast AI API operations

func NewAPIHelper

func NewAPIHelper(apiKey, apiURL string) *APIHelper

func (*APIHelper) DeleteCluster

func (h *APIHelper) DeleteCluster(clusterID string) error

DeleteCluster deletes a cluster from the Cast AI API

func (*APIHelper) FetchFromAPI

func (h *APIHelper) FetchFromAPI(url string, method string, requestBody interface{}, responseBody interface{}) error

FetchFromAPI makes an HTTP request to the Cast AI API

func (*APIHelper) GetCluster

func (h *APIHelper) GetCluster(clusterID string) (map[string]interface{}, error)

GetCluster retrieves cluster information from the API

func (*APIHelper) GetClusterComponents

func (h *APIHelper) GetClusterComponents(organizationID, clusterID string) ([]component, error)

GetClusterComponents retrieves components for a cluster

type ClusterHelper

type ClusterHelper struct {
	// contains filtered or unexported fields
}

ClusterHelper provides helper methods for cluster operations

func NewClusterHelper

func NewClusterHelper(ns string) *ClusterHelper

func (*ClusterHelper) CreateFromYAML

func (h *ClusterHelper) CreateFromYAML(clusterName, secretName, apiURL string) error

CreateFromYAML creates a cluster CR from a YAML template

func (*ClusterHelper) GetClusterID

func (h *ClusterHelper) GetClusterID(clusterName string) (string, error)

GetClusterID retrieves the cluster ID from a cluster CR

func (*ClusterHelper) VerifyClusterID

func (h *ClusterHelper) VerifyClusterID(g Gomega, clusterName string) string

VerifyClusterID checks that a cluster has a valid cluster ID

type ComponentHelper

type ComponentHelper struct {
	// contains filtered or unexported fields
}

ComponentHelper provides helper methods for component operations

func NewComponentHelper

func NewComponentHelper(ns string) *ComponentHelper

func (*ComponentHelper) CreateFromYAML

func (h *ComponentHelper) CreateFromYAML(componentName, componentType string, additionalYAML string) error

CreateFromYAML creates a component CR from a YAML template

func (*ComponentHelper) GetCurrentVersion

func (h *ComponentHelper) GetCurrentVersion(componentName string) (string, error)

GetCurrentVersion retrieves the current version of a component

func (*ComponentHelper) PatchVersion

func (h *ComponentHelper) PatchVersion(componentName, version string) error

PatchVersion updates the version of a component

func (*ComponentHelper) VerifyStatusCondition

func (h *ComponentHelper) VerifyStatusCondition(componentName, conditionType string) error

VerifyStatusCondition checks that a component has a specific status condition

func (*ComponentHelper) VerifyVersion

func (h *ComponentHelper) VerifyVersion(g Gomega, componentName, expectedVersion string)

VerifyVersion checks that a component has reached the expected version

func (*ComponentHelper) VerifyVersionChanged

func (h *ComponentHelper) VerifyVersionChanged(g Gomega, componentName, previousVersion string)

VerifyVersionChanged checks that a component version has changed from the previous version

func (*ComponentHelper) VerifyVersionIsSet

func (h *ComponentHelper) VerifyVersionIsSet(g Gomega, componentName string)

VerifyVersionIsSet checks that a component has any version set

type DeploymentHelper

type DeploymentHelper struct {
	// contains filtered or unexported fields
}

DeploymentHelper provides helper methods for deployment operations

func NewDeploymentHelper

func NewDeploymentHelper(ns string) *DeploymentHelper

func (*DeploymentHelper) VerifyDeploymentExists

func (h *DeploymentHelper) VerifyDeploymentExists(deploymentLabel, version string) error

VerifyDeploymentExists checks that a deployment with a specific version label exists

type HelmHelper

type HelmHelper struct {
	// contains filtered or unexported fields
}

HelmHelper provides helper methods for Helm operations

func NewHelmHelper

func NewHelmHelper(ns string) *HelmHelper

func (*HelmHelper) InstallOperator

func (h *HelmHelper) InstallOperator(
	imageRepo,
	imageTag,
	apiKey,
	apiURL,
	chartPath,
	migrationMode string,
	additionalFlags ...string) error

InstallOperator installs the castware-operator Helm chart with common settings

func (*HelmHelper) UninstallOperator

func (h *HelmHelper) UninstallOperator() error

UninstallOperator uninstalls the castware-operator Helm release

type NamespaceHelper

type NamespaceHelper struct{}

NamespaceHelper provides helper methods for namespace operations

func NewNamespaceHelper

func NewNamespaceHelper() *NamespaceHelper

func (*NamespaceHelper) AnnotateNamespace

func (h *NamespaceHelper) AnnotateNamespace(namespace string, annotations ...string) error

AnnotateNamespace adds annotations to a namespace

func (*NamespaceHelper) Create

func (h *NamespaceHelper) Create(namespace string) error

Create creates a namespace

func (*NamespaceHelper) Delete

func (h *NamespaceHelper) Delete(namespace string) error

Delete deletes a namespace

func (*NamespaceHelper) GetUID

func (h *NamespaceHelper) GetUID(namespace string) (string, error)

GetUID retrieves the UID of a namespace

func (*NamespaceHelper) LabelNamespace

func (h *NamespaceHelper) LabelNamespace(namespace string, labels ...string) error

LabelNamespace adds labels to a namespace

func (*NamespaceHelper) VerifyDeleted

func (h *NamespaceHelper) VerifyDeleted(g Gomega, namespace string)

VerifyDeleted checks that a namespace is deleted

type PodHelper

type PodHelper struct {
	// contains filtered or unexported fields
}

PodHelper provides helper methods for pod operations

func NewPodHelper

func NewPodHelper(ns string) *PodHelper

func (*PodHelper) VerifyPodsReady

func (h *PodHelper) VerifyPodsReady(g Gomega, labelKey, labelValue string)

VerifyPodsReady checks that at least one pod with the given label is ready

type SecretHelper

type SecretHelper struct {
	// contains filtered or unexported fields
}

SecretHelper provides helper methods for secret operations

func NewSecretHelper

func NewSecretHelper(ns string) *SecretHelper

func (*SecretHelper) CreateAPIKeySecret

func (h *SecretHelper) CreateAPIKeySecret(secretName, apiKey string) error

CreateAPIKeySecret creates a secret with an API key

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL