test

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2019 License: Apache-2.0, BSD-3-Clause, MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

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

	MultitenancySettings                   *MultitenancySettings
	DisableTenantResources                 bool
	ResourceBlueprint                      func(ctx *common.TestContext, smClient *httpexpect.Expect) common.Object
	ResourceWithoutNullableFieldsBlueprint func(ctx *common.TestContext, smClient *httpexpect.Expect) common.Object
	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