test

package
v0.9.4 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2019 License: Apache-2.0, BSD-3-Clause, MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultResourcePatch added in v0.9.0

func DefaultResourcePatch(ctx *common.TestContext, apiPath string, objID string, _ types.ObjectType, patchLabels []*query.LabelChange)

func DescribeDeleteListFor

func DescribeDeleteListFor(ctx *common.TestContext, t TestCase) bool

func DescribeDeleteTestsfor

func DescribeDeleteTestsfor(ctx *common.TestContext, t TestCase) bool

func DescribeGetTestsfor

func DescribeGetTestsfor(ctx *common.TestContext, t TestCase) bool

func DescribeListTestsFor

func DescribeListTestsFor(ctx *common.TestContext, t TestCase) bool

func DescribePatchTestsFor added in v0.4.1

func DescribePatchTestsFor(ctx *common.TestContext, t TestCase) bool

func DescribeTestsFor

func DescribeTestsFor(t TestCase) bool

Types

type MultitenancySettings added in v0.4.1

type MultitenancySettings struct {
	ClientID           string
	ClientIDTokenClaim string
	TenantTokenClaim   string
	LabelKey           string

	TokenClaims map[string]interface{}
}

type Op

type Op string
const (
	Get        Op = "get"
	List       Op = "list"
	Delete     Op = "delete"
	DeleteList Op = "deletelist"
	Patch      Op = "patch"
)

type TestCase

type TestCase struct {
	API          string
	SupportedOps []Op
	ResourceType types.ObjectType

	MultitenancySettings                   *MultitenancySettings
	DisableTenantResources                 bool
	ResourceBlueprint                      func(ctx *common.TestContext, smClient *common.SMExpect) common.Object
	ResourceWithoutNullableFieldsBlueprint func(ctx *common.TestContext, smClient *common.SMExpect) common.Object
	PatchResource                          func(ctx *common.TestContext, apiPath string, objID string, resourceType types.ObjectType, patchLabels []*query.LabelChange)
	AdditionalTests                        func(ctx *common.TestContext)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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