apptmpltest

package
v0.0.0-...-6d13c91 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// TestDistinguishLabel is a test distinguishing label key
	TestDistinguishLabel = "test-distinguish-label"
	// SelfRegErrorMsg is a test error message
	SelfRegErrorMsg = "error during self-reg prep"
)

Variables

View Source
var (
	// NonSelfRegFlowErrorMsg is a test message for non-cert flow
	NonSelfRegFlowErrorMsg = fmt.Sprintf("label %s is forbidden when creating Application Template in a non-cert flow.", TestDistinguishLabel)
)

Functions

func NoopSelfRegManager

func NoopSelfRegManager() *automock.SelfRegisterManager

NoopSelfRegManager is a noop mock

func SelfRegManagerCheckIsSelfRegistrationFlowOnce

func SelfRegManagerCheckIsSelfRegistrationFlowOnce(labels map[string]interface{}) func() *automock.SelfRegisterManager

SelfRegManagerCheckIsSelfRegistrationFlowOnce mock for IsSelfRegistrationFlow once

func SelfRegManagerOnlyGetDistinguishedLabelKeyTwice

func SelfRegManagerOnlyGetDistinguishedLabelKeyTwice() func() *automock.SelfRegisterManager

SelfRegManagerOnlyGetDistinguishedLabelKeyTwice mock for GetSelfRegDistinguishingLabelKey twice

func SelfRegManagerReturnsDistinguishingLabel

func SelfRegManagerReturnsDistinguishingLabel() *automock.SelfRegisterManager

SelfRegManagerReturnsDistinguishingLabel mock for GetSelfRegDistinguishingLabelKey executed once

func SelfRegManagerThatDoesCleanup

func SelfRegManagerThatDoesCleanup(res, labels map[string]interface{}) func() *automock.SelfRegisterManager

SelfRegManagerThatDoesCleanup mock for GetSelfRegDistinguishingLabelKey executed 3 times, PrepareForSelfRegistration once, CleanupSelfRegistration once

func SelfRegManagerThatDoesCleanupWithNoErrors

func SelfRegManagerThatDoesCleanupWithNoErrors() *automock.SelfRegisterManager

SelfRegManagerThatDoesCleanupWithNoErrors mock for GetSelfRegDistinguishingLabelKey executed once, CleanupSelfRegistration once

func SelfRegManagerThatDoesNotCleanupFunc

func SelfRegManagerThatDoesNotCleanupFunc(res, labels map[string]interface{}) func() *automock.SelfRegisterManager

SelfRegManagerThatDoesNotCleanupFunc mock for GetSelfRegDistinguishingLabelKey executed once, PrepareForSelfRegistration once

func SelfRegManagerThatDoesPrepAndInitiatesCleanupButNotFinishIt

func SelfRegManagerThatDoesPrepAndInitiatesCleanupButNotFinishIt(res, labels map[string]interface{}) func() *automock.SelfRegisterManager

SelfRegManagerThatDoesPrepAndInitiatesCleanupButNotFinishIt mock for GetSelfRegDistinguishingLabelKey executed 3 times, PrepareForSelfRegistration once

func SelfRegManagerThatDoesPrepWithNoErrors

func SelfRegManagerThatDoesPrepWithNoErrors(res map[string]interface{}) func() *automock.SelfRegisterManager

SelfRegManagerThatDoesPrepWithNoErrors mock for PrepareForSelfRegistration executed once

func SelfRegManagerThatInitiatesCleanupButNotFinishIt

func SelfRegManagerThatInitiatesCleanupButNotFinishIt(labels map[string]interface{}) func() *automock.SelfRegisterManager

SelfRegManagerThatInitiatesCleanupButNotFinishIt mock for GetSelfRegDistinguishingLabelKey executed 3 times

func SelfRegManagerThatReturnsErrorOnCleanup

func SelfRegManagerThatReturnsErrorOnCleanup() *automock.SelfRegisterManager

SelfRegManagerThatReturnsErrorOnCleanup mock for GetSelfRegDistinguishingLabelKey executed once, CleanupSelfRegistration once with error

func SelfRegManagerThatReturnsErrorOnPrep

func SelfRegManagerThatReturnsErrorOnPrep(labels map[string]interface{}) *automock.SelfRegisterManager

SelfRegManagerThatReturnsErrorOnPrep mock for GetSelfRegDistinguishingLabelKey executed once with error

func SelfRegManagerThatReturnsErrorOnPrepAndGetSelfRegDistinguishingLabelKey

func SelfRegManagerThatReturnsErrorOnPrepAndGetSelfRegDistinguishingLabelKey() *automock.SelfRegisterManager

SelfRegManagerThatReturnsErrorOnPrepAndGetSelfRegDistinguishingLabelKey mock for PrepareForSelfRegistration executed once with error, GetSelfRegDistinguishingLabelKey once

Types

This section is empty.

Jump to

Keyboard shortcuts

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