test

package
v0.18.8 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2021 License: Apache-2.0, BSD-3-Clause, MIT Imports: 23 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
)

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, supportedCascadeDelete bool) 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 EnsurePublicPlanVisibilityForPlatform added in v0.11.0

func EnsurePublicPlanVisibilityForPlatform(repository storage.Repository, planID, platformID string)

func RegisterBrokerPlatformCredentials added in v0.11.0

func RegisterBrokerPlatformCredentials(SMBasicPlatform *common.SMExpect, brokerID string) (string, string)

func RegisterBrokerPlatformCredentialsExpect added in v0.11.0

func RegisterBrokerPlatformCredentialsExpect(SMBasicPlatform *common.SMExpect, brokerID string, expectedStatusCode int) (string, string)

func RegisterBrokerPlatformCredentialsWithNotificationID added in v0.11.0

func RegisterBrokerPlatformCredentialsWithNotificationID(SMBasicPlatform *common.SMExpect, brokerID, notificationID string) (string, string)

func RegisterBrokerPlatformCredentialsWithNotificationIDExpect added in v0.11.0

func RegisterBrokerPlatformCredentialsWithNotificationIDExpect(SMBasicPlatform *common.SMExpect, brokerID, notificationID string, expectedStatusCode int) (string, 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
	SupportsCascadeDeleteOperations bool
	SupportedOps                    []Op
	ResourceType                    types.ObjectType
	ResourcePropertiesToIgnore      []string

	MultitenancySettings   *MultitenancySettings
	DisableTenantResources bool
	StrictlyTenantScoped   bool
	DisableBasicAuth       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)
	SubResourcesBlueprint                  func(ctx *common.TestContext, smClient *common.SMExpect, async bool, resourceID string, resourceType types.ObjectType, resource common.Object)

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

Directories

Path Synopsis
* Copyright 2018 The Service Manager Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License.
* Copyright 2018 The Service Manager Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License.

Jump to

Keyboard shortcuts

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