registrationhelpers

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2024 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssertCSRFFailures

func AssertCSRFFailures(t *testing.T, reg *driver.RegistryDefault, flows []string, payload func(v url.Values))

func AssertCommonErrorCases

func AssertCommonErrorCases(t *testing.T, flows []string)

func AssertRegistrationRespectsValidation

func AssertRegistrationRespectsValidation(t *testing.T, reg *driver.RegistryDefault, flows []string, payload func(url.Values))

func AssertSchemDoesNotExist

func AssertSchemDoesNotExist(t *testing.T, reg *driver.RegistryDefault, flows []string, payload func(v url.Values))

func CheckFormContent

func CheckFormContent(t *testing.T, body []byte, requiredFields ...string)

func ExpectValidationError

func ExpectValidationError(t *testing.T, ts *httptest.Server, conf *config.Config, flow string, values func(url.Values)) string

func FieldNameSet

func FieldNameSet(t *testing.T, body []byte, fields []string)

FieldNameSet checks if the fields have the right "name" set.

func FormMethodIsPOST

func FormMethodIsPOST(t *testing.T, body []byte)

func OutdatedFieldsDoNotExist

func OutdatedFieldsDoNotExist(t *testing.T, body []byte)

checks if some keys are not set, this should be used to catch regression issues

Types

This section is empty.

Jump to

Keyboard shortcuts

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