Documentation
¶
Index ¶
- Variables
- func CaptureFailureDiagnostics(t *testing.T, failure string, namespaces ...string) string
- func CheckDeploymentStatus(ctx context.Context, t *testing.T, config *envconf.Config, ...) context.Context
- func DoDeleteNamespace(ctx context.Context, t *testing.T, config *envconf.Config, namespace string) context.Context
- func DoUninstallHelmChart(ctx context.Context, t *testing.T, config *envconf.Config, chartName string, ...) context.Context
- func GetBasePath() string
- func GetSlurmNodeInfo(namespace, nodeName string) (map[string]string, error)
- func StatusJSON(status any) string
- func StringToMap(input string) map[string]string
- func WaitForCommand(ctx context.Context, t *testing.T, command string, args []string, wants string, ...)
- type SlurmImageConfig
- type SlurmInstallationConfig
Constants ¶
This section is empty.
Variables ¶
var ( Testenv env.Environment TestUID string SlinkyNamespace string = "slinky" Basepath string SlurmImage SlurmImageConfig )
Functions ¶
func CaptureFailureDiagnostics ¶
CaptureFailureDiagnostics writes a compact snapshot of the cluster while the resources involved in a failed E2E scenario still exist. Diagnostic failures are recorded in the artifact files but never obscure the original test error.
func CheckDeploymentStatus ¶
func CheckDeploymentStatus(ctx context.Context, t *testing.T, config *envconf.Config, deploymentName string, deploymentNamespace string) context.Context
CheckDeploymentStatus waits for the specified deployment to have the desired number of ReadyReplicas, then returns
func DoDeleteNamespace ¶
func DoDeleteNamespace(ctx context.Context, t *testing.T, config *envconf.Config, namespace string) context.Context
DoDeleteNamespace deletes the specified namespace and waits for its removal.
func DoUninstallHelmChart ¶
func DoUninstallHelmChart(ctx context.Context, t *testing.T, config *envconf.Config, chartName string, chartNamespace string) context.Context
DoUninstallHelmChart uses the Helm API to uninstall the specified Helm chart in the specified namespace
func GetBasePath ¶
func GetBasePath() string
getBasePath returns the fully qualified path of the slurm-operator repo within the context in which `go test` is called
func GetSlurmNodeInfo ¶
GetSlurmNodeInfo uses scontrol to get details on a Slurm node
func StatusJSON ¶
StatusJSON renders Kubernetes status structs compactly for failure messages.
func StringToMap ¶
StringToMap converts the provided string to a map. Assumes that key-value pairs are separated by spaces, and that keys and values are separated by an equals sign
func WaitForCommand ¶
func WaitForCommand(ctx context.Context, t *testing.T, command string, args []string, wants string, cleanupCommand string, cleanupArgs []string, timeout time.Duration, retryDelay time.Duration)
WaitForCommand executes the provided command until it succeeds with the expected output.