openapi_cases

package
v1.63.0 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const FocusFieldName = "x-test-focus"

Variables

This section is empty.

Functions

func GetAllOpenAPIDirs

func GetAllOpenAPIDirs() ([]string, error)

func ValidateNegativeCase added in v0.0.6

func ValidateNegativeCase(validator *validation.SchemaStorage, moduleName string, schema validation.SchemaType, testValues map[string]interface{}, runFocused bool) error

func ValidatePositiveCase added in v0.0.6

func ValidatePositiveCase(schemaStorage *validation.SchemaStorage, moduleName string, schema validation.SchemaType, testValues map[string]interface{}, runFocused bool) error

func ValuesToString added in v0.0.6

func ValuesToString(v map[string]interface{}) string

Types

type TestCase

type TestCase struct {
	ConfigValues []map[string]interface{}
	Values       []map[string]interface{}
	HelmValues   []map[string]interface{}
}

func (TestCase) HasFocused added in v0.0.6

func (tc TestCase) HasFocused() bool

type TestCases

type TestCases struct {
	Positive TestCase
	Negative TestCase
	// contains filtered or unexported fields
}

func TestCasesFromFile added in v0.0.6

func TestCasesFromFile(filename string) (*TestCases, error)

func (*TestCases) HaveConfigValuesCases

func (t *TestCases) HaveConfigValuesCases() bool

func (*TestCases) HaveHelmValuesCases added in v0.0.6

func (t *TestCases) HaveHelmValuesCases() bool

func (*TestCases) HaveValuesCases

func (t *TestCases) HaveValuesCases() bool

Jump to

Keyboard shortcuts

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