test

package
v0.10.3 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2020 License: Apache-2.0, BSD-3-Clause, MIT Imports: 24 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Get        Op = "get"
	List       Op = "list"
	Delete     Op = "delete"
	DeleteList Op = "deletelist"
	Patch      Op = "patch"

	Sync  ResponseMode = false
	Async ResponseMode = true

	JobTimeout = 15 * time.Second
)

Variables

This section is empty.

Functions

func APIResourcePatch added in v0.10.0

func APIResourcePatch(ctx *common.TestContext, tenantScoped bool, apiPath string, objID string, objType types.ObjectType, patchLabels []*types.LabelChange, async bool)

func DescribeDeleteListFor

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

func DescribeDeleteTestsfor

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

func DescribeGetTestsfor

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

func DescribeListTestsFor

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

func DescribePatchTestsFor added in v0.4.1

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

func DescribeTestsFor

func DescribeTestsFor(t TestCase) bool

func EnsurePlanVisibility added in v0.10.0

func EnsurePlanVisibility(repository storage.Repository, tenantIdentifier, platformID, planID, tenantID string)

func EnsurePlanVisibilityDoesNotExist added in v0.10.3

func EnsurePlanVisibilityDoesNotExist(repository storage.Repository, tenantIdentifier, platformID, planID, tenantID string)

func EnsurePublicPlanVisibility added in v0.10.0

func EnsurePublicPlanVisibility(repository storage.Repository, planID string)

func StorageResourcePatch added in v0.10.0

func StorageResourcePatch(ctx *common.TestContext, _ bool, _ string, objID string, resourceType types.ObjectType, patchLabels []*types.LabelChange, _ 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

type ResponseMode added in v0.9.8

type ResponseMode bool

type TestCase

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

	MultitenancySettings   *MultitenancySettings
	DisableTenantResources bool
	StrictlyTenantScoped   bool

	ResourceBlueprint                      func(ctx *common.TestContext, smClient *common.SMExpect, async bool) common.Object
	ResourceWithoutNullableFieldsBlueprint func(ctx *common.TestContext, smClient *common.SMExpect, async bool) common.Object
	PatchResource                          func(ctx *common.TestContext, tenantScoped bool, apiPath string, objID string, resourceType types.ObjectType, patchLabels []*types.LabelChange, async bool)

	AdditionalTests func(ctx *common.TestContext, t *TestCase)
	ContextBuilder  *common.TestContextBuilder
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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