common

package
Version: v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2021 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const DaprTestNamespace = "dapr-cli-tests"

Variables

This section is empty.

Functions

func CRDTest

func CRDTest(details VersionDetails, opts TestOptions) func(t *testing.T)

func ClusterRoleBindingsTest

func ClusterRoleBindingsTest(details VersionDetails, opts TestOptions) func(t *testing.T)

func ClusterRolesTest

func ClusterRolesTest(details VersionDetails, opts TestOptions) func(t *testing.T)

func ComponentsTestOnInstallUpgrade

func ComponentsTestOnInstallUpgrade(opts TestOptions) func(t *testing.T)

func DeleteCRD

func DeleteCRD(crds []string) func(*testing.T)

func EnsureUninstall

func EnsureUninstall(all bool) (string, error)

func MTLSTestOnInstallUpgrade

func MTLSTestOnInstallUpgrade(opts TestOptions) func(t *testing.T)

func StatusTestOnInstallUpgrade

func StatusTestOnInstallUpgrade(details VersionDetails, opts TestOptions) func(t *testing.T)

func UpgradeTest

func UpgradeTest(details VersionDetails) func(t *testing.T)

Types

type Resource

type Resource int
const (
	CustomResourceDefs Resource = iota
	ClusterRoles
	ClusterRoleBindings
)

type TestCase

type TestCase struct {
	Name     string
	Callable func(*testing.T)
}

func GetTestsOnInstall

func GetTestsOnInstall(details VersionDetails, opts TestOptions) []TestCase

func GetTestsOnUninstall

func GetTestsOnUninstall(details VersionDetails, opts TestOptions) []TestCase

type TestOptions

type TestOptions struct {
	HAEnabled             bool
	MTLSEnabled           bool
	ApplyComponentChanges bool
	CheckResourceExists   map[Resource]bool
	UninstallAll          bool
}

type VersionDetails

type VersionDetails struct {
	RuntimeVersion      string
	DashboardVersion    string
	CustomResourceDefs  []string
	ClusterRoles        []string
	ClusterRoleBindings []string
}

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL