Documentation ¶
Index ¶
- Constants
- Variables
- func NoopSelfRegManager() *automock.SelfRegisterManager
- func SelfRegManagerCheckIsSelfRegistrationFlowOnce(labels map[string]interface{}) func() *automock.SelfRegisterManager
- func SelfRegManagerOnlyGetDistinguishedLabelKeyTwice() func() *automock.SelfRegisterManager
- func SelfRegManagerReturnsDistinguishingLabel() *automock.SelfRegisterManager
- func SelfRegManagerThatDoesCleanup(res, labels map[string]interface{}) func() *automock.SelfRegisterManager
- func SelfRegManagerThatDoesCleanupWithNoErrors() *automock.SelfRegisterManager
- func SelfRegManagerThatDoesNotCleanupFunc(res, labels map[string]interface{}) func() *automock.SelfRegisterManager
- func SelfRegManagerThatDoesPrepAndInitiatesCleanupButNotFinishIt(res, labels map[string]interface{}) func() *automock.SelfRegisterManager
- func SelfRegManagerThatDoesPrepWithNoErrors(res map[string]interface{}) func() *automock.SelfRegisterManager
- func SelfRegManagerThatInitiatesCleanupButNotFinishIt(labels map[string]interface{}) func() *automock.SelfRegisterManager
- func SelfRegManagerThatReturnsErrorOnCleanup() *automock.SelfRegisterManager
- func SelfRegManagerThatReturnsErrorOnPrep(labels map[string]interface{}) *automock.SelfRegisterManager
- func SelfRegManagerThatReturnsErrorOnPrepAndGetSelfRegDistinguishingLabelKey() *automock.SelfRegisterManager
Constants ¶
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 ¶
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.