testutils

package
v1.12.2 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package testutils provides common test utilities for installer packages

Index

Constants

View Source
const (
	// DefaultFilePermissions defines the default permissions for temporary test files.
	DefaultFilePermissions = 0o600
)

Variables

This section is empty.

Functions

func CreateEmptyKubeconfigFile

func CreateEmptyKubeconfigFile(t *testing.T) string

CreateEmptyKubeconfigFile creates a temporary empty kubeconfig file for testing.

func CreateMalformedKubeconfigFile

func CreateMalformedKubeconfigFile(t *testing.T) string

CreateMalformedKubeconfigFile creates a temporary file with malformed YAML for testing.

func CreateValidKubeconfigFile

func CreateValidKubeconfigFile(t *testing.T) string

CreateValidKubeconfigFile creates a temporary valid kubeconfig file for testing.

Types

This section is empty.

Jump to

Keyboard shortcuts

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