utils

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Overview

Package utils contains utility functions for testing

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateTestChart

func CreateTestChart(outputDir string) (string, error)

CreateTestChart creates a dummy chart for testing purposes

func CreateTestValues

func CreateTestValues(outputDir string, yamlString string) (string, error)

func CreateWorkspace

func CreateWorkspace(dir string) (string, string, *chart.Chart, string)

func ErrPanic

func ErrPanic(msg string, err error)

func StartKube

func StartKube() (*envtest.Environment, *rest.Config)

Types

type OperatorTestSuite

type OperatorTestSuite struct {
	suite.Suite
	Connection events.Connection
	Logger     *zap.SugaredLogger
	Kubeenv    *envtest.Environment
	Kubeconfig *rest.Config
}

func (*OperatorTestSuite) SetupSuite

func (suite *OperatorTestSuite) SetupSuite()

func (*OperatorTestSuite) TearDownAllSuite

func (suite *OperatorTestSuite) TearDownAllSuite()

Directories

Path Synopsis
Package mock provides a mock client for the LB API
Package mock provides a mock client for the LB API

Jump to

Keyboard shortcuts

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