common

package
v1.7.0-rc.1 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2022 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CRDTest

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

func CheckMTLSStatus added in v1.7.0

func CheckMTLSStatus(details VersionDetails, opts TestOptions, shouldWarningExist bool) 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 GenerateNewCertAndRenew added in v1.7.0

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

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, opts TestOptions) func(t *testing.T)

func UseProvidedNewCertAndRenew added in v1.7.0

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

func UseProvidedPrivateKeyAndRenewCerts added in v1.7.0

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

Types

type Resource

type Resource int
const (
	DaprTestNamespace           = "dapr-cli-tests"
	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

func GetTestsPostCertificateRenewal added in v1.7.0

func GetTestsPostCertificateRenewal(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
}

Jump to

Keyboard shortcuts

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